import { m, Variants } from "framer-motion";
import { useRouter } from "next/router";
import Link from "next/link";
function NavBar() {
return (
);
}
const NavSvgWrap = (props: { children: React.ReactNode }) => {
return (
{props.children}
);
};
const DashIcon = () => {
return (
);
};
const ExitIcon = () => {
return (
);
};
const RankingIcon = () => {
return (
);
};
const ActiveLink = (props: { href: string; children: React.ReactNode }) => {
const router = useRouter();
let styling = "text-white";
console.log(router.pathname);
console.log(props.href);
if (router.pathname === props.href) {
styling = "text-[#a855f7]";
}
return (
{props.children}
);
};
const navContainerVariants: Variants = {
initial: {
opacity: 0,
x: -100,
},
animate: {
opacity: 1,
x: 0,
transition: {
delay: 0.5,
duration: 1.0,
type: "spring",
bounce: 0.5,
stiffness: 80,
delayChildren: 1.25,
staggerChildren: 0.25,
},
},
};
const navStripVariants: Variants = {
initial: {
opacity: 0,
y: 100,
},
animate: {
opacity: 1,
y: 0,
transition: {
duration: 1.0,
type: "spring",
bounce: 0.5,
stiffness: 80,
staggerChildren: 0.25,
delayChildren: 0.1,
},
},
};
const navIconVariants: Variants = {
initial: {
opacity: 0,
},
animate: {
opacity: 1,
transition: {
duration: 1.0,
type: "spring",
bounce: 0.5,
stiffness: 80,
},
},
};
export default NavBar;