Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: ratio benta grid
dev_wandry4d2692331a09
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsxindex 4be3fe84..09f6db85 100644--- a/app/(home)/components/sections/bento-registry.tsx+++ b/app/(home)/components/sections/bento-registry.tsx@@ -61,12 +61,19 @@ function BentoCard({description,className = "",inputProps,+ featured = false,}: {name: string;title: string;description: string;className?: string;inputProps?: Record<string, unknown>;+ /**+ * Large 2×2 card: the preview grows to fill the extra height (inside a dark+ * frame that blends the letterbox) and the footer stays compact, instead of+ * a fixed 16/9 preview leaving a tall empty gap above the install pill.+ */+ featured?: boolean;}) {const entry = registry[name];@@ -89,7 +96,17 @@ function BentoCard({}}/>- <div className="relative aspect-[16/9] w-full overflow-hidden bg-muted">+ <div+ className={cn(+ "relative w-full overflow-hidden",+ // Featured: media grows to fill the tall 2×2 card (md+). The frame+ // matches the ai-generation-canvas composition background (#0a0a0a)+ // so the Player's letterbox bars blend seamlessly in both themes.+ featured+ ? "aspect-[16/9] bg-[#0a0a0a] md:aspect-auto md:min-h-0 md:flex-1"+ : "aspect-[16/9] bg-muted",+ )}+ >{entry ? (<Playercomponent={entry.Component}@@ -105,14 +122,19 @@ function BentoCard({/>) : null}</div>- <div className="relative flex flex-1 flex-col border-t border-border p-5 sm:p-6">+ <div+ className={cn(+ "relative flex flex-col border-t border-border p-5 sm:p-6",+ featured ? "flex-none" : "flex-1",+ )}+ ><h3 className="text-base font-semibold tracking-tight text-foreground">{title}</h3><p className="mt-1.5 text-sm leading-relaxed text-muted-foreground">{description}</p>- <div className="mt-auto">+ <div className={featured ? undefined : "mt-auto"}><InstallPill name={name} /></div></div>@@ -178,6 +200,7 @@ export function BentoRegistry() {title="AI Generation Canvas"description="From prompt to UI in a single composition"className="md:col-span-2 md:row-span-2"+ featured/><BentoCardname="shimmer-sweep"diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsxindex 0205a202..72f7142e 100644--- a/app/(home)/components/sections/hero.tsx+++ b/app/(home)/components/sections/hero.tsx@@ -109,63 +109,65 @@ export function Hero() {</div></div>- <FadeUp delay={0.24} className="relative mt-10 w-full sm:mt-12">- <motion.div- className="relative flex justify-center px-4 sm:px-6"- initial={{ y: 40, opacity: 0 }}- whileInView={{ y: 0, opacity: 1 }}- viewport={{ once: true, amount: 0.2 }}- transition={{ ...SPRING_BOUNCE, delay: 0.05 }}- >- <div- className="group surface-card relative w-full max-w-5xl overflow-hidden rounded-2xl shadow-2xl shadow-black/5 sm:rounded-3xl dark:shadow-black/40"- style={{ aspectRatio }}+ <div className={SECTION}>+ <FadeUp delay={0.24} className="relative mt-10 w-full sm:mt-12">+ <motion.div+ className="relative"+ initial={{ y: 40, opacity: 0 }}+ whileInView={{ y: 0, opacity: 1 }}+ viewport={{ once: true, amount: 0.2 }}+ transition={{ ...SPRING_BOUNCE, delay: 0.05 }}>- {heroEntry ? (- <Player- ref={playerRef}- component={heroEntry.Component}- inputProps={{- code: HERO_CODE,- title: "LaunchScene.tsx",- width: 860,- height: 480,- // Scene backdrop behind the glass card — the abstract texture- // with a dark wash so the code stays legible through the glass.- background:- "linear-gradient(rgba(5,5,8,0.5), rgba(5,5,8,0.62)), url(/bg.jpg) center / cover no-repeat",- }}- durationInFrames={heroEntry.config.durationInFrames}- fps={heroEntry.config.fps}- compositionWidth={heroEntry.config.compositionWidth}- compositionHeight={heroEntry.config.compositionHeight}- style={{ width: "100%", height: "100%", display: "block" }}- autoPlay- loop- acknowledgeRemotionLicense- />- ) : null}- <button- type="button"- onClick={togglePlay}- aria-label={playing ? "Pause preview" : "Play preview"}- className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"+ <div+ className="group surface-card relative w-full overflow-hidden rounded-2xl shadow-2xl shadow-black/5 sm:rounded-3xl dark:shadow-black/40"+ style={{ aspectRatio }}>- <span- aria-hidden- data-show={!playing}- className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-background/70 text-foreground opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"+ {heroEntry ? (+ <Player+ ref={playerRef}+ component={heroEntry.Component}+ inputProps={{+ code: HERO_CODE,+ title: "LaunchScene.tsx",+ width: 860,+ height: 480,+ // Scene backdrop behind the glass card — the abstract texture+ // with a dark wash so the code stays legible through the glass.+ background:+ "linear-gradient(rgba(5,5,8,0.5), rgba(5,5,8,0.62)), url(/bg.jpg) center / cover no-repeat",+ }}+ durationInFrames={heroEntry.config.durationInFrames}+ fps={heroEntry.config.fps}+ compositionWidth={heroEntry.config.compositionWidth}+ compositionHeight={heroEntry.config.compositionHeight}+ style={{ width: "100%", height: "100%", display: "block" }}+ autoPlay+ loop+ acknowledgeRemotionLicense+ />+ ) : null}+ <button+ type="button"+ onClick={togglePlay}+ aria-label={playing ? "Pause preview" : "Play preview"}+ className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40">- {playing ? (- <Pause className="size-5" />- ) : (- <Play className="size-5 translate-x-0.5" />- )}- </span>- </button>- </div>- </motion.div>- </FadeUp>+ <span+ aria-hidden+ data-show={!playing}+ className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-background/70 text-foreground opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"+ >+ {playing ? (+ <Pause className="size-5" />+ ) : (+ <Play className="size-5 translate-x-0.5" />+ )}+ </span>+ </button>+ </div>+ </motion.div>+ </FadeUp>+ </div></section>);}