diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index f091abb..a6c4a81 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -4,6 +4,9 @@ import MorphCode from "@/components/Morph"; import { NewspaperIcon, RocketIcon } from "lucide-react"; import Link from "next/link"; import { useEffect, useRef, useState } from "react"; +import { motion, Variants } from "framer-motion"; + +const MotionLink = motion(Link); export const mistShowcase = [ { @@ -66,6 +69,33 @@ public struct Player extends Entity { }, ]; +const container: Variants = { + hidden: {}, + show: { + transition: { + staggerChildren: 0.2, + delayChildren: 0.2, + }, + }, +}; + +const item: Variants = { + hidden: { + opacity: 0, + y: 12, + filter: "blur(10px)", + }, + show: { + opacity: 1, + y: 0, + filter: "blur(0px)", + transition: { + duration: 0.6, + ease: "easeOut" as const, + }, + }, +}; + // Sub-component to handle individual section observation function ShowSection({ show, @@ -91,34 +121,46 @@ function ShowSection({ }, [show.code, setActiveCode]); return ( -
-

- {show.title} -

-

{show.description}

- {show.cta && ( -
- - - Get Started - + + + + {show.title} + - - - View Blog - -
- )} -
+ + {show.description} + + {show.cta && ( + + + + Get Started + + + + + View Blog + + + )} + + ); }