-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
112 lines (97 loc) · 2.88 KB
/
index.php
File metadata and controls
112 lines (97 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/*
File Name : links.php
Author : Jason Lamb (with help from ChatGPT)
Created : 2026-02-01
Modified : Auto (via filemtime when supported)
Revision : 1.5.0
Change Log:
- 1.0 Initial mobile full-screen layout
- 1.1 Added footer + revision display
- 1.2 Switched to scalable grid
- 1.3 Added color cycling support
- 1.4 Prepared for PHP migration
- 1.5 Added true file modification date using filemtime()
*/
$revision = "1.5.0";
$fileName = basename(__FILE__);
$year = date("Y");
if (function_exists("filemtime")) {
$modified = date("m/d/Y", filemtime(__FILE__));
} else {
$modified = "Static Host";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Links</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
min-height: 100vh;
display: grid;
grid-template-rows: 1fr auto;
}
/* ===== Link Grid ===== */
.links {
display: grid;
grid-template-columns: 1fr;
grid-auto-rows: minmax(120px, 1fr);
}
.link-area {
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
color: white;
font-size: 2rem;
font-weight: 600;
text-align: center;
transition: transform 0.1s ease, opacity 0.1s ease;
}
.link-area:active {
transform: scale(0.98);
opacity: 0.9;
}
/* Color cycling */
.link-area:nth-child(6n+1) { background-color: #007BFF; }
.link-area:nth-child(6n+2) { background-color: #28A745; }
.link-area:nth-child(6n+3) { background-color: #FFC107; color: #222; }
.link-area:nth-child(6n+4) { background-color: #DC3545; }
.link-area:nth-child(6n+5) { background-color: #6F42C1; }
.link-area:nth-child(6n+6) { background-color: #20C997; }
footer {
text-align: center;
padding: 8px;
font-size: 0.85rem;
color: #666;
background: #f4f4f4;
border-top: 1px solid #ddd;
}
@media (max-width: 600px) {
.link-area {
font-size: 1.6rem;
}
}
</style>
</head>
<body>
<div class="links">
<a href="/mpg/" class="link-area">MPG</a>
<a href="/cvc/" class="link-area">CVC</a>
<a href="/box/" class="link-area">BOX</a>
<a href="/updates/" class="link-area">UPDATES</a>
</div>
<footer>
<?php echo "$fileName | Rev $revision | © $year | Modified $modified"; ?>
</footer>
</body>
</html>