Skip to content

Commit b78bb77

Browse files
authored
Merge pull request #9 from 42devops/feat/hero-handwritten-compass
feat: update hero section with centered compass handwritten annotations
2 parents 8ac719b + 21b553c commit b78bb77

2 files changed

Lines changed: 21 additions & 14 deletions

File tree

‎css/neat-annotations.css‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@
3434
max-width: var(--ann-label-max-width);
3535
transform: rotate(var(--ann-rotate));
3636
font-family: var(--ann-font);
37-
font-size: 0.92rem;
38-
font-weight: 500;
37+
font-size: var(--ann-font-size, 0.95rem);
38+
font-weight: var(--ann-font-weight, 500);
3939
line-height: 1.1;
4040
color: var(--ann-color);
4141
opacity: .95;
42-
white-space: normal;
43-
overflow-wrap: anywhere;
42+
white-space: nowrap;
4443
pointer-events: none;
4544
}
4645

@@ -58,11 +57,13 @@
5857
pointer-events: none;
5958
}
6059

61-
.ann:not([data-note])::before,
60+
.ann:not([data-note]):not(.ann-arrow-only)::before,
6261
.ann:not([data-note])::after,
63-
.ann[data-note=""]::before,
62+
.ann[data-note=""]:not(.ann-arrow-only)::before,
6463
.ann[data-note=""]::after { display: none; }
6564

65+
.ann-arrow-only::before { display: block !important; }
66+
6667
.ann-amber { --ann-color: #d97706; --ann-mark: light-dark(color-mix(in oklch, #ffb000 14%, transparent), color-mix(in oklch, #ffb000 22%, transparent)); }
6768
.ann-blue { --ann-color: #2563eb; }
6869
.ann-green { --ann-color: #16a34a; }

‎index.html‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
title: "42DevOps | Infrastructure & Engineering Notes"
44
---
55

6-
<section class="hero-banner">
7-
<h1 class="hero-title">
8-
DevOps, Infrastructure <br/>
9-
&amp; <span class="ann ann-n ann-amber" data-note="The Ultimate Answer">42</span> Engineering Notes
10-
</h1>
11-
<p class="hero-subtitle">
12-
<span class="ann ann-blue">Don't Panic</span>. Building systems that are <span class="ann ann-green">Mostly Harmless</span> — <span class="ann ann-purple">Keep Walking</span>.
13-
</p>
6+
<section class="hero-banner" style="text-align: center; padding: 6rem 0 5.5rem 0;">
7+
<div style="display: inline-block; margin: 2rem 0;">
8+
<span class="ann ann-s ann-amber ann-no-mark" data-note="42" style="--ann-font-size: 1.4rem; --ann-font-weight: 600; --ann-target-gap: 8px;">
9+
<span class="ann ann-n ann-blue ann-no-mark" data-note="Don't Panic" style="--ann-font-size: 1.35rem; --ann-font-weight: 600; --ann-target-gap: 8px;">
10+
<span class="ann ann-e ann-purple ann-no-mark" data-note="Keep Walking" style="--ann-font-size: 1.25rem; --ann-font-weight: 600; --ann-target-gap: 8px;">
11+
<span class="ann ann-w ann-green ann-no-mark" data-note="Mostly Harmless" style="--ann-font-size: 1.25rem; --ann-font-weight: 600; --ann-target-gap: 8px;">
12+
<span style="display: inline-flex; align-items: center; justify-content: center; font-size: 3.2rem; line-height: 1; user-select: none;">
13+
🚶‍♂️
14+
</span>
15+
</span>
16+
</span>
17+
</span>
18+
</span>
19+
</div>
1420
</section>
1521

1622
<section id="articles" style="margin-bottom: 3rem;">

0 commit comments

Comments
 (0)