Skip to content

Commit 08a36fa

Browse files
committed
style: update CSS to match HDM slide deck style (Apple-inspired)
1 parent 5322784 commit 08a36fa

File tree

3 files changed

+45
-89
lines changed

3 files changed

+45
-89
lines changed

.parcel-cache/data.mdb

56 KB
Binary file not shown.

.parcel-cache/lock.mdb

0 Bytes
Binary file not shown.

src/main.css

Lines changed: 45 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
:root {
2-
--color-bg: #ffffff;
3-
--color-card: #f8f9fa;
4-
--color-primary: #0066cc;
5-
--color-primary-hover: #0052a3;
6-
--color-danger: #dc3545;
2+
--color-bg: #fafafa;
3+
--color-card: #ffffff;
4+
--color-primary: #1e5f8a;
5+
--color-primary-hover: #174a6c;
6+
--color-danger: #86868b;
77
--color-warning: #856404;
88
--color-warning-bg: #fff3cd;
9-
--color-content-bg: #f1f3f4;
10-
--color-border: #dee2e6;
11-
--color-text: #212529;
12-
--color-text-muted: #6c757d;
13-
--color-code-bg: #f8f9fa;
14-
--color-code-text: #0066cc;
15-
--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
16-
--radius: 8px;
17-
--focus-outline: 2px solid #0066cc;
18-
--focus-outline-danger: 2px solid #dc3545;
9+
--color-content-bg: #f5f5f7;
10+
--color-border: #e5e5e7;
11+
--color-text: #1d1d1f;
12+
--color-text-muted: #86868b;
13+
--color-code-bg: #f5f5f7;
14+
--color-code-text: #1e5f8a;
15+
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16+
--shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
17+
--radius: 12px;
18+
--focus-outline: 2px solid #1e5f8a;
19+
--focus-outline-danger: 2px solid #86868b;
1920
--focus-offset: 2px;
2021
}
2122

@@ -26,43 +27,34 @@
2627
}
2728

2829
body {
29-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
30-
line-height: 1.6;
31-
max-width: 1200px;
30+
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
31+
line-height: 1.5;
32+
max-width: 960px;
3233
margin: 0 auto;
33-
padding: 2rem;
34+
padding: 3rem 1.5rem;
3435
background: var(--color-bg);
3536
color: var(--color-text);
3637
min-height: 100vh;
3738
}
3839

3940
.hero {
4041
text-align: center;
41-
margin-bottom: 4rem;
42-
padding: 3rem;
43-
background: var(--color-card);
44-
border-radius: var(--radius);
45-
box-shadow: var(--shadow);
46-
border: 1px solid var(--color-border);
47-
}
48-
49-
.hero:focus-within {
50-
outline: var(--focus-outline);
51-
outline-offset: var(--focus-offset);
42+
margin-bottom: 3rem;
43+
padding: 2rem 0;
5244
}
5345

5446
.hero h1 {
55-
font-size: clamp(2rem, 5vw, 3.5rem);
56-
margin-bottom: 1.5rem;
47+
font-size: 2rem;
48+
margin-bottom: 0.5rem;
5749
color: var(--color-primary);
58-
font-weight: 700;
50+
font-weight: 600;
5951
letter-spacing: -0.02em;
6052
}
6153

6254
.hero .subtitle {
63-
font-size: 1.125rem;
55+
font-size: 1rem;
6456
color: var(--color-text-muted);
65-
max-width: 700px;
57+
max-width: 600px;
6658
margin: 0 auto;
6759
line-height: 1.5;
6860
}
@@ -75,89 +67,53 @@ body {
7567
}
7668

7769
.section {
78-
margin: 4rem 0;
70+
margin: 2.5rem 0;
7971
}
8072

8173
.section-title {
82-
font-size: 2rem;
83-
margin-bottom: 2rem;
84-
padding: 1.5rem 0;
85-
text-align: center;
86-
color: var(--color-primary);
87-
position: relative;
74+
font-size: 1.25rem;
75+
margin-bottom: 1rem;
76+
padding: 0;
77+
text-align: left;
78+
color: var(--color-text);
8879
font-weight: 600;
8980
}
9081

91-
.section-title::after {
92-
content: '';
93-
position: absolute;
94-
bottom: 0;
95-
left: 50%;
96-
transform: translateX(-50%);
97-
width: 60px;
98-
height: 2px;
99-
background: var(--color-primary);
100-
}
101-
10282
.column {
10383
background: var(--color-card);
104-
padding: 2rem;
84+
padding: 1.5rem;
10585
border-radius: var(--radius);
10686
box-shadow: var(--shadow);
107-
border: 1px solid var(--color-border);
108-
transition: box-shadow 0.2s ease;
87+
transition: all 0.2s ease;
10988
position: relative;
11089
}
11190

11291
.column:hover {
113-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
114-
}
115-
116-
.column:focus-within {
117-
outline: var(--focus-outline);
118-
outline-offset: var(--focus-offset);
119-
}
120-
121-
.column.bad:focus-within {
122-
outline: var(--focus-outline-danger);
92+
transform: translateY(-2px);
93+
box-shadow: var(--shadow-hover);
12394
}
12495

12596
.column h3 {
12697
color: var(--color-text);
127-
border-bottom: 1px solid var(--color-border);
128-
padding-bottom: 1rem;
129-
margin-bottom: 2rem;
130-
font-size: 1.25rem;
98+
margin-bottom: 1rem;
99+
font-size: 1rem;
131100
font-weight: 600;
132101
}
133102

134103
.bad {
135-
border-left: 3px solid var(--color-danger);
136-
}
137-
138-
.bad h3::before {
139-
content: '⚠️ ';
140-
}
141-
142-
.bad button {
143-
background: var(--color-danger);
144-
}
145-
146-
.bad button:hover {
147-
background: var(--color-danger);
104+
border-top: 3px solid var(--color-text-muted);
148105
}
149106

150-
.bad button:focus {
151-
outline: var(--focus-outline-danger);
152-
outline-offset: var(--focus-offset);
107+
.bad h3 {
108+
color: var(--color-text-muted);
153109
}
154110

155111
.good {
156-
border-left: 3px solid var(--color-primary);
112+
border-top: 3px solid var(--color-primary);
157113
}
158114

159-
.good h3::before {
160-
content: '✅ ';
115+
.good h3 {
116+
color: var(--color-primary);
161117
}
162118

163119
.accessibility-note {

0 commit comments

Comments
 (0)