-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (85 loc) · 3.45 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
---
layout: default
kaomoji: ["(^ヮ^)", "(*≧ω≦*)", "(* ^ ω ^)", "(^ᴗ^)", "(⌒▽⌒)☆", "(^ω^)", "♡(^ᴗ^)", "(≧∇≦)"]
---
<aside class="home">
<div class="aboutme">
<div class="title">
<div class="line left-side"></div>
<h1>About me</h1>
<div class="line right-side"></div>
</div>
<p>Hi! My name's Martin, and I'm currently studying <a href="https://kau.se/en/education/programmes-and-courses/programmes/TGKDV">Computer Science at Karlstad University</a> in Sweden. Most of the time I bodge code, and it somehow manages to work.</p>
<p>My most impactful change as a developer is probably <a href="https://chromium-review.googlesource.com/c/chromium/src/+/2231049">a bug I fixed in Chromium</a> :-)</p>
<nav>
{% for link in site.data.main_links %}
<p><a href="{{ link.url }}" {% if link.external %}target="_blank"{% endif %}>{{ link.title }}{% if link.external %} ↗{% endif %}</a></p>
{% endfor %}
</nav>
</div>
<div class="bottomnote">
<img src="/assets/gspfp.jpeg" alt="Space profile picture">
<p>— · —</p>
</div>
</aside>
<main class="content">
<section>
<div class="title">
<div class="line left-side"></div>
<h1>Projects</h1>
<div class="line right-side"></div>
</div>
<div class="projects">
{% assign gh_repos = site.github.public_repositories %}
{% for local_repo in site.data.repositories %}
{% for repo in gh_repos %}
{% if repo.name contains local_repo %}
<div class="project {{ repo.language }} main-project">
<h2><a href="{{ repo.html_url }}">{{ repo.name }}</a></h2>
<p>{{ repo.description }}</p>
<picture class="imagecontainer">
<source srcset="/assets/projects/{{ local_repo | downcase }}-light.avif" media="(prefers-color-scheme: light)" type="image/avif">
<source srcset="/assets/projects/{{ local_repo | downcase }}.avif" type="image/avif">
<source srcset="/assets/projects/{{ local_repo | downcase }}-light.png" media="(prefers-color-scheme: light)">
<source srcset="/assets/projects/{{ local_repo | downcase }}.png">
<img src="assets/projects/{{ local_repo | downcase }}.png" alt="{{ local_repo }}'s UI">
</picture>
<span>{{ repo.language }}</span>
</div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
<div class="projects">
{% for repo in site.data.other_repos %}
<div class="project {{ repo.language }}">
<h2><a href="{{ repo.url }}">{{ repo.name }}</a></h2>
<p>{{ repo.description }}</p>
<span>{{ repo.language }}</span>
</div>
{% endfor %}
</div>
</section>
<section class="darkersection growsmost">
<div class="title">
<div class="line left-side"></div>
<h1>Blog Posts</h1>
<div class="line right-side"></div>
</div>
{% for post in site.posts limit:10 %}
<div class="blogpostpreview">
<p class="postdate">{{ post.date | date: "%Y-%m-%d" }}</p>
<p class="forcesingleline"><a href="{{ post.url }}">{{ post.title }}</a></p>
</div>
{% endfor %}
</section>
<footer>
{% assign year = "now" | date: "%Y" %}
<p>Mnpn {{ year }}, last built on {{ site.time | date_to_long_string: "ordinal", "US" | remove: year | remove: ", " }}</p>
<p>Made with <span id="kao"><noscript>:(</noscript></span> in Sweden</p>
</footer>
</main>
<script>
let kao = {{ page.kaomoji | inspect | replace: """, "'" }};
document.querySelector("#kao").setAttribute("before", kao[parseInt(Math.random() * kao.length)]);
</script>