Repository navigation
Commit a788285
authored
feat(home): add an accessible pre-release banner (#6)
* feat(home): add an accessible pre-release banner
Adds a status strip above the hero: v0.1.0-rc.1 is in final testing,
with no download links yet, plus a defensive footer-links wrap.
Refs #5
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
* fix(home): drop the duplicate GitHub mention in the release banner
The body sentence already said "follow progress on GitHub" right
next to a link with the same label; the sentence no longer repeats
what the link already says.
Refs #5
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
* feat(home): add decorative emoji to the H1 and section headings
My call: the README's lite emoji treatment (one emoji per H1/H2,
decorative, nothing in code blocks or below H2) carries over to this
page's headings -- a lock on the hero title, and one icon per section
chosen to match its own wording (anchor for "trust anchor", key for
"your keys", satellite for the fleet of linked nodes).
Each icon sits in its content object as a Unicode escape rather than
a literal character, since this repo's hooks block emoji in source
files outside Markdown/GitHub config; the escape still renders as the
real character in the built page. Every icon is wrapped in an
aria-hidden span so screen readers read only the heading text.
Refs #5
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
* fix(site): keep the hero headline to three lines
The two-line headline was wrapping to four visual lines on narrow
phones and again in the two-column desktop layout, where this
column is well under half the viewport. Scaled the font-size with a
container query (clamp against cqw on the hero's own copy column,
not the viewport) instead of a vw-based clamp, since the viewport
width was never the real constraint, and added text-wrap: balance so
a wrapped line breaks evenly rather than leaving a short orphan.
Also bound the leading emoji to the headline's first word in a
white-space: nowrap span, so they can never land on separate lines.
Checked with a headless-Chrome script in scratch (line count from
the h1's rendered height over its line-height, and scrollWidth vs
clientWidth for overflow) at 320, 360, 390, 768, 1024 and 1440px:
2 lines and no horizontal overflow at every width.
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
* fix(site): put heading emoji after the text
Moves each decorative emoji from the front of its heading to right
after the word it pictures: the lock after "break into", the anchor
after "anchor", the key after "keys", the satellite after "node".
Added a shared splitTrailingWord helper (app/lib/text.ts) so both
the hero H1 and the H2 Section headings can split off that last word
and pair it with the emoji inside one white-space: nowrap span,
still aria-hidden so screen readers only read the heading text.
Re-checked the hero stays at or under 3 lines with the emoji now
trailing: 3 lines at 320px, 2 lines everywhere else, no horizontal
overflow at any of the 6 widths.
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
* fix(site): restore full-width trust model and manager sections
The trust-model and fleetos-manager sections each put a single block
of prose in a 42rem-capped column with nothing beside it, so on a
wide screen the visible content sat in roughly the left half of the
container while the hero and the what-it-is feature grid used the
full width. Added an opt-in Section layout="split": head and body
side by side in the hero's own 1.1fr/0.9fr column ratio, stacking to
one column at the existing 860px breakpoint. The prose still wraps
at its own readable max-width inside that column; only the section's
layout changed, not its copy. what-it-is keeps the default stacked
layout -- its feature grid already fills the width on its own.
Extended the scratch check to measure the true rendered content width
of each section (via Range rects over its text, not a wrapper div's
box, since a block wrapper stretches to its parent's width even when
its content doesn't) against the hero's, at 1024 and 1440px (the
widths above the two-column breakpoint; narrower widths already stack
to one column everywhere). It failed before this change (roughly
200-320px short at those two widths) and passes now (within 100px,
matching how two columns of ragged prose and card text naturally
differ).
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
---------
Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
Co-authored-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>1 parent 989c3b0 commit a788285
7 files changed
Lines changed: 301 additions & 49 deletions
File tree
- app
- components
- content
- lib
- routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 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 | + | |
92 | 149 | | |
93 | 150 | | |
94 | 151 | | |
| |||
138 | 195 | | |
139 | 196 | | |
140 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
141 | 206 | | |
142 | 207 | | |
143 | 208 | | |
| |||
148 | 213 | | |
149 | 214 | | |
150 | 215 | | |
151 | | - | |
152 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
153 | 224 | | |
154 | 225 | | |
155 | 226 | | |
156 | 227 | | |
157 | 228 | | |
158 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
159 | 234 | | |
160 | 235 | | |
161 | 236 | | |
162 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
163 | 243 | | |
164 | 244 | | |
165 | 245 | | |
| |||
184 | 264 | | |
185 | 265 | | |
186 | 266 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 267 | | |
192 | 268 | | |
193 | 269 | | |
| |||
282 | 358 | | |
283 | 359 | | |
284 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
285 | 383 | | |
286 | 384 | | |
287 | 385 | | |
| |||
297 | 395 | | |
298 | 396 | | |
299 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
300 | 403 | | |
301 | 404 | | |
302 | 405 | | |
| |||
371 | 474 | | |
372 | 475 | | |
373 | 476 | | |
| 477 | + | |
374 | 478 | | |
375 | 479 | | |
376 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
31 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| 52 | + | |
38 | 53 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
46 | 72 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments