Skip to content

Commit

Permalink
cleaned up nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebstep committed Mar 9, 2024
1 parent 8f55df3 commit 642f870
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 213 deletions.
1 change: 0 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"] });

Expand Down
36 changes: 26 additions & 10 deletions components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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() {
Expand Down Expand Up @@ -60,10 +67,10 @@ function ResponsiveAppBar() {
PATHFINDER
</Typography>

<Box sx={{ flexGrow: 1, display: { xs: "flex", md: "none" } }}>
<div className="flex flex-grow md:hidden">
<IconButton
size="large"
aria-label="account of current user"
aria-label="navigation menu"
aria-controls="menu-appbar"
aria-haspopup="true"
onClick={handleOpenNavMenu}
Expand Down Expand Up @@ -97,7 +104,7 @@ function ResponsiveAppBar() {
</MenuItem>
))}
</Menu>
</Box>
</div>
<SignpostIcon sx={{ display: { xs: "flex", md: "none" }, mr: 1 }} />
<Typography
variant="h5"
Expand All @@ -116,7 +123,16 @@ function ResponsiveAppBar() {
}}>
PATHFINDER
</Typography>
<Box sx={{ flexGrow: 1, display: { xs: "none", md: "flex" } }}>
<nav className="hidden md:flex space-x-2">
{navlinks.map(([title, url]) => (
<a
href={url}
className="rounded-lg px-2 py-1 text-slate-200 font-medium hover:bg-slate-200 hover:text-slate-800">
{title}
</a>
))}
</nav>
{/* <Box sx={{ flexGrow: 1, display: { xs: "none", md: "flex" } }}>
{pages.map((page) => (
<Button
key={page}
Expand All @@ -125,9 +141,9 @@ function ResponsiveAppBar() {
<Link href={`${page.toLowerCase()}`}>{page}</Link>
</Button>
))}
</Box>
</Box> */}

<Box sx={{ flexGrow: 0 }}>
{/* <Box sx={{ flexGrow: 0 }}>
<Tooltip title="Open settings">
<IconButton
onClick={handleOpenUserMenu}
Expand All @@ -138,7 +154,7 @@ function ResponsiveAppBar() {
/>
</IconButton>
</Tooltip>
{/* <Menu
<Menu
sx={{ mt: "45px" }}
id="menu-appbar"
anchorEl={anchorElUser}
Expand All @@ -160,8 +176,8 @@ function ResponsiveAppBar() {
<Typography textAlign="center">{setting}</Typography>
</MenuItem>
))}
</Menu> */}
</Box>
</Menu>
</Box> */}
</Toolbar>
</Container>
</AppBar>
Expand Down
202 changes: 0 additions & 202 deletions components/NewNav.tsx

This file was deleted.

0 comments on commit 642f870

Please sign in to comment.