|
12 | 12 |
|
13 | 13 | /* Hero Section */ |
14 | 14 | .hero { |
15 | | - padding: 4rem 0 0; |
| 15 | + padding: 6rem 0 0; |
16 | 16 | } |
17 | 17 |
|
18 | 18 | @media (min-width: 1024px) { |
19 | 19 | .hero { |
20 | | - padding: 6rem 0 0; |
| 20 | + padding: 10rem 0 0; |
21 | 21 | } |
22 | 22 | } |
23 | 23 |
|
24 | 24 | .hero-content { |
25 | | - max-width: 640px; |
| 25 | + max-width: 800px; |
| 26 | + margin: 0 auto; |
| 27 | + text-align: center; |
26 | 28 | } |
27 | 29 |
|
28 | 30 | .hero-title { |
29 | | - font-family: "Bricolage Grotesque", sans-serif; |
30 | | - font-optical-sizing: auto; |
31 | | - font-size: 2.5rem; |
| 31 | + font-family: "Public Sans", sans-serif; |
| 32 | + font-size: 2.25rem; |
32 | 33 | font-weight: 700; |
33 | | - font-style: normal; |
34 | | - line-height: 1.1; |
35 | | - letter-spacing: -0.025em; |
| 34 | + line-height: 1.2; |
| 35 | + letter-spacing: -0.03em; |
36 | 36 | margin-bottom: 1.5rem; |
| 37 | + color: var(--foreground); |
37 | 38 | } |
38 | 39 |
|
39 | 40 | @media (min-width: 640px) { |
40 | 41 | .hero-title { |
41 | | - font-size: 3rem; |
| 42 | + font-size: 2.75rem; |
42 | 43 | } |
43 | 44 | } |
44 | 45 |
|
45 | 46 | @media (min-width: 1024px) { |
46 | 47 | .hero-title { |
47 | | - font-size: 3.5rem; |
| 48 | + font-size: 3.25rem; |
48 | 49 | } |
49 | 50 | } |
50 | 51 |
|
51 | 52 | .hero-title-accent { |
| 53 | + display: inline; |
| 54 | +} |
| 55 | + |
| 56 | +.hero-title-accent em { |
| 57 | + font-style: normal; |
52 | 58 | background: linear-gradient( |
53 | 59 | 135deg, |
54 | | - hsl(240 5.9% 10%) 0%, |
55 | | - hsl(240 3.8% 46.1%) 100% |
| 60 | + hsl(210 100% 50%) 0%, |
| 61 | + hsl(230 90% 60%) 100% |
56 | 62 | ); |
57 | 63 | -webkit-background-clip: text; |
58 | 64 | -webkit-text-fill-color: transparent; |
59 | 65 | background-clip: text; |
60 | 66 | } |
61 | 67 |
|
62 | 68 | @media (prefers-color-scheme: dark) { |
63 | | - .hero-title-accent { |
| 69 | + .hero-title-accent em { |
64 | 70 | background: linear-gradient( |
65 | 71 | 135deg, |
66 | | - hsl(0 0% 98%) 0%, |
67 | | - hsl(240 5% 64.9%) 100% |
| 72 | + hsl(210 100% 65%) 0%, |
| 73 | + hsl(230 90% 75%) 100% |
68 | 74 | ); |
69 | 75 | -webkit-background-clip: text; |
70 | 76 | -webkit-text-fill-color: transparent; |
71 | 77 | background-clip: text; |
72 | 78 | } |
73 | 79 | } |
74 | 80 |
|
75 | | -:root[data-theme="dark"] .hero-title-accent { |
76 | | - background: linear-gradient(135deg, hsl(0 0% 98%) 0%, hsl(240 5% 64.9%) 100%); |
| 81 | +:root[data-theme="dark"] .hero-title-accent em { |
| 82 | + background: linear-gradient( |
| 83 | + 135deg, |
| 84 | + hsl(210 100% 65%) 0%, |
| 85 | + hsl(230 90% 75%) 100% |
| 86 | + ); |
77 | 87 | -webkit-background-clip: text; |
78 | 88 | -webkit-text-fill-color: transparent; |
79 | 89 | background-clip: text; |
80 | 90 | } |
81 | 91 |
|
82 | | -:root[data-theme="light"] .hero-title-accent { |
| 92 | +:root[data-theme="light"] .hero-title-accent em { |
83 | 93 | background: linear-gradient( |
84 | 94 | 135deg, |
85 | | - hsl(240 5.9% 10%) 0%, |
86 | | - hsl(240 3.8% 46.1%) 100% |
| 95 | + hsl(210 100% 50%) 0%, |
| 96 | + hsl(230 90% 60%) 100% |
87 | 97 | ); |
88 | 98 | -webkit-background-clip: text; |
89 | 99 | -webkit-text-fill-color: transparent; |
90 | 100 | background-clip: text; |
91 | 101 | } |
92 | 102 |
|
93 | 103 | .hero-description { |
94 | | - font-family: "JetBrains Mono", monospace; |
95 | | - font-optical-sizing: auto; |
96 | | - font-size: 1.125rem; |
97 | | - font-style: normal; |
| 104 | + font-family: "Public Sans", sans-serif; |
| 105 | + font-size: 1.0625rem; |
| 106 | + font-weight: 400; |
98 | 107 | color: var(--muted-foreground); |
99 | 108 | line-height: 1.7; |
100 | | - margin-bottom: 2rem; |
| 109 | + margin-bottom: 2.5rem; |
| 110 | + max-width: 600px; |
| 111 | + margin-left: auto; |
| 112 | + margin-right: auto; |
| 113 | +} |
| 114 | + |
| 115 | +@media (min-width: 640px) { |
| 116 | + .hero-description { |
| 117 | + font-size: 1.125rem; |
| 118 | + } |
101 | 119 | } |
102 | 120 |
|
103 | 121 | .hero-actions { |
|
106 | 124 | gap: 0.75rem; |
107 | 125 | } |
108 | 126 |
|
109 | | -.hero-code { |
110 | | - margin-top: 3rem; |
| 127 | +.hero-cta { |
| 128 | + display: flex; |
| 129 | + flex-direction: column; |
| 130 | + align-items: center; |
| 131 | + justify-content: center; |
| 132 | + gap: 1rem; |
111 | 133 | } |
112 | 134 |
|
113 | | -.hero-code .code-block { |
114 | | - display: inline-block; |
115 | | - background-color: hsl(from var(--muted) h s l / 0.35); |
116 | | - border: 1px solid var(--border); |
117 | | - border-radius: var(--radius); |
118 | | - overflow: hidden; |
| 135 | +@media (min-width: 640px) { |
| 136 | + .hero-cta { |
| 137 | + flex-direction: row; |
| 138 | + justify-content: center; |
| 139 | + gap: 0.75rem; |
| 140 | + } |
119 | 141 | } |
120 | 142 |
|
121 | | -.code-header { |
| 143 | +.cdn-inline { |
122 | 144 | display: flex; |
123 | 145 | align-items: center; |
124 | | - justify-content: space-between; |
125 | | - padding: 0.75rem 1rem; |
126 | | - background-color: hsl(from var(--muted) h s l / 0.5); |
127 | | - border-bottom: 1px solid var(--border); |
| 146 | + background-color: hsl(from var(--muted) h s l / 0.4); |
| 147 | + border: 1px solid var(--border); |
| 148 | + border-radius: var(--radius); |
| 149 | + padding: 0.5rem 0.5rem 0.5rem 1rem; |
| 150 | + gap: 0.75rem; |
| 151 | + max-width: 100%; |
| 152 | + transition: |
| 153 | + background-color 0.2s ease, |
| 154 | + border-color 0.2s ease; |
128 | 155 | } |
129 | 156 |
|
130 | | -.code-dots { |
| 157 | +.cdn-inline:hover { |
| 158 | + border-color: hsl(from var(--border) h s l / 0.8); |
| 159 | +} |
| 160 | + |
| 161 | +.cdn-url { |
| 162 | + font-family: "JetBrains Mono", var(--font-mono); |
| 163 | + font-size: 0.8125rem; |
| 164 | + color: var(--muted-foreground); |
| 165 | + white-space: nowrap; |
| 166 | + overflow: hidden; |
| 167 | + text-overflow: ellipsis; |
| 168 | + max-width: 420px; |
| 169 | + user-select: all; |
131 | 170 | display: flex; |
132 | | - gap: 0.375rem; |
| 171 | + align-items: center; |
133 | 172 | } |
134 | 173 |
|
135 | | -.code-dot { |
136 | | - width: 0.75rem; |
137 | | - height: 0.75rem; |
138 | | - border-radius: 50%; |
139 | | - background-color: var(--border); |
| 174 | +@media (max-width: 767px) { |
| 175 | + .cdn-url { |
| 176 | + max-width: 200px; |
| 177 | + font-size: 0.75rem; |
| 178 | + } |
140 | 179 | } |
141 | 180 |
|
142 | | -.code-copy-btn { |
| 181 | +.cdn-copy-btn { |
143 | 182 | display: flex; |
144 | 183 | align-items: center; |
145 | 184 | justify-content: center; |
146 | | - width: 1.75rem; |
147 | | - height: 1.75rem; |
| 185 | + width: 2rem; |
| 186 | + height: 2rem; |
148 | 187 | padding: 0; |
149 | 188 | border: none; |
150 | 189 | border-radius: calc(var(--radius) - 2px); |
151 | | - background-color: transparent; |
| 190 | + background-color: var(--background); |
152 | 191 | color: var(--muted-foreground); |
153 | 192 | cursor: pointer; |
| 193 | + flex-shrink: 0; |
154 | 194 | transition: |
155 | 195 | background-color 0.15s ease, |
156 | 196 | color 0.15s ease; |
157 | 197 | } |
158 | 198 |
|
159 | | -.code-copy-btn:hover { |
| 199 | +.cdn-copy-btn:hover { |
160 | 200 | background-color: var(--accent); |
161 | 201 | color: var(--foreground); |
162 | 202 | } |
163 | 203 |
|
164 | | -.code-copy-btn .code-check-icon { |
| 204 | +.cdn-copy-btn:focus-visible { |
| 205 | + outline: none; |
| 206 | + box-shadow: 0 0 0 2px hsl(from var(--ring) h s l / 0.3); |
| 207 | +} |
| 208 | + |
| 209 | +.cdn-copy-btn .cdn-check-icon { |
165 | 210 | display: none; |
166 | 211 | color: hsl(142 70% 45%); |
167 | 212 | } |
168 | 213 |
|
169 | | -.code-copy-btn.copied .code-copy-icon { |
| 214 | +.cdn-copy-btn.copied .cdn-copy-icon { |
170 | 215 | display: none; |
171 | 216 | } |
172 | 217 |
|
173 | | -.code-copy-btn.copied .code-check-icon { |
| 218 | +.cdn-copy-btn.copied .cdn-check-icon { |
174 | 219 | display: block; |
175 | 220 | } |
176 | 221 |
|
177 | | -.hero-code pre { |
178 | | - margin: 0; |
179 | | - padding: 1.25rem; |
180 | | -} |
181 | | - |
182 | | -@media (max-width: 767px) { |
183 | | - .hero-code pre { |
184 | | - white-space: pre-wrap; |
185 | | - word-break: break-word; |
186 | | - } |
187 | | -} |
188 | | - |
189 | | -.hero-code code { |
190 | | - font-family: var(--font-mono); |
191 | | - font-size: 0.8125rem; |
192 | | - line-height: 1.7; |
193 | | -} |
194 | | - |
195 | 222 | .hljs-comment { |
196 | 223 | color: var(--muted-foreground); |
197 | 224 | } |
|
244 | 271 | color: hsl(142 70% 35%); |
245 | 272 | } |
246 | 273 |
|
247 | | -.hero-actions .btn { |
248 | | - padding: 0.75rem 1.5rem; |
249 | | - font-size: 1rem; |
| 274 | +/* Read Docs Button */ |
| 275 | +.hero-cta .btn-primary { |
| 276 | + padding: 0.625rem 1.25rem; |
| 277 | + font-family: "Public Sans", sans-serif; |
| 278 | + font-size: 0.9375rem; |
| 279 | + font-weight: 600; |
250 | 280 | text-decoration: none; |
| 281 | + gap: 0.5rem; |
| 282 | + flex-shrink: 0; |
| 283 | +} |
| 284 | + |
| 285 | +.hero-cta .btn-primary svg { |
| 286 | + transition: transform 0.2s ease; |
| 287 | +} |
| 288 | + |
| 289 | +.hero-cta .btn-primary:hover svg { |
| 290 | + transform: translateX(3px); |
251 | 291 | } |
0 commit comments