Skip to content

Commit e628d19

Browse files
committed
Dunno
1 parent 77f78a1 commit e628d19

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

src/app/course/call-to-action.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export function SignUpForm() {
1010
<form className="flex" method="POST" action="https://app.kit.com/forms/7712177/subscriptions">
1111
<div className="flex items-center rounded-full bg-white">
1212
<input
13+
required
1314
autoFocus
1415
type="email"
1516
id="email"
@@ -19,7 +20,7 @@ export function SignUpForm() {
1920
aria-label="Email address"
2021
/>
2122
<button className="mr-0.5 shrink-0 overflow-hidden rounded-full bg-gray-950 px-3 py-1.5 text-sm/6 font-semibold text-nowrap text-white hover:bg-gray-950/85">
22-
Sign up
23+
Get the course
2324
</button>
2425
</div>
2526
</form>
@@ -81,6 +82,7 @@ export function HeroActions() {
8182
transition={{ duration: 0.1 }}
8283
>
8384
<input
85+
required
8486
autoFocus
8587
ref={input}
8688
onBlur={handleBlur}
@@ -153,7 +155,7 @@ export function HeroActions() {
153155
strokeLinejoin="round"
154156
/>
155157
</svg>
156-
Watch intro video
158+
Watch the first video
157159
</motion.button>
158160
)}
159161
</AnimatePresence>

src/app/course/confirmed/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import BaseContainer from "@/components/grid-container";
21
import { Logo } from "@/components/logo";
3-
4-
function GridContainer({ children }: { children: React.ReactNode }) {
5-
return (
6-
<BaseContainer>
7-
<div className="px-0 py-2 sm:px-2">{children}</div>
8-
</BaseContainer>
9-
);
10-
}
2+
import { GridContainer } from "../layout";
113

124
export default async function Course() {
135
return (

src/app/course/layout.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
import BaseContainer from "@/components/grid-container";
12
import React from "react";
2-
import { Header } from "@/components/header";
3+
4+
export function GridContainer({ children }: { children: React.ReactNode }) {
5+
return (
6+
<BaseContainer>
7+
<div className="px-0 py-2 sm:px-2">{children}</div>
8+
</BaseContainer>
9+
);
10+
}
311

412
export default async function Layout({ children }: React.PropsWithChildren) {
513
return (
614
<div className="max-w-screen overflow-x-hidden [html:has(&)]:bg-gray-950">
7-
<div className="grid min-h-dvh grid-cols-1 grid-rows-[1fr_1px_auto_1px_auto] justify-center [--gutter-width:2.5rem] sm:grid-cols-[var(--gutter-width)_minmax(0,var(--breakpoint-2xl))_var(--gutter-width)]">
15+
<div className="grid min-h-dvh grid-cols-1 grid-rows-[1fr_1px_auto_1px_auto] justify-center [--gutter-width:2.5rem] sm:grid-cols-[var(--gutter-width)_minmax(0,var(--breakpoint-xl))_var(--gutter-width)]">
816
{/* Candy cane */}
917
<div className="col-start-1 row-span-full row-start-1 hidden border-x border-x-(--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-white)]/10 sm:block"></div>
1018

src/app/course/page.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
import BaseContainer from "@/components/grid-container";
21
import { Logo } from "@/components/logo";
32
import { HeroActions, SignUpForm } from "./call-to-action";
3+
import { GridContainer } from "./layout";
44

5-
function GridContainer({ children }: { children: React.ReactNode }) {
6-
return (
7-
<BaseContainer>
8-
<div className="px-0 py-2 sm:px-2">{children}</div>
9-
</BaseContainer>
10-
);
11-
}
5+
import type { Metadata } from "next";
6+
7+
export const metadata: Metadata = {
8+
title: "Build UIs that don't suck",
9+
description: "A free videos series from the creator of Tailwind CSS.",
10+
openGraph: {
11+
type: "website",
12+
title: "Build UIs that don't suck",
13+
description: "A free video series from the creator of Tailwind CSS.",
14+
images: "https://tailwindcss.com/api/og?path=/course",
15+
url: "https://tailwindcss.com/course",
16+
},
17+
};
1218

1319
export default async function Course() {
1420
return (
@@ -32,7 +38,7 @@ export default async function Course() {
3238
</GridContainer>
3339
<div className="mt-20 flex flex-col gap-4 sm:mt-24">
3440
<GridContainer>
35-
<p className="font-mono text-sm/6 tracking-wider text-gray-400 uppercase">5-day mini-course</p>
41+
<p className="font-mono text-sm/6 tracking-wider text-gray-400 uppercase">5-part mini-course</p>
3642
<h1 className="mt-2 text-5xl tracking-tighter text-balance text-white sm:text-8xl">
3743
Build UIs that don’t suck.
3844
</h1>

src/app/course/subscribed/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import BaseContainer from "@/components/grid-container";
21
import { Logo } from "@/components/logo";
3-
4-
function GridContainer({ children }: { children: React.ReactNode }) {
5-
return (
6-
<BaseContainer>
7-
<div className="px-0 py-2 sm:px-2">{children}</div>
8-
</BaseContainer>
9-
);
10-
}
2+
import { GridContainer } from "../layout";
113

124
export default async function Course() {
135
return (

0 commit comments

Comments
 (0)