Open source CapCut alternative.
TypeScript
Polish install instructions
David Lec5f454d5abcc
diff --git a/site/public/install/install-drag.png b/site/public/install/install-drag.pngnew file mode 100644index 00000000..dd11ad9aBinary files /dev/null and b/site/public/install/install-drag.png differdiff --git a/site/public/install/install-launch.png b/site/public/install/install-launch.pngnew file mode 100644index 00000000..206a73beBinary files /dev/null and b/site/public/install/install-launch.png differdiff --git a/site/public/install/install-open.png b/site/public/install/install-open.pngnew file mode 100644index 00000000..01f0451aBinary files /dev/null and b/site/public/install/install-open.png differdiff --git a/site/src/app/install/_components/InstallInstructions.tsx b/site/src/app/install/_components/InstallInstructions.tsxindex 17c83e5d..988b055e 100644--- a/site/src/app/install/_components/InstallInstructions.tsx+++ b/site/src/app/install/_components/InstallInstructions.tsx@@ -1,87 +1,64 @@-import type { CSSProperties, ReactNode } from "react";+import type { CSSProperties } from "react";import Image from "next/image";-import {- ArrowRight,- Download,- Folder,- FolderInput,- HardDriveDownload,- MousePointer2,- Rocket,-} from "lucide-react";+import { ArrowRight, X } from "lucide-react";import {Headline,PillButton,SectionLabel,- TapedCard,} from "@/app/_components/landing/LandingPrimitives";import { GITHUB_REPO_URL } from "@/app/_components/landing/data";-import {- BG,- BLACK,- CARD,- CORAL,- type CardColor,-} from "@/app/_components/landing/theme";--type InstallVisualKind = "download" | "install" | "launch";+import { BG, BLACK } from "@/app/_components/landing/theme";type InstallStep = {body: string;- color: CardColor;eyebrow: string;- icon: typeof Download;+ imageAlt: string;+ imageSrc: string;title: string;- visual: InstallVisualKind;};const installSteps = [{eyebrow: "Step 1",title: "Open",- body: "Open Donkey.dmg from your Downloads folder once the browser finishes.",- color: "coral",- icon: HardDriveDownload,- visual: "download",+ body: "Open the Donkey.dmg file from your downloads.",+ imageAlt: "Donkey disk image download complete in a browser download tray.",+ imageSrc: "/install/install-open.png",},{eyebrow: "Step 2",title: "Install",- body: "Drag Donkey into Applications in the installer window.",- color: "blue",- icon: FolderInput,- visual: "install",+ body: "Drag and drop the Donkey app into your Applications folder.",+ imageAlt: "Donkey app icon being dragged into the Applications folder.",+ imageSrc: "/install/install-drag.png",},{eyebrow: "Step 3",title: "Launch",- body: "Open Donkey from Applications, Launchpad, or the Dock.",- color: "yellow",- icon: Rocket,- visual: "launch",+ body: "Open Donkey from your Applications folder or Launchpad.",+ imageAlt: "Donkey app icon in the macOS Dock.",+ imageSrc: "/install/install-launch.png",},] satisfies InstallStep[];-const iconSource = "/donkey-app-icon.png";-export function InstallInstructions() {return (<sectionstyle={{background: BG,color: BLACK,- padding: "clamp(44px, 7vw, 88px) clamp(24px, 4vw, 48px) clamp(80px, 9vw, 128px)",+ padding: "clamp(44px, 7vw, 88px) clamp(20px, 4vw, 48px) clamp(80px, 9vw, 128px)",}}>- <div style={{ maxWidth: 1400, margin: "0 auto" }}>+ <div style={{ margin: "0 auto", maxWidth: 1280 }}><SectionLabel number={1}>Install Donkey</SectionLabel><divstyle={{+ alignItems: "end",display: "grid",- gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 440px), 1fr))",gap: 36,- alignItems: "end",+ gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 440px), 1fr))",}}><div>@@ -111,487 +88,164 @@ export function InstallInstructions() {</div></div>- <div- style={{- marginTop: 48,- display: "grid",- gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 330px), 1fr))",- gap: 18,- }}- >- {installSteps.map((step) => (- <InstallStepCard key={step.title} step={step} />- ))}- </div>- </div>- </section>- );-}--type InstallStepCardProps = {- step: InstallStep;-};--function InstallStepCard({ step }: InstallStepCardProps) {- const Icon = step.icon;-- return (- <TapedCard color="cream" shadowColor={step.color} tapeColor={step.color}>- <article style={{ minWidth: 0, overflow: "hidden" }}>- <InstallVisual kind={step.visual} />- <div style={{ padding: "24px 24px 28px" }}>- <div+ <div style={instructionPanelStyle}>+ <X+ aria-hidden="true"+ color="rgba(255,255,255,0.56)"+ size={27}+ strokeWidth={1.35}style={{- display: "flex",- alignItems: "center",- gap: 10,- color: "#5c554b",- fontSize: 14,- fontWeight: 800,- marginBottom: 16,+ position: "absolute",+ right: 26,+ top: 26,}}- >- <Icon size={17} />- {step.eyebrow}- </div>+ /><h3style={{- fontSize: 32,- lineHeight: 1,- fontWeight: 900,- margin: "0 0 14px",+ color: "#fff",+ fontSize: "clamp(28px, 3vw, 38px)",+ fontWeight: 800,+ letterSpacing: 0,+ lineHeight: 1.08,+ margin: 0,}}>- {step.title}+ Install and open the app</h3><pstyle={{- color: "#454545",- fontSize: 16,- lineHeight: 1.5,- margin: 0,+ color: "#b8b4ad",+ fontSize: "clamp(17px, 2vw, 22px)",+ lineHeight: 1.42,+ margin: "18px 0 0",+ maxWidth: 980,}}>- {step.body}+ The desktop app should have downloaded automatically. If not, you can{" "}+ <a+ href={GITHUB_REPO_URL}+ style={{+ color: "#cfcac2",+ textDecoration: "underline",+ textDecorationColor: "rgba(207,202,194,0.55)",+ textUnderlineOffset: 5,+ }}+ >+ download manually+ </a>+ .</p>++ <div style={stepsGridStyle}>+ {installSteps.map((step) => (+ <InstallStepCard key={step.title} step={step} />+ ))}+ </div></div>- </article>- </TapedCard>+ </div>+ </section>);}-type InstallVisualProps = {- kind: InstallVisualKind;-};--function InstallVisual({ kind }: InstallVisualProps) {- const visuals: Record<InstallVisualKind, ReactNode> = {- download: <DownloadVisual />,- install: <InstallVisualDrag />,- launch: <LaunchVisual />,- };-- return <div style={visualFrameStyle}>{visuals[kind]}</div>;-}--const visualFrameStyle: CSSProperties = {- position: "relative",- height: 240,- background: "#111110",- borderBottom: "1px solid rgba(255,255,255,0.12)",- overflow: "hidden",+type InstallStepCardProps = {+ step: InstallStep;};-function DownloadVisual() {+function InstallStepCard({ step }: InstallStepCardProps) {return (- <div- style={{- position: "absolute",- inset: 0,- padding: 28,- }}- >- <div- style={{- position: "absolute",- inset: "30px 28px auto",- height: 72,- borderRadius: 18,- border: "1px solid rgba(255,255,255,0.16)",- background: "#22211f",- }}- />- <div- style={{- position: "absolute",- left: 28,- right: 28,- top: 88,- height: 2,- background: "rgba(255,255,255,0.14)",- }}- />- <div- style={{- position: "absolute",- right: 48,- top: 74,- width: 58,- height: 58,- borderRadius: "50%",- background: "rgba(236,120,104,0.14)",- border: "1px solid rgba(236,120,104,0.5)",- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- <Download color="#fff" size={24} />+ <article style={stepCardStyle}>+ <div style={stepImageFrameStyle}>+ <Image+ alt={step.imageAlt}+ height={413}+ src={step.imageSrc}+ style={{+ display: "block",+ height: "auto",+ width: "100%",+ }}+ width={617}+ /></div>- <div- style={{- position: "absolute",- left: 44,- right: 44,- bottom: 34,- minHeight: 76,- borderRadius: 16,- background: "#2b2926",- boxShadow: "0 18px 45px rgba(0,0,0,0.35)",- display: "flex",- alignItems: "center",- gap: 16,- padding: "16px 18px",- }}- >+ <div style={stepCopyStyle}><divstyle={{- width: 36,- height: 46,- borderRadius: 5,- background: CARD.white,- color: BLACK,- display: "flex",- alignItems: "center",- justifyContent: "center",- flexShrink: 0,+ color: "#96928c",+ fontSize: 15,+ fontWeight: 700,+ lineHeight: 1.2,+ marginBottom: 18,}}>- <HardDriveDownload size={19} />+ {step.eyebrow}</div>- <div style={{ minWidth: 0 }}>- <div- style={{- color: "#fff",- fontSize: 18,- fontWeight: 900,- whiteSpace: "nowrap",- overflow: "hidden",- textOverflow: "ellipsis",- }}- >- Donkey.dmg- </div>- <div style={{ color: "rgba(255,255,255,0.54)", fontSize: 13 }}>- Download complete- </div>- </div>- <CursorBadge style={{ marginLeft: "auto", alignSelf: "flex-end" }} />- </div>- </div>- );-}--function InstallVisualDrag() {- return (- <div- style={{- position: "absolute",- inset: 0,- display: "flex",- alignItems: "center",- justifyContent: "center",- gap: "clamp(12px, 5vw, 30px)",- }}- >- <div style={{ position: "relative" }}>- <AppIcon alt="Donkey app icon" size={72} />- <CursorBadge+ <h4style={{- position: "absolute",- right: -12,- bottom: -10,+ color: "#fff",+ fontSize: "clamp(28px, 3vw, 36px)",+ fontWeight: 800,+ lineHeight: 1,+ margin: "0 0 17px",}}- />- </div>- <div- aria-hidden="true"- style={{- width: 56,- height: 30,- borderBottom: "3px solid rgba(255,255,255,0.22)",- borderRight: "3px solid rgba(255,255,255,0.22)",- borderRadius: "0 0 44px 0",- transform: "translateY(16px) rotate(-8deg)",- }}- />- <div- style={{- width: 108,- height: 108,- borderRadius: 18,- border: "2px dashed rgba(255,255,255,0.16)",- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- <MacFolder />- </div>- </div>- );-}--function LaunchVisual() {- return (- <div- style={{- position: "absolute",- inset: 0,- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- <div- style={{- position: "absolute",- top: 44,- left: "50%",- transform: "translateX(-50%)",- borderRadius: 8,- background: CARD.white,- color: BLACK,- fontSize: 15,- fontWeight: 800,- padding: "7px 12px",- boxShadow: "0 12px 30px rgba(0,0,0,0.24)",- }}- >- Donkey- </div>- <div- style={{- width: "min(94%, 390px)",- boxSizing: "border-box",- minHeight: 98,- borderRadius: 28,- background: "rgba(255,255,255,0.32)",- border: "1px solid rgba(255,255,255,0.18)",- display: "flex",- alignItems: "center",- justifyContent: "center",- gap: "clamp(8px, 2vw, 16px)",- padding: "clamp(10px, 2vw, 16px)",- }}- >- <FinderIcon />- <SafariIcon />- <div style={{ position: "relative" }}>- <AppIcon alt="" size={52} />- <CursorBadge- style={{- position: "absolute",- right: -14,- bottom: -12,- }}- />- </div>- <MacFolder compact />+ >+ {step.title}+ </h4>+ <p+ style={{+ color: "#e5e2dd",+ fontSize: "clamp(16px, 1.9vw, 19px)",+ lineHeight: 1.36,+ margin: 0,+ }}+ >+ {step.body}+ </p></div>- </div>+ </article>);}-type AppIconProps = {- alt: string;- size: number;+const instructionPanelStyle: CSSProperties = {+ background: "#1d1d1b",+ border: "1px solid rgba(255,255,255,0.13)",+ borderRadius: 24,+ boxShadow: "0 24px 70px rgba(0,0,0,0.18)",+ boxSizing: "border-box",+ marginTop: 54,+ minWidth: 0,+ overflow: "hidden",+ padding: "clamp(28px, 4.2vw, 48px)",+ position: "relative",};-function AppIcon({ alt, size }: AppIconProps) {- return (- <Image- alt={alt}- height={size}- src={iconSource}- style={{- display: "block",- width: size,- height: size,- borderRadius: Math.max(12, Math.round(size * 0.22)),- boxShadow: "0 16px 34px rgba(0,0,0,0.32)",- }}- width={size}- />- );-}--type MacFolderProps = {- compact?: boolean;+const stepsGridStyle: CSSProperties = {+ alignItems: "stretch",+ display: "grid",+ gap: "clamp(22px, 3vw, 36px)",+ gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 280px), 1fr))",+ marginTop: "clamp(46px, 6vw, 72px)",};-function MacFolder({ compact = false }: MacFolderProps) {- const width = compact ? 54 : 86;- const height = compact ? 44 : 64;-- return (- <div- aria-hidden="true"- style={{- position: "relative",- width,- height,- borderRadius: compact ? 12 : 14,- background: "linear-gradient(180deg, #8fd2ff 0%, #55aceb 100%)",- boxShadow: "0 16px 30px rgba(0,0,0,0.24)",- }}- >- <div- style={{- position: "absolute",- top: -10,- left: 8,- width: compact ? 24 : 38,- height: 16,- borderRadius: "8px 10px 0 0",- background: "#7fc6f5",- }}- />- <Folder- color="rgba(15,14,13,0.34)"- size={compact ? 24 : 40}- strokeWidth={2.4}- style={{- position: "absolute",- left: "50%",- top: "50%",- transform: "translate(-50%, -44%)",- }}- />- </div>- );-}--function FinderIcon() {- return (- <div- aria-hidden="true"- style={{- width: 52,- height: 52,- borderRadius: 14,- background: "linear-gradient(90deg, #64b5ff 0 50%, #eef7ff 50% 100%)",- position: "relative",- boxShadow: "0 12px 24px rgba(0,0,0,0.2)",- }}- >- <div- style={{- position: "absolute",- left: 13,- top: 15,- width: 4,- height: 8,- borderRadius: 4,- background: BLACK,- }}- />- <div- style={{- position: "absolute",- right: 14,- top: 15,- width: 4,- height: 8,- borderRadius: 4,- background: BLACK,- }}- />- <div- style={{- position: "absolute",- left: 14,- right: 14,- bottom: 14,- height: 10,- borderBottom: `3px solid ${BLACK}`,- borderRadius: "0 0 24px 24px",- }}- />- </div>- );-}--function SafariIcon() {- return (- <div- aria-hidden="true"- style={{- width: 52,- height: 52,- borderRadius: 14,- background: "radial-gradient(circle at 50% 50%, #f8fbff 0 36%, #67b7ff 37% 100%)",- position: "relative",- boxShadow: "0 12px 24px rgba(0,0,0,0.2)",- }}- >- <div- style={{- position: "absolute",- left: 24,- top: 9,- width: 5,- height: 34,- borderRadius: 4,- background: CORAL,- transform: "rotate(42deg)",- transformOrigin: "50% 50%",- }}- />- <div- style={{- position: "absolute",- inset: 7,- borderRadius: "50%",- border: "2px solid rgba(255,255,255,0.74)",- }}- />- </div>- );-}+const stepCardStyle: CSSProperties = {+ display: "flex",+ flexDirection: "column",+ height: "100%",+ minWidth: 0,+};-type CursorBadgeProps = {- style?: CSSProperties;+const stepImageFrameStyle: CSSProperties = {+ aspectRatio: "617 / 413",+ background: "#141413",+ borderRadius: 26,+ flexShrink: 0,+ minWidth: 0,+ overflow: "hidden",};-function CursorBadge({ style }: CursorBadgeProps) {- return (- <div- aria-hidden="true"- style={{- width: 32,- height: 32,- borderRadius: "50%",- background: CARD.white,- border: `2px solid ${BLACK}`,- display: "flex",- alignItems: "center",- justifyContent: "center",- boxShadow: "0 10px 18px rgba(0,0,0,0.28)",- ...style,- }}- >- <MousePointer2 color={BLACK} fill={BLACK} size={17} />- </div>- );-}+const stepCopyStyle: CSSProperties = {+ display: "flex",+ flex: 1,+ flexDirection: "column",+ minWidth: 0,+ padding: "clamp(24px, 3vw, 34px) clamp(8px, 1.4vw, 16px) 0",+};