Skip to content

Commit 6d97dd5

Browse files
committed
Add video
1 parent 85e02a2 commit 6d97dd5

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

src/app/course/page.tsx

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,46 @@ import { HeroActions, SignUpForm } from "./call-to-action";
55
function GridContainer({ children }: { children: React.ReactNode }) {
66
return (
77
<BaseContainer>
8-
<div className="p-2">{children}</div>
8+
<div className="px-0 py-2 sm:px-2">{children}</div>
99
</BaseContainer>
1010
);
1111
}
1212

1313
export default async function Course() {
1414
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>
1924
</div>
20-
</GridContainer>
21-
<div className="mt-20 flex flex-col gap-4 sm:mt-24">
2225
<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>
3729
</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>
3848
</div>
3949
<div className="pt-14 pb-28">
4050
<div className="max-w-xl space-y-8 text-[0.9375rem]/7 text-gray-300">
@@ -66,7 +76,7 @@ export default async function Course() {
6676
well as the code so you can play with it yourself and adapt it for your own projects.
6777
</p>
6878
</div>
69-
<div className="mt-32">
79+
<div className="mt-8">
7080
<SignUpForm />
7181
</div>
7282
</div>

0 commit comments

Comments
 (0)