@@ -49,7 +49,10 @@ const Hero: React.FC = () => {
49
49
50
50
return (
51
51
< div >
52
- < div className = "flex h-16 items-end px-2 font-mono text-xs/6 whitespace-pre text-black/10 max-sm:px-4 sm:h-24 dark:text-white/15" >
52
+ < div
53
+ aria-hidden = "true"
54
+ className = "flex h-16 items-end whitespace-pre px-2 font-mono text-xs/6 text-black/20 max-sm:px-4 sm:h-24 dark:text-white/25"
55
+ >
53
56
< span className = "hidden max-sm:inline" > text-4xl </ span >
54
57
< span className = "hidden sm:max-md:inline" > text-5xl </ span >
55
58
< span className = "hidden lg:max-xl:inline" > text-6xl </ span >
@@ -59,11 +62,14 @@ const Hero: React.FC = () => {
59
62
< span className = "max-sm:hidden" > text-balance</ span >
60
63
</ div >
61
64
< GridContainer >
62
- < h1 className = "px-2 text-4xl tracking-tighter text-balance max-lg:font-medium max-sm:px-4 sm:text-5xl lg:text-6xl xl:text-8xl" >
65
+ < h1 className = "text-balance px-2 text-4xl tracking-tighter max-lg:font-medium max-sm:px-4 sm:text-5xl lg:text-6xl xl:text-8xl" >
63
66
Rapidly build modern websites without ever leaving your HTML.
64
67
</ h1 >
65
68
</ GridContainer >
66
- < div className = "flex h-6 items-end px-2 font-mono text-xs/6 whitespace-pre text-black/10 max-sm:px-4 sm:h-10 dark:text-white/15" >
69
+ < div
70
+ aria-hidden = "true"
71
+ className = "flex h-6 items-end whitespace-pre px-2 font-mono text-xs/6 text-black/20 max-sm:px-4 sm:h-10 dark:text-white/25"
72
+ >
67
73
text-lg < span className = "inline dark:hidden" > text-gray-950</ span >
68
74
< span className = "hidden dark:inline" > text-white</ span > font-medium
69
75
</ div >
@@ -87,7 +93,7 @@ const Hero: React.FC = () => {
87
93
< LinkButton href = "docs/installation" className = "z-1 max-sm:hidden" >
88
94
Get started
89
95
</ LinkButton >
90
- < SearchButton className = "grid w-full grid-cols-[auto_1fr_auto] items-center gap-1 rounded-full px-4 py-2 text-left text-sm/6 text-gray-950/50 outline -outline-offset-1 outline-gray-950/8 sm:w-80 dark:bg-white/5 dark:text-white/50 dark:outline-white/15" >
96
+ < SearchButton className = "outline-gray-950/8 grid w-full grid-cols-[auto_1fr_auto] items-center gap-1 rounded-full px-4 py-2 text-left text-sm/6 text-gray-950/50 outline -outline-offset-1 sm:w-80 dark:bg-white/5 dark:text-white/50 dark:outline-white/15" >
91
97
< svg
92
98
xmlns = "http://www.w3.org/2000/svg"
93
99
viewBox = "0 0 16 16"
@@ -103,7 +109,7 @@ const Hero: React.FC = () => {
103
109
< kbd className = "hidden font-sans text-xs/4 text-gray-500 dark:text-gray-400 [.os-macos_&]:block" >
104
110
< span className = "opacity-60" > ⌘</ span > K
105
111
</ kbd >
106
- < kbd className = "hidden font-sans text-xs/4 text-gray-500 not-[.os-macos_&]:block dark:text-gray-400" >
112
+ < kbd className = "not-[.os-macos_&]:block hidden font-sans text-xs/4 text-gray-500 dark:text-gray-400" >
107
113
< span className = "opacity-60" > Ctrl</ span > K
108
114
</ kbd >
109
115
</ SearchButton >
@@ -115,7 +121,7 @@ const Hero: React.FC = () => {
115
121
< Editor >
116
122
< div
117
123
className = { clsx (
118
- "*:flex *:*:max-w-none *:*:shrink-0 *:*:grow *:overflow-auto *:rounded-lg *:bg-white/10! *: p-5 dark:*:bg-white/5! " ,
124
+ "*:bg-white/10! dark:*:bg-white/5! *: flex *:*:max-w-none *:*:shrink-0 *:*:grow *:overflow-auto *:rounded-lg *:p-5" ,
119
125
"**:[.line]:isolate **:[.line]:block **:[.line]:not-last:min-h-[1lh]" ,
120
126
"*:inset-ring *:inset-ring-white/10 dark:*:inset-ring-white/5" ,
121
127
) }
@@ -347,7 +353,7 @@ const Hero: React.FC = () => {
347
353
</ div >
348
354
</ Editor >
349
355
</ div >
350
- < div className = "relative border-(--pattern-fg) bg-[image:repeating-linear-gradient(315deg,_var(--pattern-fg)_0,_var(--pattern-fg)_1px,_transparent_0,_transparent_50%)] bg-[size:10px_10px] bg-fixed [--pattern-fg:var(--color-black)]/5 max-lg:h-66 max-lg: border-t lg:border-l dark:[--pattern-fg:var(--color-white)]/10 " >
356
+ < div className = "border-(--pattern-fg) [--pattern-fg:var(--color-black)]/5 max-lg:h-66 dark:[--pattern-fg:var(--color-white)]/10 relative bg-[image:repeating-linear-gradient(315deg,_var(--pattern-fg)_0,_var(--pattern-fg)_1px,_transparent_0,_transparent_50%)] bg-[size:10px_10px] bg-fixed max-lg:border-t lg:border-l" >
351
357
< div className = "absolute right-1/2 max-lg:bottom-8 max-md:translate-x-1/2 md:right-16 lg:top-1/2 lg:-translate-y-1/2 2xl:right-1/2 2xl:translate-x-[calc(50%-3rem)]" >
352
358
< Example step = { step } />
353
359
</ div >
@@ -389,7 +395,7 @@ function Example({ step }: { step: number }) {
389
395
key = { step }
390
396
layout = { true }
391
397
className = { clsx (
392
- "pointer-events-none absolute top-1/2 right-auto left-0 z-1 -mt-4 mr-0 -ml-4 rounded-full text-black" ,
398
+ "z-1 pointer-events-none absolute left-0 right-auto top-1/2 -ml-4 -mt-4 mr-0 rounded-full text-black" ,
393
399
) }
394
400
initial = { { opacity : 0 } }
395
401
animate = { { opacity : [ 0 , 1 , 0 ] } }
@@ -413,7 +419,7 @@ function Example({ step }: { step: number }) {
413
419
layout = "position"
414
420
transition = { TRANSITION }
415
421
className = { clsx (
416
- "size-48 shadow-xl transition-[border-radius] duration-350 dark:outline-1 dark:-outline-offset-1 dark:outline-white/10" ,
422
+ "duration-350 size-48 shadow-xl transition-[border-radius] dark:outline-1 dark:-outline-offset-1 dark:outline-white/10" ,
417
423
step > 1 ? "rounded-md" : null ,
418
424
) }
419
425
src = { cover . src }
@@ -429,7 +435,7 @@ function Example({ step }: { step: number }) {
429
435
layout = "position"
430
436
transition = { TRANSITION }
431
437
className = { clsx (
432
- "text-gray-950 transition-[font-size] duration-350 dark:text-white" ,
438
+ "duration-350 text-gray-950 transition-[font-size] dark:text-white" ,
433
439
step > 2 ? "text-2xl font-medium" : null ,
434
440
) }
435
441
>
@@ -439,8 +445,8 @@ function Example({ step }: { step: number }) {
439
445
transition = { TRANSITION }
440
446
layout = "position"
441
447
className = { clsx (
442
- "text-gray-950 transition-colors duration-350 dark:text-white" ,
443
- step > 3 ? "font-medium text-sky-500!" : null ,
448
+ "duration-350 text-gray-950 transition-colors dark:text-white" ,
449
+ step > 3 ? "text-sky-500! font-medium " : null ,
444
450
) }
445
451
>
446
452
The Anti-Patterns
@@ -449,8 +455,8 @@ function Example({ step }: { step: number }) {
449
455
layout = "position"
450
456
transition = { TRANSITION }
451
457
className = { clsx (
452
- "flex text-gray-950 transition-colors duration-350 dark:text-white" ,
453
- step > 4 ? "gap-2 font-medium text-gray-600! dark:text-gray-400!" : null ,
458
+ "duration-350 flex text-gray-950 transition-colors dark:text-white" ,
459
+ step > 4 ? "text-gray-600! dark:text-gray-400! gap-2 font-medium " : null ,
454
460
) }
455
461
>
456
462
< motion . span layout = "position" transition = { TRANSITION } >
0 commit comments