Skip to content

Commit

Permalink
improve navbar styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Mar 14, 2024
1 parent 500953b commit 5d8a7b6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { useCallback, useRef, useState } from "react";
import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Bars3Icon, BugAntIcon } from "@heroicons/react/24/outline";
import { ArrowsRightLeftIcon, Bars3Icon, BugAntIcon, CircleStackIcon, ScaleIcon } from "@heroicons/react/24/outline";
import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth";
import { useOutsideClick } from "~~/hooks/scaffold-eth";

Expand All @@ -15,26 +15,29 @@ type HeaderMenuLink = {
};

export const menuLinks: HeaderMenuLink[] = [
{
label: "Home",
href: "/",
},
// {
// label: "Home",
// href: "/",
// },
{
label: "Pools",
href: "/pools",
icon: <ScaleIcon className="h-5 w-5" />,
},
{
label: "Router",
href: "/router",
icon: <ArrowsRightLeftIcon className="h-5 w-5" />,
},
{
label: "Subgraph",
href: "/subgraph",
icon: <CircleStackIcon className="h-5 w-5" />,
},
{
label: "Debug Contracts",
href: "/debug",
icon: <BugAntIcon className="h-4 w-4" />,
icon: <BugAntIcon className="h-5 w-5" />,
},
];

Expand All @@ -52,7 +55,7 @@ export const HeaderMenuLinks = () => {
passHref
className={`${
isActive ? "bg-secondary shadow-md" : ""
} hover:bg-secondary hover:shadow-md focus:!bg-secondary active:!text-neutral py-1.5 px-3 text-sm rounded-full gap-2 grid grid-flow-col`}
} hover:bg-secondary hover:shadow-md focus:!bg-secondary active:!text-neutral py-1.5 px-3 text-lg rounded-full gap-2 grid grid-flow-col`}
>
{icon}
<span>{label}</span>
Expand All @@ -76,7 +79,7 @@ export const Header = () => {
);

return (
<div className="sticky lg:static top-0 navbar bg-base-100 min-h-0 flex-shrink-0 justify-between z-20 shadow-md shadow-secondary px-0 sm:px-2">
<div className="sticky lg:static top-0 navbar bg-base-100 min-h-0 flex-shrink-0 justify-between z-20 px-0 sm:px-2">
<div className="navbar-start w-auto lg:w-1/2">
<div className="lg:hidden dropdown" ref={burgerMenuRef}>
<label
Expand Down Expand Up @@ -105,8 +108,7 @@ export const Header = () => {
<Image alt="SE2 logo" className="cursor-pointer" fill src="/logo.svg" />
</div>
<div className="flex flex-col">
<span className="font-bold leading-tight">Scaffold-Balancer</span>
<span className="text-xs">Guides & Tools</span>
<span className="font-bold leading-tight text-2xl">Scaffold-Balancer</span>
</div>
</Link>
<ul className="hidden lg:flex lg:flex-nowrap menu menu-horizontal px-1 gap-2">
Expand Down

0 comments on commit 5d8a7b6

Please sign in to comment.