"use client"; import type { ReactNode } from "react"; import { motion, useReducedMotion } from "motion/react"; type FloatingCardProps = { children: ReactNode; className?: string; /** How high the card rises, in pixels. */ distance?: number; /** Seconds for one rise and fall. */ duration?: number; /** Seconds to wait before starting, to put several cards out of step. */ delay?: number; }; /* FloatingCard: the card bobs gently in the air; its shadow shrinks as it rises. */ export function FloatingCard({ children, className = "rounded-2xl border border-white/10 bg-[#16132a] p-6 text-white", distance = 12, duration = 4, delay = 0, }: FloatingCardProps) { const reduce = useReducedMotion(); const loop = { duration, delay, repeat: Infinity, ease: "easeInOut" } as const; return (
{children}
); }