Add marketing page and layout changes

This commit is contained in:
KMKoushik
2024-04-04 09:09:15 +11:00
parent bbc64b5392
commit e1b2f64d57
29 changed files with 1601 additions and 57 deletions

View File

@@ -0,0 +1,23 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import React from "react";
export const NavButton: React.FC<{
href: string;
children: React.ReactNode;
}> = ({ href, children }) => {
const pathname = usePathname();
const isActive = pathname === href;
return (
<Link
href={href}
className={`flex items-center gap-3 rounded-lg px-3 py-2 transition-all hover:text-primary ${isActive ? " bg-secondary" : "text-muted-foreground"}`}
>
{children}
</Link>
);
};