Skip to content

Commit

Permalink
Changed the navigation bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
originalnicodr committed Dec 16, 2023
1 parent 22d7462 commit 7c1717d
Showing 1 changed file with 11 additions and 38 deletions.
49 changes: 11 additions & 38 deletions components/global/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@ import Link from "next/link";
import { useRouter } from "next/router";
import React from "react";
import { Container } from "./container";
import CSS from 'csstype';

export const Navigation = () => {
const router = useRouter();

const items = [
{
title: "Home",
href: "/",
},
{
title: "Data",
href: "/data",
},
];
const aYearofFramedStyle: CSS.Properties = {
fontWeight: 'bold',
//textAlign: 'center',
fontSize: '20px',
opacity: '90%',
};

return (
<nav className="w-full fixed top-0 py-3 bg-black/30 backdrop-blur-lg border-b border-b-white/10 shadow-md text-white z-50">
<Container>
<ul className="flex items-center">
<li>
<Link
href="https://framedsc.com/HallOfFramed/"
href="https://framedsc.com/"
target="_blank"
rel="noopener noreferrer"
>
Expand All @@ -45,33 +42,9 @@ export const Navigation = () => {
</div>
</Link>
</li>
{items.map((item, index) => (
<li key={index}>
<strong>
<Link
className={`
hover:bg-white
hover:bg-opacity-10
hover:text-white
px-4
py-2
${index === 0 ? "rounded-l-md" : ""}
${index === items.length - 1 ? "rounded-r-md" : ""}
transition-all
duration-300
ease-in-out
${
router.pathname === item.href
? "bg-white bg-opacity-20"
: ""
}`}
href={item.href}
>
{item.title}
</Link>
</strong>
</li>
))}
<a href= "/" style={ aYearofFramedStyle }>
A Year of FRAMED
</a>
</ul>
</Container>
</nav>
Expand Down

0 comments on commit 7c1717d

Please sign in to comment.