Skip to content

Commit 36d6991

Browse files
committed
Adds even more components (wip)
1 parent 357a45a commit 36d6991

File tree

18 files changed

+1829
-101
lines changed

18 files changed

+1829
-101
lines changed

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Yarn Serve",
9+
"type": "node",
10+
"request": "launch",
11+
"runtimeExecutable": "yarn",
12+
"runtimeArgs": ["start"],
13+
"serverReadyAction": {
14+
"pattern": "Serving app at 0.0.0.0:5500.",
15+
"uriFormat": "http://localhost:5500",
16+
"action": "openExternally"
17+
},
18+
"restart": true,
19+
"console": "integratedTerminal",
20+
"outFiles": ["${workspaceFolder}/assets/bundle.js"],
21+
"pauseForSourceMap": true,
22+
"sourceMapRenames": true,
23+
"sourceMaps": true,
24+
"trace": true
25+
}
26+
]
27+
}

assets/bundle.js

Lines changed: 1135 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/bundle.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/styles/shared.css

Whitespace-only changes.

assets/styles/site.css

Lines changed: 110 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,64 @@
8787
--type-body-xl-size: var(--size-2);
8888
--type-overline-size: var(--size--2);
8989

90-
/* color tokens */
90+
/* elevation (z-index and shadowing) */
91+
--elevation-behind: -1;
92+
--elevation-inline: 1;
93+
--elevation-sticky: 1000;
94+
--elevation-cover: 1100;
95+
--elevation-dialog: 1200;
96+
--elevation-modal: 1300;
97+
--elevation-popover: 1400;
98+
99+
/* raw color tokens */
100+
--color-raw-blue-10: rgb(4, 28, 56);
101+
--color-raw-blue-20: rgb(10, 49, 91);
102+
--color-raw-blue-30: rgb(19, 71, 128);
103+
--color-raw-blue-40: rgb(28, 95, 168);
104+
--color-raw-blue-50: rgb(37, 120, 210);
105+
--color-raw-blue-60: rgb(62, 146, 247);
106+
--color-raw-blue-70: rgb(127, 172, 249);
107+
--color-raw-blue-80: rgb(174, 199, 251);
108+
--color-raw-blue-90: rgb(216, 227, 253);
109+
--color-raw-blue-95: rgb(236, 241, 254);
110+
111+
--color-raw-red-10: rgb(62, 5, 6);
112+
--color-raw-red-20: rgb(100, 12, 15);
113+
--color-raw-red-30: rgb(141, 21, 25);
114+
--color-raw-red-40: rgb(184, 31, 36);
115+
--color-raw-red-50: rgb(229, 41, 47);
116+
--color-raw-red-60: rgb(245, 94, 96);
117+
--color-raw-red-70: rgb(246, 141, 143);
118+
--color-raw-red-80: rgb(249, 181, 182);
119+
--color-raw-red-90: rgb(251, 219, 219);
120+
--color-raw-red-95: rgb(253, 237, 237);
121+
122+
--color-raw-neutral-10: rgb(24, 28, 33);
123+
--color-raw-neutral-20: rgb(43, 49, 57);
124+
--color-raw-neutral-30: rgb(63, 71, 82);
125+
--color-raw-neutral-40: rgb(84, 95, 109);
126+
--color-raw-neutral-50: rgb(107, 120, 137);
127+
--color-raw-neutral-60: rgb(130, 146, 167);
128+
--color-raw-neutral-70: rgb(157, 173, 193);
129+
--color-raw-neutral-80: rgb(189, 199, 213);
130+
--color-raw-neutral-90: rgb(222, 227, 234);
131+
--color-raw-neutral-95: rgb(239, 241, 244);
132+
133+
/* semantic color tokens */
134+
--color-primary-foreground: var(--color-raw-neutral-10);
135+
--color-primary-background: #fff;
136+
137+
--color-focus-foreground: var(--color-raw-blue-50);
138+
139+
--color-link-foreground: var(--color-raw-blue-50);
140+
--color-link-hover-foreground: var(--color-raw-blue-40);
141+
--color-link-visited-foreground: color-mix(in srgb, var(--color-raw-blue-50) 65%, var(--color-raw-red-50));
142+
143+
--color-secondary-foreground: var(--color-raw-neutral-10);
144+
--color-secondary-background: var(--color-raw-neutral-95);
145+
146+
--color-inverse-foreground: var(--color-raw-neutral-90);
147+
--color-inverse-background: var(--color-raw-neutral-10);
91148
}
92149

93150
/* baseline styles */
@@ -119,6 +176,13 @@ body {
119176
margin: 0;
120177
font-family: var(--font-family-base);
121178
scroll-snap-type: y proximity;
179+
background-color: var(--color-primary-background);
180+
color: var(--color-primary-foreground);
181+
}
182+
183+
:focus {
184+
outline: 1px solid var(--color-focus-foreground);
185+
outline-offset: 1px;
122186
}
123187

124188
img {
@@ -183,6 +247,16 @@ ul {
183247

184248
/* inline styles */
185249

250+
a {
251+
color: var(--color-link-foreground);
252+
}
253+
a:visited {
254+
color: var(--color-link-visited-foreground);
255+
}
256+
a:hover {
257+
color: var(--color-link-hover-foreground);
258+
}
259+
186260
small {
187261
font-size: var(--type-small-size);
188262
}
@@ -235,6 +309,7 @@ kbd kbd {
235309
box-shadow: inset 0 -30px 30px -30px rgba(0, 0, 0, 0.2);
236310
content-visibility: auto;
237311
contain-intrinsic-block-size: 100vh;
312+
padding-block: 0;
238313
}
239314

240315
.avatar {
@@ -266,6 +341,29 @@ kbd kbd {
266341

267342
.skip-link {
268343
position: absolute;
344+
z-index: var(--elevation-popover);
345+
}
346+
347+
.nav {
348+
list-style: none;
349+
display: inline-flex;
350+
flex-direction: row;
351+
align-items: center;
352+
gap: var(--spacing-md);
353+
margin-block: 0;
354+
padding-inline-start: 0;
355+
}
356+
.nav__item {
357+
}
358+
.nav__link {
359+
font-family: var(--font-family-heading);
360+
color: inherit;
361+
fill: currentColor;
362+
text-decoration: none;
363+
}
364+
.nav__link:hover,
365+
.nav__link:focus {
366+
text-decoration: underline;
269367
}
270368

271369
.header {
@@ -281,7 +379,7 @@ kbd kbd {
281379
inset-block-start: 0;
282380
inset-inline-start: 0;
283381
inset-inline-end: 0;
284-
z-index: 100;
382+
z-index: var(--elevation-sticky);
285383
}
286384
.header__group {
287385
display: inline-flex;
@@ -292,27 +390,13 @@ kbd kbd {
292390
.header__group--end {
293391
margin-inline-start: auto;
294392
}
295-
296-
.nav {
297-
list-style: none;
298-
display: inline-flex;
299-
flex-direction: row;
300-
align-items: center;
301-
gap: var(--spacing-md);
302-
margin-block: 0;
303-
padding-inline-start: 0;
304-
}
305-
.nav__item {
306-
}
307-
.nav__link {
308-
font-family: var(--font-family-heading);
393+
.header a {
309394
color: inherit;
310-
fill: currentColor;
311-
text-decoration: none;
312395
}
313-
.nav__link:hover,
314-
.nav__link:focus {
315-
text-decoration: underline;
396+
397+
.contact {
398+
padding-block: var(--spacing-md);
399+
background-color: var(--color-secondary-background);
316400
}
317401

318402
.footer {
@@ -322,6 +406,8 @@ kbd kbd {
322406
gap: var(--spacing-md);
323407
padding-inline: var(--spacing-md);
324408
padding-block: var(--spacing-sm);
409+
background-color: var(--color-inverse-background);
410+
color: var(--color-inverse-foreground);
325411
}
326412
.footer__group {
327413
display: inline-flex;
@@ -338,12 +424,13 @@ kbd kbd {
338424
.container {
339425
max-width: 900px;
340426
margin-inline: auto;
427+
padding-inline: var(--spacing-md);
341428
}
342429

343430
/* utility classes */
344431

345432
/* natively focusable elements should use `.h-sr-only-focusable` */
346-
.h-sr-only,
433+
/* .h-sr-only,
347434
.h-sr-only-focusable:not(:focus):not(:active) {
348435
clip: rect(0 0 0 0);
349436
clip-path: inset(50%);
@@ -360,4 +447,4 @@ kbd kbd {
360447
361448
.h-type-tight {
362449
line-height: 1;
363-
}
450+
} */

0 commit comments

Comments
 (0)