-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
436 lines (384 loc) Β· 13 KB
/
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!doctype html>
<!--suppress CheckImageSize -->
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Cervon's yard</title>
<meta name="description"
content="My yard is a little corner of the Internet where I share my hobbies and where I keep a record the cool stuff I found and learnt along the way.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="">
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="favicon-192.png">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/global.css">
<meta name="theme-color" content="#fafafa">
<!-- Google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Shantell+Sans:wght,[email protected],-100..100&display=swap"
rel="stylesheet">
<style>
body {
background-color: #99E550;
color: darkolivegreen;
background-image: url('img/background-grass.gif');
background-size: 6rem 6rem;
background-repeat: repeat;
image-rendering: pixelated;
}
::selection {
background: green;
color: lightgoldenrodyellow;
}
a {
color: green;
font-weight: 600;
text-decoration: yellowgreen solid underline 0.2rem;
text-decoration-skip-ink: none;
}
a:hover {
background-color: greenyellow;
color: darkgreen;
text-decoration: yellowgreen wavy underline 0.15rem;
}
p {
line-height: 1.4;
}
strong {
font-weight: 700;
}
h1, h2 {
font-weight: 700;
animation: infinite 1s alternate title-bounce linear;
}
@keyframes title-bounce {
0% {
font-variation-settings: "wght" 700, "BNCE" -100;
}
50% {
font-variation-settings: "wght" 700, "BNCE" 0;
}
100% {
font-variation-settings: "wght" 700, "BNCE" 100;
}
}
h1 {
font-size: 2.5rem;
line-height: 1.3;
color: greenyellow;
text-shadow: 2px 0 darkgreen, -2px 0 darkgreen, 0 2px darkgreen, 0 -2px darkgreen,
1px 1px darkgreen, -1px -1px darkgreen, 1px -1px darkgreen, -1px 1px darkgreen,
0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 30%);
text-align: center;
}
@media (max-width: 38rem) {
h1 {
font-size: 2.2rem;
}
}
h2 {
align-items: center;
font-size: 1rem;
padding: 0.2rem 0.5rem 0 0.5rem;
background-image: linear-gradient(to right, rgba(173, 255, 47, 80%) 10%, rgba(173, 255, 47, 5%) 100%);
}
h2:after {
content: "";
display: block;
height: 0.15rem;
margin: 0 -0.5rem;
background-image: linear-gradient(to right, rgba(0, 128, 0, 30%) 10%, rgba(0, 128, 0, 0%) 100%);
}
hr {
border: none;
height: 0.15rem;
background-image: linear-gradient(to right, rgba(0, 128, 0, 30%) 10%, rgba(0, 128, 0, 0%) 100%);
}
button {
border-radius: 50%;
font-weight: 500;
border: 0.2rem solid darkgoldenrod;
padding: 0.2rem 0.5rem;
background-image: linear-gradient(to bottom, rgb(218, 165, 32) 0, rgb(229, 192, 107) 100%);
color: #6c4c05;
box-shadow: rgba(0, 0, 0, 30%) 0.2rem 0.2rem 0.2rem 0;
}
button:hover {
background-image: linear-gradient(to bottom, rgb(231, 185, 91) 0, rgb(232, 201, 121) 50%);
color: darkgoldenrod;
}
button:active {
background-image: linear-gradient(to bottom, rgb(232, 205, 143) 0, rgb(241, 222, 178) 80%);
color: darkgoldenrod;
box-shadow: none;
}
.top-nav-ul, .aside-nav-ul {
margin: 0;
padding: 0;
}
.top-nav-li, .aside-nav-li {
margin: 0;
padding: 0.6rem 0 0.6rem 2.2rem;
list-style: none;
background-image: url("img/bullet-flower.gif");
background-repeat: no-repeat;
background-position: left center;
background-size: 2rem;
}
.top-nav-li {
display: inline-block;
}
.top-nav-li a {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-items: center;
}
.top-nav-li img {
filter: drop-shadow(0 0 0.2rem rgba(119, 49, 16, 0.5));
}
.top-nav-li:hover .hovered-sprite {
display: block;
}
.top-nav-li .hovered-sprite {
display: none;
}
.top-nav-li:hover .default-sprite {
display: none;
}
.top-nav-li .default-sprite {
display: block;
}
:focus-visible {
outline: green 0.2rem dashed;
outline-offset: 0.1rem;
}
.questions-and-aside-box-wrapper {
/* Nothing */
}
@media (min-width: 38rem) {
.questions-and-aside-box-wrapper {
display: flex;
flex-direction: row;
gap: 1rem;
}
}
aside {
flex: 1;
}
.box {
background: lightgoldenrodyellow;
border: 0.3rem goldenrod ridge;
margin-bottom: 1.2rem;
border-radius: 1rem 0;
box-shadow: green 0.2rem 0.2rem 0.2rem 0;
}
.box p, .box .pad-horizontal {
padding: 0 0.5rem;
}
.header-box {
/*background: palegoldenrod;*/
background-image: linear-gradient(to bottom, rgb(239, 217, 139) 0%, rgba(238, 232, 170, 100%) 100%);
margin-top: 4rem;
margin-bottom: 0;
border-radius: 1rem 0 0 0;
}
.header-box h1 {
margin-bottom: 1rem;
}
.header-box:after {
content: "";
display: block;
background-repeat: repeat-x;
height: 1.25rem;
width: 100%;
background-image: url('img/decoration-grass.gif');
}
.intro-box {
border-top: none;
padding-top: 0.01rem; /* For padding collapse with p*/
border-radius: 0 0 1rem 0;
}
.questions-box {
flex: 3;
}
.title-box-contents {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.footer-box {
}
.footer-badge-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.1rem;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}
.language-button-bar {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.2rem;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<div class="layout-wrapper">
<header class="header-box box">
<div class="title-box-contents">
<img src="img/decoration-butterflies.gif"
alt="Butterflies flying."
height="55"
width="60"
style="margin-right: 0.5rem">
<h1>Welcome to Cervon's yard!!!</h1>
<img src="img/decoration-butterflies.gif"
alt="Butterflies flying."
height="55"
width="60"
style="margin-left: 0.5rem">
</div>
</header>
<main>
<section class="intro-box box">
<p><strong>Hello fellow wanderer</strong> π, you've arrived at my little part of the internet (affectionately
dubbed my "yard") where I share my
hobbies and where I keep a record of the cool stuff that I have collected over time. π«</p>
<p>Have fun exploring each nook and cranny of my yard below :)</p>
</section>
<nav class="top-nav">
<ul class="top-nav-ul">
<li class="top-nav-li">
<a href="gallery.html">
<img src="img/top-nav-callig.png" class="default-sprite" width="128" height="128"
alt="Gallery">
<img src="img/top-nav-callig-bright.png" class="hovered-sprite" width="128" height="128"
alt="Gallery">
Gallery
</a>
</li>
<li class="top-nav-li">
<a href="garden.html">
<img src="img/top-nav-diary-closed.png" class="default-sprite" width="128" height="128"
alt="Flower garden">
<img src="img/top-nav-diary-open.png" class="hovered-sprite" width="128" height="128"
alt="Flower garden">
Flower garden
</a>
</li>
<li class="top-nav-li">
<a href="chest.html">
<img src="img/top-nav-chest-closed.png" class="default-sprite" width="128" height="128"
alt="Secret chest">
<img src="img/top-nav-chest-open.png" class="hovered-sprite" width="128" height="128"
alt="Secret chest">
Secret chest
</a>
</li>
</ul>
</nav>
<div class="questions-and-aside-box-wrapper">
<section class="questions-box box">
<h2>π Who am I?</h2>
<p>Hi, I'm Cervon Wong. I like to program and design useful apps. Currently, my
passion is in software development, AI, biology and linguistics. You can check out my Chinese calligraphy
work in <a href="gallery.html">the gallery</a>. π
</p>
<p>I'm currently pursuing computer science, and I maintain an online diary of what I'm learning in this field
in <a href="garden.html">my flower garden</a>!</p>
<p>I also love learning languages. Languages that I speak include English, Chinese, Japanese, Toki Pona
(conlang),
and French (still learning so not that fluent yet). Check out some of my language puzzles in
<a href="chest.html">the secret chest</a>.</p>
<h2>π How did I build my yard?</h2>
<p>I built this site using just HTML, CSS, and
<a href="http://vanilla-js.com/" target="_blank">VanillaJS</a>. I drew the pixel art graphics using
<a href="https://www.aseprite.org/" target="_blank">Aseprite</a>, my favourite pixel art software.
My yard is always under construction and remodelling π§, so stay tuned for updates!</p>
<p><a href="construction.html">More details about my yard</a></p>
<img src="img/decoration-under-construction.gif" width="96" height="66"
alt="This site is under construction.">
</section>
<aside>
<div class="aside-controls-box box">
<nav class="aside-nav">
<h2>Intrasite links</h2>
<ul class="aside-nav-ul pad-horizontal">
<li class="aside-nav-li">
<a href="construction.html">About yard</a>
</li>
</ul>
</nav>
<!-- <h2>Change language</h2>-->
<!-- <div class="language-button-bar pad-horizontal">-->
<!-- <button onClick="alert('Not implemented yet!');">English</button>-->
<!-- <button onClick="alert('Not implemented yet!');">toki pona</button>-->
<!-- </div>-->
</div>
<div class="site-info-box box">
<p>
<span>You're visitor number</span>
<span id="visitor-counter" style="pointer-events: none">
<!-- View counter will be added here by script below. -->
</span>
<span>!</span>
</p>
</div>
</aside>
</div>
</main>
<footer>
<section class="footer-box box">
<p>
<small>π± That's all from me, thanks for stopping by my yard! π± </small><br>
<small>Site last updated:
<time>2023-09-05</time>
.</small>
</p>
<p>
<a href="https://links.cervonwong.com" target="_blank">
π Visit my other websites. π
</a>
</p>
<img src="img/decoration-antelope.gif" alt="An antelope eating grass." style="float: right;">
</section>
<section class="footer-badge-row">
<a href="https://links.cervonwong.com" target="_blank">
<img src="img/badge-links.gif" width="88" height="31" alt="Visit my other sites!">
</a>
<img src="img/badge-any-browser.gif" width="88" height="31" alt="Best viewed with any browser.">
<img src="img/badge-imagination.gif" width="88" height="31" alt="This site is powered by imagination.">
<img src="img/badge-handcoded.gif" width="88" height="31" alt="Completely hand-coded.">
<img src="img/badge-valid-html.png" width="88" height="31" alt="Powered by HTML.">
<img src="img/badge-valid-css.gif" width="88" height="31" alt="Powered by CSS.">
<img src="img/badge-vanillajs.png" width="80" height="15" alt="Powered by VanillaJS.">
<img src="img/badge-singapore.gif" width="80" height="15" alt="Built in Singapore.">
</section>
</footer>
<!-- Add view counter -->
<script>
var span = document.getElementById("visitor-counter");
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = '//counter1.fc2.com/counter.php?id=39224302&main=1'
span.appendChild(script);
</script>
<script src="js/vendor/modernizr-3.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script type="module" src="js/vendor/firebase.js"></script>
</div>
</body>
</html>