Skip to content

Commit 2f9749f

Browse files
authored
Merge pull request #221 from querkmachine/brand-refresh-2025
2 parents 7e38a4d + 4d9c3dd commit 2f9749f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1011
-1449
lines changed

eleventy.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export default function (eleventyConfig) {
106106
// Collections
107107
eleventyConfig.addCollection("tags", getAllTags);
108108

109+
// Bundles
110+
eleventyConfig.addBundle("css");
111+
109112
// Custom Nunjucks functions
110113
eleventyConfig.addNunjucksGlobal("merge", mergeArrays);
111114
eleventyConfig.addNunjucksGlobal("getTableOfContents", getTableOfContents);

src/404.njk

Lines changed: 46 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -5,74 +5,60 @@ eleventyExcludeFromCollections: true
55

66
{% extends 'src/_layouts/layout.njk' %}
77

8-
{% block head %}
9-
<style>
10-
.page-background {
11-
inline-size: 100%;
12-
block-size: 100%;
13-
position: fixed;
14-
inset: 0;
15-
z-index: -1;
16-
}
8+
{% css %}
9+
.pageWrapper {
10+
max-width: 22em;
11+
margin-inline: auto;
12+
text-align: center;
13+
}
1714

18-
.page-content {
19-
max-width: 22em;
20-
margin-inline: auto;
21-
text-align: center;
22-
}
23-
24-
.page-noodle {
25-
margin-block-end: 0;
26-
}
27-
28-
.page-heading {
29-
margin-block-start: calc(var(--space-3) * -1);
30-
margin-block-end: var(--space-5);
31-
transform: rotate(2deg);
32-
}
33-
34-
.page-advice {
35-
transform: rotate(-3deg);
36-
}
37-
38-
.page-it,
39-
.page-you {
40-
color: var(--color-text-accent);
41-
}
42-
43-
.page-it {
44-
position: relative;
45-
}
46-
47-
.page-it::after {
48-
content: "";
49-
display: block;
50-
width: 100%;
51-
aspect-ratio: 9/16;
52-
position: absolute;
53-
top: 100%;
54-
left: 0;
55-
background-image: url("{{ '/assets/images/noodle-404-drips.webp' | url }}");
56-
background-size: contain;
57-
background-repeat: no-repeat;
58-
}
59-
</style>
60-
{% endblock %}
15+
.pageImage {
16+
margin-block-end: 0;
17+
}
6118

62-
{% block beforeMasthead %}
63-
<canvas class="page-background" id="background" width="1000" height="500" hidden></canvas>
64-
{% endblock %}
19+
.pageHeading {
20+
margin-block-start: calc(var(--space-3) * -1);
21+
margin-block-end: var(--space-5);
22+
transform: rotate(2deg);
23+
}
24+
25+
.pageContent {
26+
transform: rotate(-3deg);
27+
}
28+
29+
.pageIt,
30+
.pageYou {
31+
color: var(--color-text-accent);
32+
}
33+
34+
.pageIt {
35+
position: relative;
36+
}
37+
38+
.pageIt::after {
39+
content: "";
40+
display: block;
41+
width: 100%;
42+
aspect-ratio: 9/16;
43+
position: absolute;
44+
top: 100%;
45+
left: 0;
46+
background-image: url("{{ '/assets/images/noodle-404-drips.webp' | url }}");
47+
background-size: contain;
48+
background-repeat: no-repeat;
49+
}
50+
{% endcss %}
6551

6652
{% block main %}
6753
<div class="kim-!-padding-block-start-3-4 kim-!-padding-block-end-3-4">
6854
<div class="kimWrapper">
69-
<div class="page-content">
70-
{% responsiveImage "./src/assets/images/noodle-404.webp", "An amphimorpho stuck to the wall, looking at the viewer aggressively.", { classes: "page-noodle", lazy: false } %}
71-
<h1 class="kimHeading-s page-heading">
55+
<div class="pageWrapper">
56+
{% responsiveImage "./src/assets/images/noodle-404.webp", "An amphimorpho stuck to the wall, looking at the viewer aggressively.", { classes: "pageImage", lazy: false } %}
57+
<h1 class="kimHeading-s pageHeading">
7258
The page you were looking for couldn&rsquo;t be found&hellip;<br>
73-
but <span class="page-it">it</span> has found <span class="page-you">you</span>!
59+
but <span class="pageIt">it</span> has found <span class="pageYou">you</span>!
7460
</h1>
75-
<div class="page-advice">
61+
<div class="pageContent">
7662
<p class="kimBody">You might want to get out of here fast.<br>
7763
<a href="{{ '/' | url }}" class="kimLink">Return home, quickly!</a></p>
7864
</div>
@@ -83,11 +69,3 @@ eleventyExcludeFromCollections: true
8369

8470
{% block masthead %}{# Keep it simple, stupid. #}{% endblock %}
8571
{% block footer %}{# Keep it really simple, stupid. #}{% endblock %}
86-
87-
{% block scripts %}
88-
{{ super() }}
89-
<script type="module">
90-
import Spots from "{{ '/assets/javascript/spots.js' | url | cachebust }}";
91-
new Spots(document.querySelector(".page-background"), { isAnimated: true });
92-
</script>
93-
{% endblock %}

src/_includes/blog-card.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
{%- if options.prelabel %}{{ options.prelabel }}: {% endif -%}
1010
<a class="kimLink kimBlogCard_link" href="{{ post.url | absoluteUrl(site.domain) }}" itemprop="url" {%- if options.rel %} rel="{{ options.rel }}"{% endif %}>
1111
<span itemprop="name" {%- if post.data.titleLang %} lang="{{ post.data.titleLang }}"{% endif %}>
12+
<span class="kim-!-visually-hidden">Published</span>
1213
{{- post.data.title | markdownInline | safe -}}
1314
</span>
1415
</a>

src/_includes/development-tag.njk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{%- if site.environment == "dev" %}
2-
<details id="dev-tag">
3-
<summary id="dev-tag__label">
2+
<details id="pageDevTag">
3+
<summary>
44
<span>Development</span>
55
</summary>
66
<div>
@@ -16,7 +16,7 @@
1616
</details>
1717

1818
<style>
19-
#dev-tag {
19+
#pageDevTag {
2020
position: sticky;
2121
width: 100%;
2222
top: 0;
@@ -25,22 +25,22 @@
2525
color: white;
2626
background-color: #c00;
2727
}
28-
#dev-tag summary { list-style: none; }
29-
#dev-tag summary::-webkit-details-marker { display: none; }
30-
#dev-tag summary {
28+
#pageDevTag summary { list-style: none; }
29+
#pageDevTag summary::-webkit-details-marker { display: none; }
30+
#pageDevTag summary {
3131
padding: .25em 1em .25em .5em;
3232
font-size: smaller;
3333
font-weight: bold;
3434
text-transform: uppercase;
3535
cursor: pointer;
3636
}
37-
#dev-tag div {
37+
#pageDevTag div {
3838
display: grid;
3939
grid-template-columns: 8em 1fr;
4040
gap: .5em;
4141
padding: .5em;
4242
}
43-
#dev-tag textarea {
43+
#pageDevTag textarea {
4444
width: 100%;
4545
height: 10em;
4646
resize: vertical;

src/_includes/table-of-contents.njk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@
1111
</li>
1212
{%- endmacro %}
1313

14-
{%- set toc = getTableOfContents(content) %}
15-
16-
{%- if toc | length > 0%}
1714
<nav class="kimToc" aria-labelledby="toc-heading">
18-
<h2 class="kimBody kimToc_heading" id="toc-heading">Contents</h2>
15+
<h2 class="kimHeading-2xs" id="toc-heading">On this page</h2>
1916
<ul class="kimList kimBody-s kimToc_list">
2017
{%- for i in toc %}
2118
{{ _tocItem(i) }}
2219
{%- endfor %}
2320
</ul>
24-
</nav>
25-
{%- endif %}
21+
</nav>

src/_layouts/blog-archive.njk

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44

55
{% set yearList = postsList | getArchiveYears | reverse %}
66

7-
{% block head %}
8-
<style>
9-
.page-sticky-heading {
10-
position: sticky;
11-
inset-block-start: var(--space-5);
12-
}
13-
</style>
14-
{% endblock %}
7+
{% css %}
8+
.pageYearHeading {
9+
position: sticky;
10+
inset-block-start: var(--space-5);
11+
font-variant-numeric: tabular-nums;
12+
}
13+
{% endcss %}
1514

1615
{% block main %}
1716
<div class="kim-!-margin-block-8-9">
@@ -37,7 +36,7 @@
3736
<hr class="kimRule">
3837
<div class="kimGrid">
3938
<div class="kimGrid_column kimGrid_column-full defiant:kimGrid_column-oneThird">
40-
<h2 class="kimHeading-l kim-!-margin-block-start-0 page-sticky-heading">{{ year }}</h2>
39+
<h2 class="kimHeading-l kim-!-margin-block-start-0 pageYearHeading">{{ year }}</h2>
4140
</div>
4241
<div class="kimGrid_column kimGrid_column-full defiant:kimGrid_column-twoThirds">
4342
<ol class="kimList kimList-spaced">

0 commit comments

Comments
 (0)