Skip to content

Commit a521461

Browse files
committed
WIP
1 parent 9d824f4 commit a521461

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import { Button, Dialog, DialogBackdrop, DialogPanel } from "@headlessui/react";
88
export function SignUpForm() {
99
return (
1010
<form className="flex" method="POST" action="https://app.kit.com/forms/7712177/subscriptions">
11-
<div className="flex items-center rounded-full bg-white">
11+
<div className="flex max-w-full items-center rounded-full bg-white">
1212
<input
1313
required
1414
type="email"
1515
id="email"
1616
name="email_address"
17-
className="w-3xs rounded-full bg-transparent px-4 py-2 text-sm/6 text-gray-950 focus:outline-none"
17+
className="w-3xs min-w-0 shrink grow rounded-full bg-transparent px-4 py-2 text-sm/6 text-gray-950 focus:outline-none"
1818
placeholder="Enter your email"
1919
aria-label="Email address"
2020
/>
@@ -140,7 +140,6 @@ export function HeroActions({
140140
<Button
141141
as={motion.button}
142142
onClick={() => {
143-
console.log(onWatchPreview.toString());
144143
onWatchPreview();
145144
setIsDialogOpen(true);
146145
}}
@@ -165,7 +164,9 @@ export function HeroActions({
165164
strokeLinejoin="round"
166165
/>
167166
</svg>
168-
Watch the first video
167+
<span>
168+
Watch <span className="max-sm:hidden">the</span> intro <span className="max-sm:hidden">video</span>
169+
</span>
169170
</Button>
170171
)}
171172
</AnimatePresence>
@@ -178,7 +179,7 @@ export function HeroActions({
178179
>
179180
<DialogBackdrop className="fixed inset-0 bg-black/85" />
180181
<div className="fixed inset-0 grid place-items-center">
181-
<DialogPanel className="w-full max-w-7xl p-8">
182+
<DialogPanel className="w-full max-w-7xl p-4 sm:p-8">
182183
<video autoPlay controls className="aspect-video w-full rounded-2xl">
183184
<source src="https://assets.tailwindcss.com/build-uis-that-dont-suck/intro.mp4" type="video/mp4" />
184185
</video>

src/app/course/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react";
33
export default async function Layout({ children }: React.PropsWithChildren) {
44
return (
55
<div className="max-w-screen overflow-x-hidden [html:has(&)]:bg-gray-950">
6-
<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)]">
6+
<div className="grid min-h-dvh grid-cols-1 grid-rows-[1fr_1px_auto_1px_auto] justify-center [--gutter-width:--spacing(6)] sm:grid-cols-[var(--gutter-width)_minmax(0,var(--breakpoint-xl))_var(--gutter-width)] lg:[--gutter-width:--spacing(10)]">
77
{/* Candy cane */}
88
<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>
99

0 commit comments

Comments
 (0)