@@ -5,36 +5,46 @@ import { HeroActions, SignUpForm } from "./call-to-action";
5
5
function GridContainer ( { children } : { children : React . ReactNode } ) {
6
6
return (
7
7
< BaseContainer >
8
- < div className = "p -2" > { children } </ div >
8
+ < div className = "px-0 py-2 sm:px -2" > { children } </ div >
9
9
</ BaseContainer >
10
10
) ;
11
11
}
12
12
13
13
export default async function Course ( ) {
14
14
return (
15
- < div className = "dark py-8" >
16
- < GridContainer >
17
- < div className = "p-2" >
18
- < Logo className = "h-7" />
15
+ < div className = "dark relative px-4 py-8 sm:px-0" >
16
+ < div >
17
+ < div className = "absolute inset-x-0 top-0 -z-10 aspect-video opacity-75" >
18
+ < video autoPlay loop muted playsInline className = "absolute size-full object-right" >
19
+ < source src = "https://assets.tailwindcss.com/course-demos/background-video.mp4" type = "video/mp4" />
20
+ Your browser does not support the video tag.
21
+ </ video >
22
+ < div className = "absolute inset-0 size-full bg-linear-to-r from-gray-950 from-30%" > </ div >
23
+ < div className = "absolute inset-0 size-full bg-linear-to-t from-gray-950 to-50%" > </ div >
19
24
</ div >
20
- </ GridContainer >
21
- < div className = "mt-20 flex flex-col gap-4 sm:mt-24" >
22
25
< GridContainer >
23
- < p className = "font-mono text-sm/6 tracking-wider text-gray-400 uppercase" > 5-day mini-course</ p >
24
- < h1 className = "mt-2 text-5xl tracking-tighter text-balance text-white sm:text-8xl" >
25
- Build UIs that don't suck.
26
- </ h1 >
27
- </ GridContainer >
28
- < GridContainer >
29
- < p className = "max-w-2xl text-lg/7 font-medium text-gray-400" >
30
- < strong className = "font-medium text-white" > Short, tactical video lessons</ strong > from the creator of
31
- TailwindCSS, delivered directly to your inbox{ " " }
32
- < strong className = "font-medium text-white" > every day for a week</ strong > .
33
- </ p >
34
- </ GridContainer >
35
- < GridContainer >
36
- < HeroActions />
26
+ < div className = "p-2" >
27
+ < Logo className = "h-7" />
28
+ </ div >
37
29
</ GridContainer >
30
+ < div className = "mt-20 flex flex-col gap-4 sm:mt-24" >
31
+ < GridContainer >
32
+ < p className = "font-mono text-sm/6 tracking-wider text-gray-400 uppercase" > 5-day mini-course</ p >
33
+ < h1 className = "mt-2 text-5xl tracking-tighter text-balance text-white sm:text-8xl" >
34
+ Build UIs that don't suck.
35
+ </ h1 >
36
+ </ GridContainer >
37
+ < GridContainer >
38
+ < p className = "max-w-2xl text-lg/7 font-medium text-gray-400" >
39
+ < strong className = "font-medium text-white" > Short, tactical video lessons</ strong > from the creator of
40
+ TailwindCSS, delivered directly to your inbox{ " " }
41
+ < strong className = "font-medium text-white" > every day for a week</ strong > .
42
+ </ p >
43
+ </ GridContainer >
44
+ < GridContainer >
45
+ < HeroActions />
46
+ </ GridContainer >
47
+ </ div >
38
48
</ div >
39
49
< div className = "pt-14 pb-28" >
40
50
< div className = "max-w-xl space-y-8 text-[0.9375rem]/7 text-gray-300" >
@@ -66,7 +76,7 @@ export default async function Course() {
66
76
well as the code so you can play with it yourself and adapt it for your own projects.
67
77
</ p >
68
78
</ div >
69
- < div className = "mt-32 " >
79
+ < div className = "mt-8 " >
70
80
< SignUpForm />
71
81
</ div >
72
82
</ div >
0 commit comments