From 68ca39ad025d7294dd0f19aa22b8d6ac5b0ad212 Mon Sep 17 00:00:00 2001 From: tacheraSasi Date: Tue, 26 Nov 2024 20:17:30 +0300 Subject: [PATCH] AnimatedBackground --- website/components/AnimatedBackground.tsx | 38 +++++++++++++++++++++++ website/components/Feature.tsx | 2 +- website/components/header.tsx | 4 +-- website/components/hero.tsx | 38 ++--------------------- 4 files changed, 43 insertions(+), 39 deletions(-) create mode 100644 website/components/AnimatedBackground.tsx diff --git a/website/components/AnimatedBackground.tsx b/website/components/AnimatedBackground.tsx new file mode 100644 index 0000000..e08e60a --- /dev/null +++ b/website/components/AnimatedBackground.tsx @@ -0,0 +1,38 @@ +import { motion, useAnimation, useInView } from 'motion/react' + +export const AnimatedBackground = () => { + return ( +
+ + + + + + + + + {[...Array(20)].map((_, i) => ( + + ))} + + +
+ ) +} \ No newline at end of file diff --git a/website/components/Feature.tsx b/website/components/Feature.tsx index 5ccbbe6..fc1d05b 100644 --- a/website/components/Feature.tsx +++ b/website/components/Feature.tsx @@ -1,7 +1,7 @@ "use client"; import React, { ForwardRefExoticComponent, RefAttributes } from "react"; -import { motion } from "framer-motion"; +import { motion } from "motion/react"; import { LucideProps } from "lucide-react"; interface VintLangFeature { diff --git a/website/components/header.tsx b/website/components/header.tsx index 591970a..86e5cc2 100644 --- a/website/components/header.tsx +++ b/website/components/header.tsx @@ -15,8 +15,8 @@ export default function Header() { if (!mounted) return null return ( -
-
+
+
VintLang diff --git a/website/components/hero.tsx b/website/components/hero.tsx index d70f236..2ac0c63 100644 --- a/website/components/hero.tsx +++ b/website/components/hero.tsx @@ -4,43 +4,9 @@ import { useEffect, useRef } from 'react' import { motion, useAnimation, useInView } from 'motion/react' import { Button } from '@/components/ui/button' import { ArrowRight, Code2 } from 'lucide-react' +import { AnimatedBackground } from './AnimatedBackground' + -export const AnimatedBackground = () => { - return ( -
- - - - - - - - - {[...Array(20)].map((_, i) => ( - - ))} - - -
- ) -} export default function Hero() { const controls = useAnimation()