Skip to content

Commit

Permalink
subtle things changed
Browse files Browse the repository at this point in the history
bug hanging to solve
  • Loading branch information
yunho7687 committed Mar 22, 2024
1 parent cb01027 commit b9103af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ export default function NavBar() {
/>
</Link>
{/* Primary nav link container */}
<div className="max-w-[900px] grow h-full items-center text-end">
<div className="h-full max-w-[900px] grow items-center text-end">
<div
className={`flex items-center justify-center lg:visible lg:static lg:block lg:h-full lg:w-full ${
hamburgerMenuOpen
? "fixed bottom-0 left-0 right-0 top-0 h-full bg-white"
: "hidden"
}`}
>
<ul className=" flex relative h-full w-full flex-col divide-starick-olive font-semibold lg:flex-row after:bg-starick-olive after:absolute after:w-1 after:h-5 after:top-[36%] after:right- ">
<ul className=" after:right- relative flex h-full w-full flex-col divide-starick-olive font-semibold after:absolute after:top-[36%] after:h-5 after:w-1 after:bg-starick-olive lg:flex-row ">
{primaryNav.map((link) => (
<NavItem link={link} key={link.href} />
))}
Expand Down
12 changes: 6 additions & 6 deletions src/components/Header/NavBar/nav-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const NavItem = ({ link }: Props) => {
<li
onMouseEnter={() => enterHandler()}
onMouseLeave={() => leaveHandler()}
className={`relative lg:flex lg:grow items-center justify-center before:h-1 hover:before:block lg:h-full
className={`relative items-center justify-center before:h-1 hover:before:block lg:flex lg:h-full lg:grow
lg:before:absolute lg:before:right-0 lg:before:top-3 lg:before:hidden lg:before:w-full lg:before:bg-starick-green lg:before:content-[''] `}
>
{/* button handles click action */}
Expand Down Expand Up @@ -68,26 +68,26 @@ const NavItem = ({ link }: Props) => {
<div
className={`lg:grid lg:grid-cols-${
link.submenu.length > 3 ? "3" : "2"
} gap-3 lg:py-4 lg:ml-8 lg:px-12`}
} gap-3 lg:ml-8 lg:px-12 lg:py-4`}
>
{link.submenu.map((sublink) => (
<li
className="lg:relative lg:transition-colors lg:p-2 lg:before:absolute lg:before:-left-0 before:top-4 before:h-16 before:w-0.5 lg:before:bg-starick-olive before:content-[''] hover:bg-starick-olive before:hover:hidden "
className="before:top-4 before:h-16 before:w-0.5 before:content-[''] hover:bg-starick-olive before:hover:hidden lg:relative lg:p-2 lg:transition-colors lg:before:absolute lg:before:-left-0 lg:before:bg-starick-olive "
key={sublink.href}
>
<Link
href={sublink.href}
className="relative lg:h-20 lg:pl-3.5 text-starick-black lg:flex lg:items-center lg:py-0.5"
className="relative text-starick-black lg:flex lg:h-20 lg:items-center lg:py-0.5 lg:pl-3.5"
>
<Image
src={AboriginalFlag}
alt="Aboriginal Flag"
width={40}
height={40}
className="lg:mx-3 hidden lg:block "
className="hidden lg:mx-3 lg:block "
/>
<span className="text-sm ">{sublink.label}</span>
<BiSolidChevronRightSquare className=" hidden lg:block ml-4 shrink-0 text-2xl text-starick-green" />
<BiSolidChevronRightSquare className=" ml-4 hidden shrink-0 text-2xl text-starick-green lg:block" />
</Link>
</li>
))}
Expand Down

0 comments on commit b9103af

Please sign in to comment.