-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
656 lines (637 loc) · 20.1 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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
<!DOCTYPE html>
<html lang="en">
<head>
<title>alifeee's blog</title>
<!-- browser metas -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="My personal blog where sometime I'll write things."
/>
<!-- embed metas - https://ogp.me/ -->
<meta property="og:title" content="alifeee's blog" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://blog.alifeee.co.uk" />
<meta
property="og:image"
content="https://blog.alifeee.co.uk/og-image.png"
/>
<meta
property="og:description"
content="My personal blog where sometime I'll write things."
/>
<meta property="og:locale" content="en_GB" />
<!-- favicons -->
<link rel="icon" type="image/png" href="./favicon.png" />
<!-- stylesheets -->
<link rel="stylesheet" href="./stylesheet.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Josefin+Sans|Roboto"
/>
<style>
@font-face {
font-family: "BogFace";
src: url("making-bogface/BogFace.woff");
}
.BogFace {
font-family: "BogFace";
}
</style>
<style>
main > * {
max-width: 40rem;
}
main {
display: flex;
flex-direction: column;
align-items: center;
}
main,
#introduction {
max-width: unset;
}
.other-sites {
margin: 0.5rem 0 0 0;
max-width: 100vw;
width: auto;
}
.other-sites h2 {
font-size: 2rem;
margin: 0;
}
.other-sites-list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
/* website style */
.website {
font-family: "Josefin Sans";
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #222;
color: white;
text-decoration: none;
max-width: 20rem;
}
.website:visited {
color: white;
}
.website > * {
width: 100%;
text-align: center;
margin: 0 1rem;
}
.website .title {
background-color: #63a;
padding: 1rem 0;
}
.website p {
margin: 0.5rem 1rem;
padding: 0 1rem;
}
/* weeknote style */
@font-face {
font-family: "BogFace";
src: url("./fonts/BogFace.woff2");
}
.weeknote {
font-family: "BogFace", sans-serif !important;
padding: 1rem;
margin: 0.5rem;
display: grid;
grid-template-columns: 4fr 3fr;
grid-template-rows: auto auto;
grid-template-areas:
"title date"
"words links";
grid-gap: 1rem;
border: 1px solid grey;
border-radius: 0.5rem;
max-width: 40rem;
position: relative;
background-color: #f5abb7;
background-size: 25px 25px;
background-image: repeating-linear-gradient(
-45deg,
#9591 0,
#9591 2px,
#f5abb7 0,
#f5abb7 50%
);
text-decoration: none;
text-align: center;
color: #444 !important;
position: relative;
}
.weeknote:visited {
color: #444 !important;
}
.weeknote .title {
margin: 0;
grid-area: title;
color: #000;
font-size: 1.5rem;
}
.weeknote .words {
grid-area: words;
}
.weeknote .links {
grid-area: links;
}
.weeknote .date {
grid-area: date;
}
/* notes style */
.notes {
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
background-color: white;
color: #111;
padding: 1rem 0.5rem;
border: 2px dashed #f0f8;
}
.notes p {
margin: 0;
}
.notes .n1 {
font-size: 2rem;
font-weight: bold;
}
</style>
</head>
<body>
<header>
<a href="./">
<h1>alifeee's blog</h1>
</a>
<a id="rss" href="./feed.xml">
<img alt="_RSS_" src="./icons/rss.svg" />
</a>
</header>
<main>
<section id="introduction">
<p>
Welcome to my blog! I will sometimes write things! You are welcome to
like the things!
</p>
<p>
Subscribe to the
<a href="./feed.xml">RSS feed</a>
to be notified when there is new <i>content</i> to digest.
</p>
<section class="other-sites">
<h2>Why not check out:</h2>
<div class="other-sites-list">
<a class="website" href="https://alifeee.co.uk">
<span class="title">alifeee.co.uk</span>
<p class="desc">
creations, inventions, and madness from the mind of alifeee
</p>
</a>
<a href="https://weeknotes.alifeee.co.uk/" class="weeknote">
<span class="title">my weeknotes !! :]</span>
<span class="words">between 137 and 3,215 words</span>
<span class="links">many links</span>
<time class="date">posted every Sunday</time>
</a>
<a class="notes" href="https://blog.alifeee.co.uk/notes/">
<p class="n1">notes by alifeee</p>
<p class="n2">
short, text-only notes, mostly about programming.
</p>
</a>
</div>
</section>
<p>
If you have any comments, email me → alifeee [dot] web [at] outlook
[dot] com or message me on any social media →
<a href="https://linktr.ee/alifeee">https://linktr.ee/alifeee</a> :)
</p>
</section>
<h2 id="posts-header">Posts</h2>
<ul class="categories" id="categories">
<li id="category-all"><a href="/">all</a></li>
</ul>
<ul class="blog posts">
<li class="post">
<a href="./2024/09/sellotape-dispenser/" class="link">
<div class="preview-image">
<img
src="./2024/09/sellotape-dispenser/og-image.jpg"
alt="picture of a sellotape dispenser"
/>
</div>
<hgroup class="info">
<h2 class="title">
3D printing a repair for my sellotape dispenser
</h2>
<p class="date">
<time datetime="2024-09-23">2024-09-23</time>
</p>
<ul class="categories"></ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./2024/09/fold-an-envelope/" class="link">
<div class="preview-image">
<img
src="./2024/09/fold-an-envelope/envelope.png"
alt="drawing of an envelope with stamp"
style="rotate: 5deg"
/>
</div>
<hgroup class="info">
<h2 class="title">Folding an A4 sheet into its own envelope</h2>
<p class="date">
<time datetime="2024-09-08">2024-09-08</time>
</p>
<ul class="categories">
<li class="paper">paper</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./railcards" class="link">
<div class="preview-image">
<img
src="./railcards/og-image.png"
alt="bogface text"
width="450"
height="376"
/>
</div>
<hgroup class="info">
<h2 class="title">
UK Railcards and all the differences between the 16-25 and 26-30
Railcard
</h2>
<p class="date">
<time datetime="2024-06-09">2024-06-09</time>
</p>
<ul class="categories">
<li class="investigations">investigations</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./gists" class="link">
<div class="preview-image">
<img
src="./gists/og-image.png"
alt="bogface text"
height="450"
width="450"
style="rotate: 5deg"
/>
</div>
<hgroup class="info">
<h2 class="title">
Why I like (GitHub) gists and a short tour through ones I have
created
</h2>
<p class="date">
<time datetime="2024-05-01">2024-05-01</time>
</p>
<ul class="categories">
<li class="programming">programming</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./font-workshop" class="link">
<div class="preview-image">
<img
src="./font-workshop/images/poster.svg"
alt='Text, "FONT MAKING WORKSHOP!"'
height="450"
width="450"
/>
</div>
<hgroup class="info">
<h2 class="title">I ran a computer font-making workshop!</h2>
<p class="date">
<time datetime="2024-03-09">2024-03-09</time>
</p>
<ul class="categories">
<li class="font">font</li>
<li class="hackspaces">hackspaces</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./making-bogface" class="link">
<div class="preview-image">
<img
src="./making-bogface/front-page-image.png"
alt="bogface text"
height="450"
width="450"
/>
</div>
<hgroup class="info">
<h2 class="title">
Making my own Font - <span class="BogFace">BogFace</span>
</h2>
<p class="date">
<time datetime="2023-12-23">2023-12-23</time>
</p>
<ul class="categories">
<li class="font">font</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./what-is-a-third-space" class="link">
<div class="preview-image">
<img
src="./what-is-a-third-space/og-image.png"
alt="third space text on a shape background"
height="450"
width="450"
/>
</div>
<hgroup class="info">
<h2 class="title">
What is a third space and why do I like the concept?
</h2>
<p class="date">
<time datetime="2023-12-15">2023-12-15</time>
</p>
<ul class="categories">
<li class="social">social</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./hackspace-adventures" class="link">
<div class="preview-image">
<img
src="./hackspace-adventures/og-image.png"
alt="three hackspace logos"
height="450"
width="450"
/>
</div>
<hgroup class="info">
<h2 class="title">
What, why, and how is a Hackspace, and what have I used them
for?
</h2>
<p class="date">
<time datetime="2023-11-07">2023-11-07</time>
</p>
<ul class="categories">
<li class="hackspaces">hackspaces</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./factorio-proximity-chat" class="link">
<div class="preview-image">
<img
src="./factorio-proximity-chat/og-image.png"
alt='Screenshot
of 3 players from Factorio saying "Proximity Voice Chat!";
"Pardon?"'
height="337"
width="337"
style="height: min-content"
/>
</div>
<hgroup class="info">
<h2 class="title">
Coding Projects! #2: Proximity-based voice chat for Factorio
</h2>
<p class="date">
<time datetime="2023-10-30">2023-10-30</time>
</p>
<ul class="categories">
<li class="programming">programming</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./hull-bus-sign" class="link">
<div class="preview-image">
<img
src="./hull-bus-sign/og-image.png"
alt="Sketch of Dot Matrix Display showing the text 'Dot Matrix Display'"
height="290"
width="700"
style="rotate: -9deg"
/>
</div>
<hgroup class="info">
<h2 class="title">
Hull Bus Terminal Signs: Making Pong on an old Dot-Matrix
Display
</h2>
<p class="date">
<time datetime="2023-10-08">2023-10-08</time>
</p>
<ul class="categories">
<li class="electronics">electronics</li>
<li class="hackspaces">hackspaces</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./steam-collage-api" class="link">
<div class="preview-image">
<img
src="./steam-collage-api/images/mosaic_small.jpg"
alt="Thumbnail of alifeee's most played games on Steam."
height="215"
width="450"
style="border-radius: 1em; height: min-content"
/>
</div>
<hgroup class="info">
<h2 class="title">
Coding Projects! #1: Collage generator for Steam games
</h2>
<p class="date">
<time datetime="2023-08-23">2023-08-23</time>
</p>
<ul class="categories">
<li class="programming">programming</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./snippets-of-a-degree" class="link">
<div class="preview-image">
<img
src="./snippets-of-a-degree/images/cover-image.svg"
alt="Sketch of stack of scrap paper, with low-poly graduation hat overlayed"
/>
</div>
<hgroup class="info">
<h2 class="title">
Snippets of a Degree - random sentences from random Masters'
projects
</h2>
<p class="date">
<time datetime="2023-07-10">2023-07-10</time>
</p>
<ul class="categories">
<li class="paper">paper</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./sketch-your-society" class="link">
<div class="preview-image">
<img
src="./sketch-your-society/images/sketchbook_screenshot_transparent.png"
alt="Photo of sketchbook front cover, slightly open. Title reads 'Durham Uni: 2021 Freshers' Fair Sketchbook"
/>
</div>
<hgroup class="info">
<h2 class="title">
Sketch Your Society: 100 different sketches from 100 different
societies
</h2>
<p class="date">
<time datetime="2023-06-24">2023-06-24</time>
</p>
<ul class="categories">
<li class="paper">paper</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./ring-populations" class="link">
<div class="preview-image">
<img
src="./ring-populations/images/rings.svg"
alt="Sketch of
concentric rings with 'Birmingham' in centre"
/>
</div>
<hgroup class="info">
<h2 class="title">
Ring populations: how to compare cities more agnostically
</h2>
<p class="date">
<time datetime="2023-06-18">2023-06-18</time>
</p>
<ul class="categories">
<li class="statistics">statistics</li>
</ul>
</hgroup>
</a>
</li>
<li class="post">
<a href="./bike-to-cambridge" class="link">
<div class="preview-image">
<img
src="./bike-to-cambridge/images/directionality.svg"
alt="Polar bar chart of direction travelled"
title="Which directions I biked the most. Red line is the bearing from Birmingham to Cambridge."
/>
</div>
<hgroup class="info">
<h2 class="title">
I biked from Birmingham to Cambridge (a tribute to national
cycle routes)
</h2>
<p class="date">
<time datetime="2023-05-10">2023-05-10</time>
</p>
<ul class="categories">
<li class="adventures">adventures</li>
</ul>
</hgroup>
</a>
</li>
</ul>
</main>
<footer>
<div class="links">
<a href="https://github.com/alifeee/blog">
<img alt="_GitHub_" src="./icons/github.svg" />
<span class="text">GitHub</span>
</a>
<a href="https://linktr.ee/alifeee">
<img alt="_Linktree_" src="./icons/linktree-logo-icon.svg" />
<span class="text">Linktree</span>
</a>
<a href="mailto:[email protected]">
<img alt="_Email_" src="./icons/envelope-solid.svg" />
<span class="text">Email</span>
</a>
</div>
<a class="backlink" href="https://alifeee.co.uk">Back to alifeee.co.uk</a>
</footer>
</body>
<script>
const posts = document.querySelectorAll(".post");
const categorylist = document.querySelector("#categories");
// get "category" query param and filter posts
const urlParams = new URLSearchParams(window.location.search);
const queryCategory = urlParams.get("category");
function hasCategory(post, category) {
return post.querySelector(`.categories > .${category}`);
}
if (queryCategory) {
// hide all posts
posts.forEach((post) => {
post.style.display = "none";
});
// show posts with category
posts.forEach((post) => {
if (hasCategory(post, queryCategory)) {
post.style.display = "block";
}
});
} else {
document.querySelector("#category-all").classList.add("active");
}
// add links at top of page for each category
const categories = new Set();
posts.forEach((post) => {
post.querySelectorAll(".categories > li").forEach((category) => {
categories.add(category.innerText);
});
});
function categoryListItem(category, active = false) {
const listItem = document.createElement("li");
const link = document.createElement("a");
link.href = `?category=${category}`;
link.innerText = category;
listItem.appendChild(link);
if (active) {
listItem.classList.add("active");
}
return listItem;
}
// sort categories alphabetically
let categories_sorted = Array.from(categories).sort();
categories_sorted.forEach((category) => {
categorylist.appendChild(
categoryListItem(category, category === queryCategory)
);
});
</script>
</html>