diff --git a/components/Header.tsx b/components/Header.tsx index 00f04ad..6a0fd69 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -5,15 +5,19 @@ import Email from "@/components/ui/Email"; import Lottie from "lottie-react"; import {party} from "@/data"; import {useGlobalContext} from "@/context/GlobalProvider"; +import {motion} from "framer-motion"; const Header = () => { const {playPartyAnimation} = useGlobalContext(); return ( -
+ - {playPartyAnimation && ( )} -
+ {playPartyAnimation && ( + )} + ); }; diff --git a/components/ui/Email.tsx b/components/ui/Email.tsx index 27f637b..27330d6 100644 --- a/components/ui/Email.tsx +++ b/components/ui/Email.tsx @@ -1,5 +1,4 @@ "use client" -import {motion} from "framer-motion"; import {BiCheck, BiCopy} from "react-icons/bi"; import {useGlobalContext} from "@/context/GlobalProvider"; @@ -12,13 +11,12 @@ const Email = () => { setEmailCopied(true) } return ( - copyEmail()} initial={{opacity: 0, y: '1vh'}} - transition={{duration: .5, delay: .5, type: "spring", damping: 10, stiffness: 100}} - animate={{opacity: 1, y: 0}} - className="border cursor-pointer absolute right-5 top-5 border-gray-900 rounded-lg gap-1 flex justify-center items-center transition-all w-fit p-1 md:p-2 "> - {emailCopied ? () : ()} + ) }; diff --git a/components/ui/Footer.tsx b/components/ui/Footer.tsx index fb73c43..5935805 100644 --- a/components/ui/Footer.tsx +++ b/components/ui/Footer.tsx @@ -8,7 +8,7 @@ import {motion} from "framer-motion"; const Footer = () => { return (

Copyright diff --git a/components/ui/Logo.tsx b/components/ui/Logo.tsx index 2520b24..7bc585e 100644 --- a/components/ui/Logo.tsx +++ b/components/ui/Logo.tsx @@ -1,15 +1,15 @@ "use client" import React from 'react'; import Link from "next/link"; -import {motion} from "framer-motion"; + const Logo = () => { return ( - - +

+

NAD

MAL

- +
); };