-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks.html
More file actions
124 lines (108 loc) · 3.45 KB
/
links.html
File metadata and controls
124 lines (108 loc) · 3.45 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
<!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
-->\n
<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 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 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;
}
@media (max-width: 600px) {
.link-area {
font-size: 1.6rem;
}
}
</style>
</head>
<body>
<!-- ===== LINKS ===== -->
<div class="links">
<a href="page1.html" class="link-area">Page 1</a>
<a href="page2.html" class="link-area">Page 2</a>
<a href="page3.html" class="link-area">Page 3</a>
<a href="page4.html" class="link-area">Page 4</a>
<!-- Just keep adding more -->
<!-- <a href="page5.html" class="link-area">Page 5</a> -->
<!-- <a href="page6.html" class="link-area">Page 6</a> -->
</div>
<!-- ===== FOOTER ===== -->
<footer id="footer"></footer>
<script>
/*
Centralized metadata
Change revision ONCE here
*/
const fileName = 'links.html';
const revision = '1.2';
const year = new Date().getFullYear();
const modified = new Date().toLocaleDateString();
document.getElementById('footer').textContent =
`${fileName} | Rev ${revision} | © ${year} | Modified ${modified}`;
</script>
</body>
</html>