-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
521 lines (506 loc) · 16.8 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
<!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>
.also {
font-size: 1.5em;
font-weight: bold;
margin: 0.5em 0;
text-align: center;
width: 100%;
display: block;
}
.also a {
text-decoration: underline;
}
.also:hover a {
text-decoration: none;
}
@font-face {
font-family: "BogFace";
src: url("making-bogface/BogFace.woff");
}
.BogFace {
font-family: "BogFace";
}
</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>
<p class="also">
also check out ->
<a href="https://weeknotes.alifeee.co.uk">alifeee's weeknotes!!!</a>
</p>
<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>