|
2 | 2 | --hero-title: #111214; |
3 | 3 | --hero-title-muted: #747474; |
4 | 4 | --hero-text: #707174; |
5 | | - --hero-border: #d9dbde; |
6 | | - --hero-command-bg: rgba(255, 255, 255, 0.72); |
7 | | - --hero-link: #686a6d; |
8 | | - --hero-link-hover: #111214; |
| 5 | + --hero-primary-bg: #111214; |
| 6 | + --hero-primary-bg-hover: #383838; |
| 7 | + --hero-primary-text: #fff; |
| 8 | + --hero-secondary-bg: #fff; |
| 9 | + --hero-secondary-bg-hover: #f5f5f5; |
| 10 | + --hero-secondary-border: #d2d4d7; |
| 11 | + --hero-secondary-text: #111214; |
9 | 12 |
|
10 | 13 | position: relative; |
11 | 14 | display: flex; |
12 | 15 | align-items: center; |
13 | 16 | justify-content: center; |
14 | 17 | box-sizing: border-box; |
15 | 18 | min-height: calc(100svh - var(--rp-nav-height)); |
16 | | - padding: clamp(4.5rem, 9vh, 7rem) 2rem; |
| 19 | + padding: clamp(3.75rem, 7.5vh, 6rem) 2rem; |
17 | 20 | overflow: hidden; |
18 | 21 | background: var(--rp-c-bg); |
19 | 22 | } |
|
22 | 25 | --hero-title: #f5f5f5; |
23 | 26 | --hero-title-muted: #9a9a9a; |
24 | 27 | --hero-text: #a1a3a6; |
25 | | - --hero-border: #3a3c40; |
26 | | - --hero-command-bg: rgba(255, 255, 255, 0.025); |
27 | | - --hero-link: #a6a8ab; |
28 | | - --hero-link-hover: #f5f5f5; |
| 28 | + --hero-primary-bg: #f2f2f2; |
| 29 | + --hero-primary-bg-hover: #fff; |
| 30 | + --hero-primary-text: #111214; |
| 31 | + --hero-secondary-bg: transparent; |
| 32 | + --hero-secondary-bg-hover: #171717; |
| 33 | + --hero-secondary-border: #333; |
| 34 | + --hero-secondary-text: #f2f2f2; |
29 | 35 | } |
30 | 36 |
|
31 | 37 | .inner { |
|
67 | 73 | text-wrap: balance; |
68 | 74 | } |
69 | 75 |
|
70 | | -.command { |
71 | | - display: grid; |
72 | | - grid-template-columns: auto minmax(0, 1fr) auto; |
| 76 | +.links { |
| 77 | + display: flex; |
| 78 | + flex-wrap: wrap; |
73 | 79 | align-items: center; |
74 | | - box-sizing: border-box; |
75 | | - width: min(100%, 20rem); |
76 | | - min-height: 3.125rem; |
| 80 | + justify-content: center; |
| 81 | + gap: 1rem; |
77 | 82 | margin-top: clamp(2.75rem, 6vh, 4rem); |
78 | | - padding: 0 0.5rem 0 1rem; |
79 | | - color: var(--hero-title); |
80 | | - text-align: left; |
81 | | - border: 1px solid var(--hero-border); |
82 | | - border-radius: 0.5rem; |
83 | | - background: var(--hero-command-bg); |
84 | | - |
85 | | - code, |
86 | | - .prompt { |
87 | | - font-family: |
88 | | - ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', |
89 | | - monospace; |
90 | | - font-size: clamp(0.8125rem, 1vw, 0.9375rem); |
91 | | - line-height: 1.4; |
92 | | - } |
93 | | - |
94 | | - code { |
95 | | - padding: 0 0.625rem; |
96 | | - overflow: hidden; |
97 | | - color: inherit; |
98 | | - text-overflow: ellipsis; |
99 | | - white-space: nowrap; |
100 | | - background: transparent; |
101 | | - } |
102 | 83 | } |
103 | 84 |
|
104 | | -.prompt { |
105 | | - color: var(--hero-text); |
106 | | -} |
107 | | - |
108 | | -.copyButton { |
| 85 | +.link { |
109 | 86 | display: inline-flex; |
110 | 87 | align-items: center; |
111 | 88 | justify-content: center; |
112 | | - width: 2rem; |
113 | | - height: 2rem; |
114 | | - padding: 0; |
115 | | - color: var(--hero-text); |
116 | | - cursor: pointer; |
117 | | - border: 0; |
| 89 | + box-sizing: border-box; |
| 90 | + width: 7.5rem; |
| 91 | + min-height: 2.375rem; |
| 92 | + padding: 0.5rem 1rem; |
| 93 | + font-size: 0.9375rem; |
| 94 | + font-weight: 500; |
| 95 | + line-height: 1.25; |
| 96 | + white-space: nowrap; |
| 97 | + text-decoration: none; |
| 98 | + border: 1px solid transparent; |
118 | 99 | border-radius: 0.5rem; |
119 | | - background: transparent; |
120 | 100 | transition: |
121 | 101 | color 0.2s ease, |
| 102 | + border-color 0.2s ease, |
122 | 103 | background-color 0.2s ease; |
123 | 104 |
|
124 | | - svg { |
125 | | - width: 1.125rem; |
126 | | - height: 1.125rem; |
127 | | - } |
128 | | - |
129 | | - &:hover { |
130 | | - color: var(--hero-link-hover); |
131 | | - background: color-mix(in srgb, var(--hero-title) 7%, transparent); |
132 | | - } |
133 | | - |
134 | 105 | &:focus-visible { |
135 | 106 | outline: 2px solid var(--rp-c-brand); |
136 | | - outline-offset: 2px; |
| 107 | + outline-offset: 3px; |
137 | 108 | } |
138 | 109 | } |
139 | 110 |
|
140 | | -.links { |
141 | | - display: flex; |
142 | | - flex-wrap: wrap; |
143 | | - align-items: center; |
144 | | - justify-content: center; |
145 | | - gap: 1rem 2.5rem; |
146 | | - margin-top: clamp(2rem, 4vh, 2.5rem); |
147 | | -} |
148 | | - |
149 | | -.link { |
150 | | - display: inline-flex; |
151 | | - align-items: center; |
152 | | - gap: 0.5rem; |
153 | | - color: var(--hero-link); |
154 | | - font-size: 0.9375rem; |
155 | | - font-weight: 500; |
156 | | - line-height: 1.5; |
157 | | - text-decoration: none; |
158 | | - transition: color 0.2s ease; |
159 | | - |
160 | | - svg { |
161 | | - width: 0.75rem; |
162 | | - height: 0.75rem; |
163 | | - transition: transform 0.2s ease; |
164 | | - } |
| 111 | +.primaryLink { |
| 112 | + color: var(--hero-primary-text); |
| 113 | + background: var(--hero-primary-bg); |
165 | 114 |
|
166 | 115 | &:hover { |
167 | | - color: var(--hero-link-hover); |
168 | | - |
169 | | - svg { |
170 | | - transform: translateX(0.2rem); |
171 | | - } |
| 116 | + color: var(--hero-primary-text); |
| 117 | + background: var(--hero-primary-bg-hover); |
172 | 118 | } |
| 119 | +} |
173 | 120 |
|
174 | | - &:focus-visible { |
175 | | - border-radius: 0.25rem; |
176 | | - outline: 2px solid var(--rp-c-brand); |
177 | | - outline-offset: 4px; |
| 121 | +.secondaryLink { |
| 122 | + color: var(--hero-secondary-text); |
| 123 | + border-color: var(--hero-secondary-border); |
| 124 | + background: var(--hero-secondary-bg); |
| 125 | + |
| 126 | + &:hover { |
| 127 | + color: var(--hero-secondary-text); |
| 128 | + border-color: var(--hero-title-muted); |
| 129 | + background: var(--hero-secondary-bg-hover); |
178 | 130 | } |
179 | 131 | } |
180 | 132 |
|
181 | 133 | @media (max-width: 640px) { |
182 | 134 | .hero { |
183 | 135 | min-height: calc(100svh - var(--rp-nav-height)); |
184 | | - padding: 4rem 1.25rem; |
| 136 | + padding: 3.25rem 1.25rem; |
185 | 137 | } |
186 | 138 |
|
187 | 139 | .title { |
|
197 | 149 | line-height: 1.55; |
198 | 150 | } |
199 | 151 |
|
200 | | - .command { |
201 | | - min-height: 3.25rem; |
202 | | - margin-top: 2.25rem; |
203 | | - padding: 0 0.5rem 0 0.875rem; |
204 | | - border-radius: 0.625rem; |
205 | | - |
206 | | - code, |
207 | | - .prompt { |
208 | | - font-size: 0.8125rem; |
209 | | - } |
210 | | - |
211 | | - code { |
212 | | - padding: 0 0.625rem; |
213 | | - } |
214 | | - } |
215 | | - |
216 | | - .copyButton { |
217 | | - width: 2rem; |
218 | | - height: 2rem; |
219 | | - |
220 | | - svg { |
221 | | - width: 1.125rem; |
222 | | - height: 1.125rem; |
223 | | - } |
224 | | - } |
225 | | - |
226 | 152 | .links { |
227 | | - gap: 1rem 1.75rem; |
228 | | - margin-top: 2rem; |
| 153 | + gap: 0.75rem; |
| 154 | + margin-top: 2.25rem; |
229 | 155 | } |
230 | 156 |
|
231 | 157 | .link { |
| 158 | + min-height: 2.25rem; |
| 159 | + padding: 0.5rem 0.875rem; |
232 | 160 | font-size: 0.875rem; |
233 | 161 | } |
234 | 162 | } |
235 | 163 |
|
236 | 164 | @media (prefers-reduced-motion: reduce) { |
237 | | - .copyButton, |
238 | | - .link, |
239 | | - .link svg { |
| 165 | + .link { |
240 | 166 | transition: none; |
241 | 167 | } |
242 | 168 | } |
0 commit comments