-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks.html
More file actions
154 lines (137 loc) · 4.3 KB
/
links.html
File metadata and controls
154 lines (137 loc) · 4.3 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<!--
File Name : links.html
Author : Jason Lamb (with help from ChatGPT)
Created : 2026-02-01
Modified : auto
Revision : auto
Change Log:
- 1.0 (2026-02-01)
- Initial release
- Full-screen mobile-friendly layout
- Four large clickable navigation areas
- 1.1 (2026-02-01)
- Added auto-updating footer
- Centralized revision control
- Switched to scalable grid layout
- 1.2 (2026-02-02)
- Changed to 2-column grid layout for better mobile experience
- Allows adding more items in rows of 2
- 1.2.1 remove \n typo
- 1.3 (2026-02-02)
- Changed to 3-column grid layout (1 column on mobile)
- Increased minimum height for easier finger pressing
- Added responsive design for different screen sizes
- 1.3.1
- uncomment additional test links for design testing
- 1.4
- add actusl links (relative)
- 1.4.1
- add actual links (absolute)
-->
<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: repeat(3, 1fr);
grid-auto-rows: minmax(140px, auto);
gap: 0;
overflow-y: auto;
}
.link-area {
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
color: white;
font-size: 1.8rem;
font-weight: 600;
text-align: center;
padding: 20px;
min-height: 140px;
transition: transform 0.1s ease, opacity 0.1s ease;
}
.link-area:active {
transform: scale(0.98);
opacity: 0.9;
}
/* Color palette (repeats safely if you add more links) */
.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 ===== */
footer {
text-align: center;
padding: 8px;
font-size: 0.85rem;
color: #666;
background: #f4f4f4;
border-top: 1px solid #ddd;
}
/* Tablet: 2 columns */
@media (max-width: 900px) {
.links {
grid-template-columns: repeat(2, 1fr);
}
.link-area {
font-size: 1.6rem;
min-height: 130px;
}
}
/* Mobile: 1 column for easy finger pressing */
@media (max-width: 600px) {
.links {
grid-template-columns: 1fr;
}
.link-area {
font-size: 1.8rem;
min-height: 120px;
}
}
</style>
</head>
<body>
<!-- ===== LINKS ===== -->
<div class="links">
<a href="https://jasr.me/mpg/" class="link-area">MPG</a>
<a href="https://jasr.me/cvc/" class="link-area">CVC</a>
<a href="https://jasr.me/box/" class="link-area">BOX</a>
<a href="https://jasr.me/updates/" class="link-area">UPDATES</a>
<!-- <a href="page9.html" class="link-area">Page 9</a> -->
<!-- Just keep adding more -->
</div>
<!-- ===== FOOTER ===== -->
<footer id="footer"></footer>
<script>
/*
Centralized metadata
Change revision ONCE here
*/
const fileName = 'links.html';
const revision = '1.4.1';
const year = new Date().getFullYear();
const modified = new Date().toLocaleDateString();
document.getElementById('footer').textContent =
`${fileName} | Rev ${revision} | © ${year} | Modified ${modified}`;
</script>
</body>
</html>