diff --git a/src/components-vite/FloatingPaths.tsx b/src/components-vite/FloatingPaths.tsx new file mode 100644 index 0000000..ea36699 --- /dev/null +++ b/src/components-vite/FloatingPaths.tsx @@ -0,0 +1,45 @@ +import { motion } from "framer-motion" + +export function FloatingPaths({ position }: { position: number }) { + const paths = Array.from({ length: 12 }, (_, i) => ({ + id: i, + d: `M-${380 - i * 15 * position} -${189 + i * 18}C-${ + 380 - i * 15 * position + } -${189 + i * 18} -${312 - i * 15 * position} ${216 - i * 18} ${ + 152 - i * 15 * position + } ${343 - i * 18}C${616 - i * 15 * position} ${470 - i * 18} ${ + 684 - i * 15 * position + } ${875 - i * 18} ${684 - i * 15 * position} ${875 - i * 18}`, + color: `rgba(var(--accent),${0.1 + i * 0.03})`, + width: 0.5 + i * 0.09, + })) + + return ( +
+ + Background Paths + {paths.map((path) => ( + + ))} + +
+ ) +} +