-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpics-index.html
273 lines (230 loc) · 8.8 KB
/
pics-index.html
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⛰️</text></svg>"
/>
<link rel="stylesheet" href="../css/layout.css" />
<link rel="stylesheet" href="../css/grid.css" />
<style>
h2 {
font-size: 24px;
}
.album-grid {
column-count: 3;
column-gap: 40px;
margin: auto;
margin-bottom: 50px;
width: 90%;
}
:root {
--overlay-color: rgba(
156,
128,
67,
0.3
); /* Light mode overlay color (wheat color with 30% opacity for an aged look) */
}
body.dark-mode {
--overlay-color: rgb(16 29 42 / 15%); /* Dark mode overlay color */
}
.album::before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: var(--overlay-color);
}
.album img {
width: 100%;
height: auto;
transition: transform 0s ease;
}
.album:hover img {
transform: scale(1);
}
.album {
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
position: relative;
}
.album img {
width: 100%;
height: auto;
object-fit: cover;
transition: transform 0s ease;
}
.album-title {
position: absolute;
bottom: 10px;
left: 10px;
margin: 0;
color: white;
font-weight: 150;
}
/* On mobile devices */
@media (max-width: 768px) {
.album-grid {
column-count: 1;
margin: auto;
width: 90%;
}
.album img {
margin-bottom: 20px;
}
.album-title {
bottom: 30px;
}
.album::before {
bottom: 20;
}
}
.grid-container {
display: block;
margin: auto;
}
</style>
<script>
!(function (t, e) {
var o, n, p, r
e.__SV ||
((window.posthog = e),
(e._i = []),
(e.init = function (i, s, a) {
function g(t, e) {
var o = e.split('.')
2 == o.length && ((t = t[o[0]]), (e = o[1])),
(t[e] = function () {
t.push([e].concat(Array.prototype.slice.call(arguments, 0)))
})
}
;((p = t.createElement('script')).type = 'text/javascript'),
(p.async = !0),
(p.src = s.api_host + '/static/array.js'),
(r = t.getElementsByTagName('script')[0]).parentNode.insertBefore(p, r)
var u = e
for (
void 0 !== a ? (u = e[a] = []) : (a = 'posthog'),
u.people = u.people || [],
u.toString = function (t) {
var e = 'posthog'
return 'posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e
},
u.people.toString = function () {
return u.toString(1) + '.people (stub)'
},
o =
'capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags'.split(
' '
),
n = 0;
n < o.length;
n++
)
g(u, o[n])
e._i.push([i, s, a])
}),
(e.__SV = 1))
})(document, window.posthog || [])
posthog.init('Tom1k0Lh0sRN7EK8LIlU5mbbmAHMBSk37lc02ZQ__38', {
api_host: 'https://p.yakkos.workers.dev',
persistence: 'memory',
})
</script>
<script src="../modal/modal.js"></script>
</head>
<body>
<script src="../js/dark-mode.js"></script>
<nav>
<div style="font-weight: 300">
<a id="site-title" href="/">Yakko Majuri</a>
</div>
<ul id="navbar">
<li class="nav-item"><a href="/blog">blog</a></li>
<li class="nav-item selected"><a href="/albums">pics</a></li>
<li class="nav-item"><a href="/poems">poems</a></li>
</ul>
<div class="toggle-wrapper" onclick="toggleDarkMode()">
<button id="darkModeToggle" class="toggle-button">☀️</button>
</div>
</nav>
<hr />
<h1 style="text-align: center; font-weight: 100; margin-top: 30px; margin-bottom: 30px">Albums</h1>
<div class="grid-container">
<div class="album-grid">
<div>
<a href="/pics/highlights" class="album">
<img src="../img/highlights/6.png" alt="Highlights" />
<h2 class="album-title">Highlights</h2>
</a>
</div>
<div>
<a href="/pics/brazil" class="album">
<img src="../img/brazil/2.png" alt="Brazil" />
<h2 class="album-title">Brazil</h2>
</a>
</div>
<div>
<a href="/pics/hk" class="album">
<img src="../img/hk/main.png" alt="Hong Kong Protests" />
<h2 class="album-title">Hong Kong Protests</h2>
</a>
</div>
</div>
</div>
<div class="grid-container">
<div class="album-grid">
<div>
<a href="/pics/iceland" class="album">
<img src="../img/iceland/1.png" alt="Iceland" />
<h2 class="album-title">Iceland</h2>
</a>
</div>
<div>
<a href="/pics/coronallacs" class="album">
<img src="../img/coronallacs/7.png" alt="Coronallacs" />
<h2 class="album-title">Andorra</h2>
</a>
</div>
<div>
<a href="/pics/taiwan" class="album">
<img src="../img/taiwan/6.png" alt="Taiwan" />
<h2 class="album-title">Taiwan</h2>
</a>
</div>
</div>
</div>
<div class="grid-container">
<div class="album-grid">
<div>
<a href="/pics/black-and-white" class="album">
<img src="../img/bw/2.png" alt="Black & White" />
<h2 class="album-title">Black & White</h2>
</a>
</div>
</div>
</div>
<div id="modal" class="modal">
<span class="close" onclick="closeModal()">×</span>
<img class="modal-content" id="modalImage" />
</div>
<footer>
<div class="footer-content">
<p>© 2023 Yakko Majuri</p>
<ul>
<li><a href="/contact">contact</a></li>
<li><a href="/links">links</a></li>
</ul>
</div>
</footer>
<script src="../js/title.js"></script>
</body>
</html>