Skip to content

Commit

Permalink
Added ThemeButton, updated Heading styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawal-793 committed May 6, 2023
1 parent 96b656c commit 308dbe3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
import { Bars3Icon } from "@heroicons/react/24/solid"
import Link from "next/link"

import ThemeButton from "./ThemeButton"

type Props = {
handleClick: Function,
isNavOpen: boolean
}


const Navbar = ({ handleClick, isNavOpen }: Props) => {
return (
<div className="max-w-screen-2xl mx-auto flex justify-between items-center dark:text-gray-100">
<Link href="/" prefetch={false} className="font-serif text-2xl sm:text-4xl flex-grow ">
<h1>
The {" "}<span className="underline decoration-orange-400">DEV</span>{" "} News
<Link href="/" prefetch={false} className="font-serif cursor-default">
<h1 className="cursor-pointer text-2xl sm:text-4xl">
The {" "}<span className="underline decoration-orange-400 text-[2.75rem]">DEV</span>{" "} News
</h1>
</Link>
<button className="md:hidden" onClick={() => handleClick()}>
{!isNavOpen && <Bars3Icon className="w-6 md:w-8 h-6 sm:h-8 cursor-pointer dark:text-gray-100" />}
</button>
<button className="hidden md:block">
themeIcon
</button>
<div className="hidden md:block">
<ThemeButton />
</div>
</div>
)
}
Expand Down

0 comments on commit 308dbe3

Please sign in to comment.