Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: remove landing page shadows

dev_wandrya822dc86552f
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsx
index 6f93511c..4816c60e 100644
--- a/app/(home)/components/sections/bento-registry.tsx
+++ b/app/(home)/components/sections/bento-registry.tsx
@@ -106,7 +106,7 @@ function BentoCard({
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
className={cn(
- "surface-card group relative flex flex-col overflow-hidden rounded-2xl shadow-xl shadow-black/5 sm:rounded-3xl dark:shadow-black/30",
+ "surface-card group relative flex flex-col overflow-hidden rounded-2xl sm:rounded-3xl",
className,
)}
>
diff --git a/app/(home)/components/sections/hero-scroll-video.tsx b/app/(home)/components/sections/hero-scroll-video.tsx
index 4b94c237..c08a3f46 100644
--- a/app/(home)/components/sections/hero-scroll-video.tsx
+++ b/app/(home)/components/sections/hero-scroll-video.tsx
@@ -115,6 +115,7 @@ function ScrollStage({
0,
REST_RADIUS,
]);
+ const frameOpacity = useTransform(scrollYProgress, keyframes, [1, 0, 0, 1]);
return (
<section ref={sectionRef} data-hero-zoom className="relative h-[380vh]">
@@ -127,7 +128,7 @@ function ScrollStage({
scaleY,
borderRadius,
}}
- className="group surface-card relative overflow-hidden shadow-black/5 will-change-transform dark:shadow-black/40"
+ className="group relative overflow-hidden will-change-transform"
>
<VideoCard
videoRef={videoRef}
@@ -135,6 +136,11 @@ function ScrollStage({
onToggle={onToggle}
className="h-full w-full"
/>
+ <motion.div
+ aria-hidden
+ style={{ borderRadius, opacity: frameOpacity }}
+ className="pointer-events-none absolute inset-0 border border-border"
+ />
</motion.div>
</div>
</section>
diff --git a/app/(home)/components/sections/interactive-code.tsx b/app/(home)/components/sections/interactive-code.tsx
index b27a1eb7..41c5ef01 100644
--- a/app/(home)/components/sections/interactive-code.tsx
+++ b/app/(home)/components/sections/interactive-code.tsx
@@ -356,7 +356,7 @@ export function InteractiveCode() {
<motion.div
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
- className="relative flex items-center justify-center overflow-hidden rounded-2xl bg-white shadow-2xl shadow-black/5 ring-1 ring-black/5 sm:rounded-3xl"
+ className="relative flex items-center justify-center overflow-hidden rounded-2xl bg-white ring-1 ring-black/5 sm:rounded-3xl"
>
<div
ref={containerRef}
diff --git a/app/(home)/components/sections/ui-registry.tsx b/app/(home)/components/sections/ui-registry.tsx
index a6e7e099..d5d965d0 100644
--- a/app/(home)/components/sections/ui-registry.tsx
+++ b/app/(home)/components/sections/ui-registry.tsx
@@ -160,7 +160,7 @@ function PreviewSurface({
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
className={cn(
- "surface-card relative aspect-video overflow-hidden rounded-2xl shadow-xl shadow-black/5 sm:rounded-3xl dark:shadow-black/30",
+ "surface-card relative aspect-video overflow-hidden rounded-2xl sm:rounded-3xl",
className,
)}
>
diff --git a/app/(home)/components/sections/whats-inside.tsx b/app/(home)/components/sections/whats-inside.tsx
index 7b41bf5a..bd0c6516 100644
--- a/app/(home)/components/sections/whats-inside.tsx
+++ b/app/(home)/components/sections/whats-inside.tsx
@@ -172,7 +172,7 @@ function UiPrimitivesViz({ play }: VizProps) {
const times = [0, 0.15, 0.85, 1];
return (
- <div className="relative h-9 w-16 overflow-hidden rounded-full border border-border bg-muted shadow-sm">
+ <div className="relative h-9 w-16 overflow-hidden rounded-full border border-border bg-muted">
<motion.div
aria-hidden
className="absolute inset-0 bg-primary"
@@ -185,7 +185,7 @@ function UiPrimitivesViz({ play }: VizProps) {
}}
/>
<motion.span
- className="absolute top-1 left-1 size-7 rounded-full bg-background shadow-sm"
+ className="absolute top-1 left-1 size-7 rounded-full bg-background"
animate={active ? { x: [0, 28, 28, 0] } : { x: 28 }}
transition={{
duration: 3,
@@ -266,7 +266,7 @@ function CategoryCard({ category, index }: { category: Category; index: number }
ref={ref}
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
- className="relative flex h-full flex-col overflow-hidden rounded-3xl border border-border bg-card shadow-xl shadow-black/5 dark:shadow-black/30"
+ className="relative flex h-full flex-col overflow-hidden rounded-3xl border border-border bg-card"
>
<div className="relative flex h-40 items-center justify-center overflow-hidden border-b border-border bg-muted/20 sm:h-44 [background-image:radial-gradient(circle,color-mix(in_oklab,var(--color-foreground)_6%,transparent)_1px,transparent_1px)] [background-size:16px_16px]">
<Viz play={inView} />
diff --git a/app/(home)/components/sticky-header-shell.tsx b/app/(home)/components/sticky-header-shell.tsx
index 7b7247d2..b7a74b9d 100644
--- a/app/(home)/components/sticky-header-shell.tsx
+++ b/app/(home)/components/sticky-header-shell.tsx
@@ -64,15 +64,17 @@ export function StickyHeaderShell({ children }: { children: ReactNode }) {
style={{ y }}
className="fixed inset-x-0 top-0 z-40 py-3"
>
- <div
- className={cn(
- "mx-auto flex w-full max-w-6xl items-center justify-between rounded-3xl border px-4 transition-all duration-300 sm:px-6",
- scrolled
- ? "h-14 border-border bg-background/80 shadow-lg shadow-black/5 backdrop-blur-xl dark:shadow-black/30"
- : "h-16 border-transparent bg-transparent",
- )}
- >
- {children}
+ <div className="section">
+ <div
+ className={cn(
+ "flex w-full items-center justify-between rounded-3xl border px-4 transition-all duration-300 sm:px-6",
+ scrolled
+ ? "h-14 border-border bg-background/80 backdrop-blur-xl"
+ : "h-16 border-transparent bg-transparent",
+ )}
+ >
+ {children}
+ </div>
</div>
</motion.header>
<div aria-hidden className="h-[88px]" />
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
index ec9c4b98..a7616864 100644
--- a/app/(home)/sponsors/components/sections/tiers.tsx
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -73,7 +73,7 @@ function TierCard({
whileHover={{ y: -4 }}
transition={SPRING_BOUNCE}
className={cn(
- "surface-card group relative flex h-full flex-col overflow-hidden rounded-3xl p-8 shadow-xl shadow-black/5 dark:shadow-black/30",
+ "surface-card group relative flex h-full flex-col overflow-hidden rounded-3xl p-8",
tier.highlighted && "ring-1 ring-foreground/15",
)}
>
diff --git a/app/(home)/stars/components/player-frame.tsx b/app/(home)/stars/components/player-frame.tsx
index 558b0655..ac931f2a 100644
--- a/app/(home)/stars/components/player-frame.tsx
+++ b/app/(home)/stars/components/player-frame.tsx
@@ -25,7 +25,7 @@ export function PlayerFrame({
// Player still gets the true 720×1280 composition so the exported MP4 is
// genuinely vertical (only the on-page container width stays constant).
<div
- className="group surface-card relative w-full overflow-hidden rounded-2xl shadow-2xl shadow-black/5 sm:rounded-3xl dark:shadow-black/40"
+ className="group surface-card relative w-full overflow-hidden rounded-2xl sm:rounded-3xl"
style={{ aspectRatio: "1280 / 720" }}
>
<div className="absolute inset-0 flex items-center justify-center">