|
19 | 19 | --gray-900: oklch(19.37% 0.006 300.98); |
20 | 20 | --gray-700: oklch(36.98% 0.014 302.71); |
21 | 21 | --gray-400: oklch(70.9% 0.015 304.04); |
22 | | - |
| 22 | +<% if (!tailwind) { %> |
23 | 23 | --red-to-pink-to-purple-vertical-gradient: linear-gradient( |
24 | 24 | 180deg, |
25 | 25 | var(--orange-red) 0%, |
|
35 | 35 | ); |
36 | 36 |
|
37 | 37 | --pill-accent: var(--bright-blue); |
38 | | - |
| 38 | +<% } %> |
39 | 39 | font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, |
40 | 40 | Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", |
41 | | - "Segoe UI Symbol"; |
| 41 | + "Segoe UI Symbol";<% if (!tailwind) { %> |
42 | 42 | box-sizing: border-box; |
43 | 43 | -webkit-font-smoothing: antialiased; |
44 | | - -moz-osx-font-smoothing: grayscale; |
| 44 | + -moz-osx-font-smoothing: grayscale;<% } %> |
45 | 45 | } |
46 | | - |
| 46 | +<% if (!tailwind) { %> |
47 | 47 | h1 { |
48 | 48 | font-size: 3.125rem; |
49 | 49 | color: var(--gray-900); |
|
180 | 180 | margin-block: 1.5rem; |
181 | 181 | } |
182 | 182 | } |
183 | | -</style> |
| 183 | +<% } %></style> |
184 | 184 |
|
185 | | -<main class="main"> |
186 | | - <div class="content"> |
187 | | - <div class="left-side"> |
| 185 | +<main class="<% if (tailwind) { %>flex min-h-full w-full items-center justify-center p-4 antialiased<% } %><% else { %>main<% } %>"> |
| 186 | + <div class="<% if (tailwind) { %>flex flex-col justify-around max-w-[700px] mb-12 size-max sm:w-full sm:gap-6 sm:flex-row<% } %><% else { %>content<% } %>"> |
| 187 | + <div class="<% if (tailwind) { %>flex flex-col<% } %><% else { %>left-side<% } %>"> |
188 | 188 | <svg |
189 | 189 | xmlns="http://www.w3.org/2000/svg" |
190 | 190 | viewBox="0 0 982 239" |
191 | 191 | fill="none" |
192 | | - class="angular-logo" |
| 192 | + class="<% if (tailwind) { %>max-w-[9.2rem]<% } %><% else { %>angular-logo<% } %>" |
193 | 193 | > |
194 | 194 | <g clip-path="url(#a)"> |
195 | 195 | <path |
|
230 | 230 | <clipPath id="a"><path fill="#fff" d="M0 0h982v239H0z" /></clipPath> |
231 | 231 | </defs> |
232 | 232 | </svg> |
233 | | - <h1>Hello, {{ title() }}</h1> |
234 | | - <p>Congratulations! Your app is running. 🎉</p> |
| 233 | + <h1 <% if (tailwind) { %>class="text-[3.125rem] font-medium leading-none tracking-[-0.125rem] text-[var(--gray-900)] mt-7"<% } %>>Hello, {{ title() }}</h1> |
| 234 | + <p <% if (tailwind) { %>class="mt-6 text-[var(--gray-700)]"<% } %>>Congratulations! Your app is running. 🎉</p> |
235 | 235 | </div> |
236 | | - <div class="divider" role="separator" aria-label="Divider"></div> |
237 | | - <div class="right-side"> |
238 | | - <div class="pill-group"> |
| 236 | + <div class="<% if (tailwind) { %>m:bg-[linear-gradient(180deg,var(--orange-red)_0%,var(--vivid-pink)_50%,var(--electric-violet)_100%)] bg-[linear-gradient(90deg,var(--orange-red)_0%,var(--vivid-pink)_50%,var(--electric-violet)_100%)] sm:w-px mx-2 sm:h-auto h-px sm:w-px w-full sm:my-0 my-6<% } %><% else { %>divider<% } %>" role="separator" aria-label="Divider"></div> |
| 237 | + <div class="<% if (tailwind) { %>flex flex-col<% } %><% else { %>right-side<% } %>"> |
| 238 | + <div class="<% if (tailwind) { %>flex flex-col items-start gap-5<% } %><% else { %>pill-group<% } %>"> |
239 | 239 | @for (item of [ |
240 | 240 | { title: 'Explore the Docs', link: 'https://angular.dev' }, |
241 | 241 | { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, |
|
245 | 245 | { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, |
246 | 246 | ]; track item.title) { |
247 | 247 | <a |
248 | | - class="pill" |
| 248 | + class="<% if (tailwind) { %>group inline-flex items-center gap-1 rounded-full px-3 py-1.5 text-sm font-medium transition [--pill-accent:var(--bright-blue)] nth-[6n+1]:[--pill-accent:var(--bright-blue)] nth-[6n+2]:[--pill-accent:var(--electric-violet)] nth-[6n+3]:[--pill-accent:var(--french-violet)] nth-[6n+4]:[--pill-accent:var(--hot-red)] nth-[6n+5]:[--pill-accent:var(--hot-red)] nth-[6n+6]:[--pill-accent:var(--hot-red)] text-[var(--pill-accent)] bg-[color-mix(in_srgb,var(--pill-accent)_5%,transparent)] hover:bg-[color-mix(in_srgb,var(--pill-accent)_15%,transparent)]<% } %><% else { %>pill<% } %>" |
249 | 249 | [href]="item.link" |
250 | 250 | target="_blank" |
251 | 251 | rel="noopener" |
252 | 252 | > |
253 | 253 | <span>{{ item.title }}</span> |
254 | 254 | <svg |
| 255 | + <% if (tailwind) { %>class="ml-1"<% } %> |
255 | 256 | xmlns="http://www.w3.org/2000/svg" |
256 | 257 | height="14" |
257 | 258 | viewBox="0 -960 960 960" |
|
265 | 266 | </a> |
266 | 267 | } |
267 | 268 | </div> |
268 | | - <div class="social-links"> |
| 269 | + <div class="<% if (tailwind) { %>mt-6 flex items-center gap-3<% } %><% else { %>social-links<% } %>"> |
269 | 270 | <a |
| 271 | + <% if (tailwind) { %>class="group"<% } %> |
270 | 272 | href="https://github.com/angular/angular" |
271 | 273 | aria-label="Github" |
272 | 274 | target="_blank" |
273 | 275 | rel="noopener" |
274 | 276 | > |
275 | 277 | <svg |
| 278 | + <% if (tailwind) { %>class="fill-[var(--gray-400)] group-hover:fill-[var(--gray-900)] transition"<% } %> |
276 | 279 | width="25" |
277 | 280 | height="24" |
278 | 281 | viewBox="0 0 25 24" |
|
286 | 289 | </svg> |
287 | 290 | </a> |
288 | 291 | <a |
| 292 | + <% if (tailwind) { %>class="group"<% } %> |
289 | 293 | href="https://x.com/angular" |
290 | 294 | aria-label="X" |
291 | 295 | target="_blank" |
292 | 296 | rel="noopener" |
293 | 297 | > |
294 | 298 | <svg |
| 299 | + <% if (tailwind) { %>class="fill-[var(--gray-400)] group-hover:fill-[var(--gray-900)] transition"<% } %> |
295 | 300 | width="24" |
296 | 301 | height="24" |
297 | 302 | viewBox="0 0 24 24" |
|
305 | 310 | </svg> |
306 | 311 | </a> |
307 | 312 | <a |
| 313 | + <% if (tailwind) { %>class="group"<% } %> |
308 | 314 | href="https://www.youtube.com/channel/UCbn1OgGei-DV7aSRo_HaAiw" |
309 | 315 | aria-label="Youtube" |
310 | 316 | target="_blank" |
311 | 317 | rel="noopener" |
312 | 318 | > |
313 | 319 | <svg |
| 320 | + <% if (tailwind) { %>class="fill-[var(--gray-400)] group-hover:fill-[var(--gray-900)] transition"<% } %> |
314 | 321 | width="29" |
315 | 322 | height="20" |
316 | 323 | viewBox="0 0 29 20" |
|
0 commit comments