Skip to content

Commit d8eb58e

Browse files
committed
feat(website): add editorial visual identity
1 parent b9238e6 commit d8eb58e

2 files changed

Lines changed: 128 additions & 62 deletions

File tree

‎website/src/App.jsx‎

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -151,22 +151,29 @@ export function App() {
151151

152152
<section className="section feature-section" id="features">
153153
<div className="section-inner" data-reveal>
154-
<header className="section-heading">
155-
<p className="section-kicker">How it works</p>
156-
<h2>Pick. Start. Move.</h2>
157-
</header>
158-
159-
<div className="capability-grid">
160-
{capabilities.map((capability, index) => (
161-
<article
162-
className="capability"
163-
key={capability.title}
164-
style={{ "--item-delay": `${index * 70}ms` }}
165-
>
166-
<h3>{capability.title}</h3>
167-
<p>{capability.body}</p>
168-
</article>
169-
))}
154+
<div className="feature-overview">
155+
<header className="section-heading">
156+
<p className="section-kicker">How it works</p>
157+
<h2>Everything happens on the map.</h2>
158+
</header>
159+
160+
<div className="capability-list">
161+
{capabilities.map((capability, index) => (
162+
<article
163+
className="capability"
164+
key={capability.title}
165+
style={{ "--item-delay": `${index * 70}ms` }}
166+
>
167+
<span className="capability-index" aria-hidden="true">
168+
{String(index + 1).padStart(2, "0")}
169+
</span>
170+
<div>
171+
<h3>{capability.title}</h3>
172+
<p>{capability.body}</p>
173+
</div>
174+
</article>
175+
))}
176+
</div>
170177
</div>
171178

172179
<div className="connection-switcher">
@@ -210,7 +217,7 @@ export function App() {
210217
<div className="section-inner setup-inner" data-reveal>
211218
<div>
212219
<p className="section-kicker">One-time setup</p>
213-
<h2>A little setup, once.</h2>
220+
<h2>Before the first start.</h2>
214221
<p className="setup-copy">
215222
Enable Developer Mode, add your iPhone&apos;s pairing record,
216223
and install <a href={links.localDevVPN}>LocalDevVPN</a>. After

‎website/src/styles.css‎

Lines changed: 104 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
font-synthesis: none;
88
text-rendering: optimizeLegibility;
99
--graphite: #101318;
10-
--graphite-raised: #181c21;
10+
--petrol: #20343a;
11+
--terrain: #8f8576;
1112
--soft-white: #f4f5f2;
1213
--mint: #55d6b0;
1314
--mint-bright: #6fe0bd;
@@ -205,7 +206,7 @@ h1 {
205206
align-items: center;
206207
justify-content: center;
207208
border: 2px solid transparent;
208-
border-radius: 12px;
209+
border-radius: 6px;
209210
font-size: 1.06rem;
210211
font-weight: 730;
211212
line-height: 1;
@@ -286,7 +287,7 @@ h1 {
286287
margin: 0;
287288
color: var(--soft-white);
288289
font-size: clamp(2.65rem, 4.5vw, 4.45rem);
289-
font-weight: 760;
290+
font-weight: 690;
290291
line-height: 1.02;
291292
letter-spacing: -0.052em;
292293
}
@@ -295,7 +296,7 @@ h1 {
295296
margin: 0;
296297
color: var(--soft-white);
297298
font-size: clamp(1.3rem, 1.9vw, 1.75rem);
298-
font-weight: 710;
299+
font-weight: 680;
299300
line-height: 1.16;
300301
letter-spacing: -0.032em;
301302
}
@@ -304,54 +305,72 @@ h1 {
304305
border-block: 1px solid var(--line);
305306
}
306307

307-
.capability-grid {
308-
margin-top: clamp(52px, 5.5vw, 72px);
308+
.feature-overview {
309309
display: grid;
310-
grid-template-columns: repeat(3, 1fr);
311-
gap: clamp(28px, 4vw, 54px);
310+
grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
311+
gap: clamp(64px, 9vw, 128px);
312+
align-items: start;
313+
}
314+
315+
.capability-list {
316+
border-top: 1px solid var(--line);
312317
}
313318

314319
.capability {
315320
min-width: 0;
316-
padding-top: 24px;
317-
border-top: 1px solid var(--line);
321+
padding: 22px 0;
322+
display: grid;
323+
grid-template-columns: 48px 1fr;
324+
gap: 16px;
325+
border-bottom: 1px solid var(--line);
326+
}
327+
328+
.capability-index {
329+
padding-top: 4px;
330+
color: var(--mint);
331+
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
332+
font-size: 0.72rem;
333+
font-weight: 720;
334+
letter-spacing: 0.08em;
318335
}
319336

320337
.capability p {
321-
max-width: 340px;
322-
margin: 14px 0 0;
338+
max-width: 520px;
339+
margin: 9px 0 0;
323340
color: var(--muted);
324341
font-size: 1rem;
325342
line-height: 1.55;
326343
}
327344

328345
.connection-switcher {
329346
margin-top: clamp(54px, 6vw, 76px);
330-
padding-top: 34px;
347+
padding: clamp(28px, 3.2vw, 42px);
331348
display: grid;
332349
grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
333350
gap: clamp(42px, 6vw, 76px);
334-
border-top: 1px solid var(--line);
351+
background: var(--petrol);
352+
border-left: 3px solid var(--mint);
335353
}
336354

337355
.mode-tabs {
338356
display: grid;
339357
grid-template-columns: repeat(2, 1fr);
340-
gap: 10px;
358+
gap: 22px;
341359
}
342360

343361
.mode-tab {
344-
min-height: 92px;
345-
padding: 17px;
362+
min-height: 84px;
363+
padding: 14px 0;
346364
display: flex;
347365
align-items: flex-start;
348366
justify-content: space-between;
349367
flex-direction: column;
350368
gap: 12px;
351369
color: var(--muted);
352370
background: transparent;
353-
border: 1px solid var(--line);
354-
border-radius: 12px;
371+
border: 0;
372+
border-bottom: 1px solid rgba(244, 245, 242, 0.28);
373+
border-radius: 0;
355374
text-align: left;
356375
cursor: pointer;
357376
transition:
@@ -377,14 +396,14 @@ h1 {
377396

378397
.mode-tab[aria-pressed="true"] {
379398
color: var(--soft-white);
380-
background: #23282e;
381-
border-color: var(--mint);
399+
background: transparent;
400+
border-bottom: 3px solid var(--mint);
382401
}
383402

384403
.connection-panel {
385404
min-height: 150px;
386405
padding-left: 28px;
387-
border-left: 2px solid var(--mint);
406+
border-left: 1px solid rgba(244, 245, 242, 0.28);
388407
animation: panel-enter 260ms var(--ease-out) both;
389408
}
390409

@@ -406,21 +425,21 @@ h1 {
406425
}
407426

408427
.setup-section {
409-
color: var(--soft-white);
410-
background: var(--graphite-raised);
411-
border-bottom: 1px solid var(--line);
428+
color: var(--graphite);
429+
background: var(--terrain);
430+
border-bottom: 0;
412431
}
413432

414433
.setup-section .section-kicker {
415-
color: var(--mint);
434+
color: var(--graphite);
416435
}
417436

418437
.setup-section h2 {
419-
color: var(--soft-white);
438+
color: var(--graphite);
420439
}
421440

422441
.setup-section a:focus-visible {
423-
outline-color: var(--mint);
442+
outline-color: var(--graphite);
424443
}
425444

426445
.setup-inner {
@@ -433,43 +452,69 @@ h1 {
433452
.setup-copy {
434453
max-width: 760px;
435454
margin: 26px 0 0;
436-
color: #c1c7c4;
455+
color: #262b2d;
437456
font-size: clamp(1.08rem, 1.6vw, 1.3rem);
438457
line-height: 1.58;
439458
letter-spacing: -0.012em;
440459
}
441460

442461
.setup-copy a {
443-
color: var(--soft-white);
462+
color: var(--graphite);
444463
font-weight: 720;
445464
text-decoration: underline;
446465
text-underline-offset: 4px;
447466
}
448467

449468
.setup-facts {
450469
margin: 32px 0 0;
451-
padding: 0;
470+
padding: 22px 0 0;
452471
display: flex;
453472
flex-wrap: wrap;
454-
gap: 10px;
473+
gap: 12px 0;
455474
list-style: none;
475+
border-top: 1px solid rgba(16, 19, 24, 0.32);
456476
}
457477

458478
.setup-facts li {
459-
padding: 9px 13px;
460-
color: #c7cdca;
461-
background: #1d2227;
462-
border: 1px solid #42484c;
463-
border-radius: 999px;
479+
padding: 0 18px;
480+
color: var(--graphite);
481+
border-left: 1px solid rgba(16, 19, 24, 0.32);
464482
font-size: 0.84rem;
465483
font-weight: 680;
466484
}
467485

486+
.setup-facts li:first-child {
487+
padding-left: 0;
488+
border-left: 0;
489+
}
490+
468491
.setup-actions {
469492
flex: 0 0 auto;
470493
justify-content: flex-end;
471494
}
472495

496+
.setup-section .button-primary {
497+
color: var(--soft-white);
498+
background: var(--graphite);
499+
border-color: var(--graphite);
500+
}
501+
502+
.setup-section .button-primary:hover {
503+
background: #24292f;
504+
border-color: #24292f;
505+
}
506+
507+
.setup-section .button-secondary {
508+
color: var(--graphite);
509+
border-color: var(--graphite);
510+
}
511+
512+
.setup-section .button-secondary:hover {
513+
color: var(--soft-white);
514+
background: var(--graphite);
515+
border-color: var(--graphite);
516+
}
517+
473518
.site-footer {
474519
min-height: 122px;
475520
padding: 30px clamp(24px, 3.6vw, 54px);
@@ -580,13 +625,12 @@ h1 {
580625
}
581626

582627
@media (hover: hover) and (pointer: fine) {
583-
.button:hover,
584-
.mode-tab:hover {
628+
.button:hover {
585629
transform: translate3d(0, -2px, 0);
586630
}
587631

588632
.mode-tab:hover {
589-
border-color: #747c79;
633+
color: var(--soft-white);
590634
}
591635
}
592636

@@ -670,6 +714,11 @@ h1 {
670714
.setup-actions {
671715
justify-content: flex-start;
672716
}
717+
718+
.feature-overview {
719+
grid-template-columns: 1fr;
720+
gap: 48px;
721+
}
673722
}
674723

675724
@media (max-width: 760px) {
@@ -681,15 +730,10 @@ h1 {
681730
padding-block: 72px;
682731
}
683732

684-
.capability-grid,
685733
.connection-switcher {
686734
grid-template-columns: 1fr;
687735
}
688736

689-
.capability-grid {
690-
gap: 28px;
691-
}
692-
693737
.connection-switcher {
694738
gap: 32px;
695739
}
@@ -698,6 +742,17 @@ h1 {
698742
min-height: 0;
699743
}
700744

745+
.setup-facts {
746+
display: grid;
747+
grid-template-columns: repeat(2, minmax(0, 1fr));
748+
gap: 14px 24px;
749+
}
750+
751+
.setup-facts li {
752+
padding: 0;
753+
border-left: 0;
754+
}
755+
701756
.site-footer {
702757
align-items: flex-start;
703758
flex-direction: column;
@@ -754,6 +809,10 @@ h1 {
754809
padding-left: 20px;
755810
}
756811

812+
.setup-facts {
813+
grid-template-columns: 1fr;
814+
}
815+
757816
.site-footer nav {
758817
align-items: flex-start;
759818
flex-direction: column;

0 commit comments

Comments
 (0)