diff --git a/app/layout.tsx b/app/layout.tsx index b8c0162..a0aeecc 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,7 +4,6 @@ import { Inter } from "next/font/google"; import type { Metadata } from "next"; import Navigation from "@/components/Navigation"; import Footer from "@/components/Footer"; -import { Header } from "@/components/NewNav"; const inter = Inter({ subsets: ["latin"] }); diff --git a/components/Navigation.tsx b/components/Navigation.tsx index 6c55d49..7edf813 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -2,7 +2,6 @@ import * as React from "react"; import AppBar from "@mui/material/AppBar"; -import Box from "@mui/material/Box"; import Toolbar from "@mui/material/Toolbar"; import IconButton from "@mui/material/IconButton"; import Typography from "@mui/material/Typography"; @@ -16,7 +15,15 @@ import MenuItem from "@mui/material/MenuItem"; import Link from "next/link"; import SignpostIcon from "@mui/icons-material/Signpost"; +const navlinks = [ + ["Home", "/"], + ["SAGE", "/sage"], + ["GUARD", "/guard"], + ["ARTISAN", "/artisan"], + ["About us", "/about"], +]; const pages = ["SAGE", "GUARD", "ARTISAN", "About"]; + const settings = ["Profile", "Account", "Dashboard", "Logout"]; function ResponsiveAppBar() { @@ -60,10 +67,10 @@ function ResponsiveAppBar() { PATHFINDER - +
))} - +
PATHFINDER - + + {/* {pages.map((page) => ( ))} - + */} - + {/* - {/* {setting} ))} - */} - + + */} diff --git a/components/NewNav.tsx b/components/NewNav.tsx deleted file mode 100644 index ac2967b..0000000 --- a/components/NewNav.tsx +++ /dev/null @@ -1,202 +0,0 @@ -import { useState } from "react"; - -// import ArrowNarrowRightIcon from '~icons/tabler/arrow-narrow-right.tsx'; -import MenuIcon from "@mui/icons-material/Menu"; - -/** Links */ -interface NavLink { - title: string; - href: string; - children?: NavLink[]; -} - -const links: NavLink[] = [ - { - title: "Home", - href: "/", - }, - { - title: "Services", - href: "#", - children: [ - { - title: "Web development", - href: "/services/web-development", - }, - { - title: "Digital marketing", - href: "/services/digital-marketing", - }, - { - title: "Brand strategy", - href: "/services/brand-strategy", - }, - ], - }, - { - title: "About", - href: "/about", - }, - { - title: "Contact", - href: "/contact", - }, -]; - -/** Logo */ -function Logo() { - return ( -
- Tailwind{" "} - Snippets -
- ); -} - -/** NavLink */ -interface NavLinkProps extends React.HTMLProps { - currentPath?: string; -} - -function NavLink({ children, className, currentPath, href }: NavLinkProps) { - return ( - - {children} - - ); -} - -/** Navigation */ -interface NavigationProps { - mobile?: boolean; - navLinks?: NavLink[]; -} - -function NewNavigation({ mobile = false, navLinks = [] }: NavigationProps) { - const [mobileNavigationOpened, setMobileNavigationOpened] = useState(false); - - const navClassName = ` - bg-white text-base dark:bg-slate-900 - ${ - mobile - ? `transition transform -right-1/2 fixed top-0 z-20 h-full w-1/2 overflow-y-auto py-4 sm:hidden ${ - mobileNavigationOpened ? "-translate-x-full shadow-2xl" : "" - }` - : "hidden sm:block" - } - `; - const navListClassName = ` - flex - ${mobile ? "flex-col space-y-2" : "items-center space-x-2"} - `; - const navListItemClassName = ` - group relative - ${mobile ? "w-full overflow-x-visible text-right" : ""} - `; - const navListLinkClassName = mobile ? "mx-4" : ""; - const navChildrenClassName = ` - delay-75 ease-in-out space-y-2 - ${ - mobile - ? "h-0 overflow-y-hidden bg-slate-50 px-4 py-0 transition-all group-hover:h-full group-hover:py-4 dark:bg-slate-800" - : "invisible absolute z-30 rounded-lg border border-slate-50 bg-white p-4 opacity-0 shadow-xl transition-opacity group-hover:visible group-hover:opacity-100 dark:bg-slate-900 dark:border-slate-800" - } - `; - - const closeMobileNavigation = () => setMobileNavigationOpened(false); - - return ( - <> - {mobile && ( - - )} - - {mobile && mobileNavigationOpened && ( -
- )} - - - - ); -} - -/** Header */ -interface HeaderProps { - navLinks?: NavLink[]; -} - -export function Header({ navLinks = links }: HeaderProps) { - return ( -
- - - - - -
- ); -} - -/** Page */ -export default function RightNavigation() { - return ( -
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis id varius turpis. - Nullam ut tincidunt tellus. Nunc fermentum odio vitae turpis fermentum vulputate. - Morbi vel malesuada felis. Fusce vestibulum nibh id erat volutpat ullamcorper - vitae sed neque. Curabitur vel lobortis metus, at mollis turpis. -

-
- ); -}