Open source CapCut alternative.
TypeScript
feat(site): fit the modes slide on a phone without scrolling
David Led8815d2b7c27
diff --git a/site/src/cut/components/onboarding/slides/Modes.tsx b/site/src/cut/components/onboarding/slides/Modes.tsxindex 2cea410c..22b33c00 100644--- a/site/src/cut/components/onboarding/slides/Modes.tsx+++ b/site/src/cut/components/onboarding/slides/Modes.tsx@@ -8,7 +8,7 @@ import { CheckBullet } from "@/cut/components/onboarding/CheckBullet";export function ModesSlide() {return (<div className="mx-auto w-full max-w-[760px]">- <h2 className="text-center text-[clamp(24px,3vw,32px)] leading-[1.1] font-semibold tracking-[-0.02em]">+ <h2 className="text-center text-[clamp(24px,3vw,32px)] leading-[1.1] font-semibold tracking-[-0.02em] text-balance">Works in the cloud or on your Mac</h2><p className="mx-auto mt-3 max-w-[560px] text-center text-[16px] leading-[1.5] text-[#454545] italic">@@ -17,7 +17,7 @@ export function ModesSlide() {{/* The landing's taped cards, so the two places to work are framed thesame way the site frames everything else. */}- <div className="mt-10 grid gap-5 md:grid-cols-2">+ <div className="mt-7 grid gap-4 md:mt-10 md:grid-cols-2 md:gap-5"><Modeicon={<Cloud className="size-5" />}title="In the cloud"@@ -36,7 +36,7 @@ export function ModesSlide() {/></div>- <p className="mt-9 text-center text-[15px] leading-[1.5] text-[#454545]">+ <p className="mt-7 text-center text-[15px] leading-[1.5] text-[#454545] md:mt-9">Automatically switches between cloud and local when available.</p></div>@@ -57,8 +57,9 @@ function Mode({return (<TapedCard color="cream" fill tapeColor={tape} tapePosition="left">{/* Deep top and bottom padding on a narrower card, so the pair reads as- squares rather than banners. */}- <div className="px-7 py-14">+ squares rather than banners. Stacked on mobile, that depth is what+ pushes the slide into a scroll, so it flattens out. */}+ <div className="px-7 py-7 md:py-14"><div className="flex items-center gap-2.5"><span className="grid size-9 place-items-center rounded-lg border-2 border-ink bg-white">{icon}