Open source CapCut alternative.
TypeScript
refactor(site): make demo video its own framed card
David Le0f0d8027cbfa
diff --git a/site/src/app/_components/landing/Demo.tsx b/site/src/app/_components/landing/Demo.tsxindex ae819c78..e5297507 100644--- a/site/src/app/_components/landing/Demo.tsx+++ b/site/src/app/_components/landing/Demo.tsx@@ -1,8 +1,8 @@"use client";-import { Headline, TapedCard } from "@/app/_components/landing/LandingPrimitives";+import { Headline } from "@/app/_components/landing/LandingPrimitives";import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";-import { BLACK } from "@/app/_components/landing/theme";+import { BLACK, CORAL } from "@/app/_components/landing/theme";export function Demo() {const isDesktop = useMediaQuery("(min-width: 768px)");@@ -30,40 +30,40 @@ export function Demo() {Watch Donkey take real tasks end-to-end.</p>- <div style={{ marginTop: 48 }}>- <TapedCard- color="white"- shadowColor="coral"- tapeColor="yellow"- tapePosition="center"+ <div style={{ marginTop: 48, position: "relative" }}>+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: "translate(6px, 6px)",+ borderRadius: 16,+ background: CORAL,+ }}+ />+ <div+ style={{+ position: "relative",+ aspectRatio: "16 / 9",+ borderRadius: 16,+ overflow: "hidden",+ border: `2px solid ${BLACK}`,+ background: BLACK,+ }}>- <div style={{ padding: isDesktop ? 20 : 12 }}>- <div- style={{- position: "relative",- aspectRatio: "16 / 9",- borderRadius: 12,- overflow: "hidden",- border: `2px solid ${BLACK}`,- background: BLACK,- }}- >- <iframe- src="https://www.youtube-nocookie.com/embed/g4x-HhZ8XII"- title="See Donkey in action"- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"- allowFullScreen- style={{- position: "absolute",- inset: 0,- width: "100%",- height: "100%",- border: 0,- }}- />- </div>- </div>- </TapedCard>+ <iframe+ src="https://www.youtube-nocookie.com/embed/g4x-HhZ8XII"+ title="See Donkey in action"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"+ allowFullScreen+ style={{+ position: "absolute",+ inset: 0,+ width: "100%",+ height: "100%",+ border: 0,+ }}+ />+ </div></div></section>);