Skip to content

Commit 931c56f

Browse files
committed
Add redirect pages
1 parent 720ef38 commit 931c56f

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

src/app/course/confirmed/page.tsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { Logo } from "@/components/logo";
2+
import GridContainer from "@/components/grid-container";
3+
import DotGridImage from "../dot-grid-image";
4+
import { Signature } from "../signature";
5+
6+
export default async function Subscribed() {
7+
return (
8+
<div className="relative grid min-h-dvh grid-cols-1 place-items-center py-8 sm:px-0">
9+
<GridContainer className="grid gap-6 sm:grid-cols-[auto_1fr] md:gap-10">
10+
<div className="relative grid border-black/5 p-2 max-sm:justify-center max-sm:px-4 sm:border-r md:border-x dark:border-white/10">
11+
<DotGridImage
12+
darkMode={true}
13+
width={472}
14+
height={667}
15+
className="aspect-[472/667] h-[320px] not-dark:hidden"
16+
/>
17+
<DotGridImage darkMode={false} width={472} height={667} className="aspect-[472/667] h-[320px] dark:hidden" />
18+
<Signature className="pointer-events-none absolute inset-x-0 -bottom-8 mx-auto fill-gray-900 lg:-translate-x-1/5 dark:fill-gray-200" />
19+
</div>
20+
<div className="grid content-center border-l border-black/5 md:border-x dark:border-white/10">
21+
<div className="grid border-y border-black/5 p-2 max-md:border-t-0 max-sm:justify-center max-sm:px-4 dark:border-white/10">
22+
<Logo className="h-7" />
23+
</div>
24+
<div className="mt-4 border-y border-black/5 p-2 max-sm:px-4 dark:border-white/10">
25+
<p className="font-mono text-sm font-medium text-gray-700 uppercase max-sm:text-center dark:text-gray-400">
26+
Tailwind CSS by Example
27+
</p>
28+
<h1 className="text-5xl tracking-tighter text-balance text-gray-900 max-sm:text-center lg:text-8xl dark:text-white">
29+
You're in!
30+
</h1>
31+
</div>
32+
<div className="mt-6 border-y border-black/5 p-2 max-md:border-b-0 max-sm:px-4 dark:border-white/10">
33+
<p className="max-w-xl text-lg/7 font-medium text-pretty text-gray-500 max-sm:text-center dark:text-gray-400">
34+
We'll be in touch soon with more details on the course. Stay tuned for sneak peaks, free chapters and
35+
early access.
36+
</p>
37+
</div>
38+
</div>
39+
</GridContainer>
40+
</div>
41+
);
42+
}

src/app/course/subscribed/page.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { Logo } from "@/components/logo";
2+
import GridContainer from "@/components/grid-container";
3+
import DotGridImage from "../dot-grid-image";
4+
import { Signature } from "../signature";
5+
6+
export default async function Subscribed() {
7+
return (
8+
<div className="relative grid min-h-dvh grid-cols-1 place-items-center py-8 sm:px-0">
9+
<GridContainer className="grid gap-6 sm:grid-cols-[auto_1fr] md:gap-10">
10+
<div className="relative grid border-black/5 p-2 max-sm:justify-center max-sm:px-4 sm:border-r md:border-x dark:border-white/10">
11+
<DotGridImage
12+
darkMode={true}
13+
width={472}
14+
height={667}
15+
className="aspect-[472/667] h-[320px] not-dark:hidden"
16+
/>
17+
<DotGridImage darkMode={false} width={472} height={667} className="aspect-[472/667] h-[320px] dark:hidden" />
18+
<Signature className="pointer-events-none absolute inset-x-0 -bottom-8 mx-auto fill-gray-900 lg:-translate-x-1/5 dark:fill-gray-200" />
19+
</div>
20+
<div className="grid content-center border-l border-black/5 md:border-x dark:border-white/10">
21+
<div className="grid border-y border-black/5 p-2 max-md:border-t-0 max-sm:justify-center max-sm:px-4 dark:border-white/10">
22+
<Logo className="h-7" />
23+
</div>
24+
<div className="mt-4 border-y border-black/5 p-2 max-sm:px-4 dark:border-white/10">
25+
<p className="font-mono text-sm font-medium text-gray-700 uppercase max-sm:text-center dark:text-gray-400">
26+
Tailwind CSS by Example
27+
</p>
28+
<h1 className="text-5xl tracking-tighter text-balance text-gray-900 max-sm:text-center lg:text-8xl dark:text-white">
29+
Check your email.
30+
</h1>
31+
</div>
32+
<div className="mt-6 border-y border-black/5 p-2 max-md:border-b-0 max-sm:px-4 dark:border-white/10">
33+
<p className="max-w-xl text-lg/7 font-medium text-pretty text-gray-500 max-sm:text-center dark:text-gray-400">
34+
You should get a confirmation email any minute —{" "}
35+
<strong className="font-medium text-gray-900 dark:text-white">open it up</strong> and{" "}
36+
<strong className="font-medium text-gray-900 dark:text-white">confirm your email</strong> to make sure
37+
you're on the list.
38+
</p>
39+
</div>
40+
</div>
41+
</GridContainer>
42+
</div>
43+
);
44+
}

0 commit comments

Comments
 (0)