Skip to content

Commit bf578f9

Browse files
authored
Merge pull request #181 from bronglil/Issue-171-restyle-navbar
Fix the Navbar style bugs.
2 parents bfb4f1a + 83aa6c3 commit bf578f9

2 files changed

Lines changed: 11715 additions & 6 deletions

File tree

src/components/navbar/Navbar.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function NavBar() {
4747
<div className="flex space-x-4 ">
4848
<a
4949
href="/"
50-
className="rounded-md bg-gray-900 pr-12 py-2 text-sm font-medium text-black dark:text-white hover:text-accent"
50+
className="rounded-md bg-gray-900 pr-12 py-2 text-lg font-semibold text-black dark:text-white hover:text-accent"
5151
>
5252
Content For Developers
5353

@@ -81,16 +81,16 @@ export default function NavBar() {
8181
</div>
8282

8383
<div className="hidden sm:ml-6 sm:block">
84-
<div className="flex items-center ">
85-
<button onClick={onClick} className="p-4">
84+
<div className="flex items-center space-x-4">
85+
<button onClick={onClick} className="p-4 hover:scale-105 transition-transform duration-200">
8686
<CgDarkMode
8787
className="h-6 w-6 fill-black dark:fill-white"
8888
aria-hidden="true"
8989
/>
9090
</button>
9191
<button
9292
type="button"
93-
className="rounded-full bg-gray-800 p-4 text-black hover:text-white focus:outline-none"
93+
className="rounded-full bg-gray-800 p-4 text-black hover:text-white focus:outline-none hover:scale-105 transition-transform duration-200"
9494
>
9595
<span className="sr-only">View notifications</span>
9696
<a href="https://github.com/mathcodes/contentfordevelopers">
@@ -105,7 +105,7 @@ export default function NavBar() {
105105
<Menu as="div" className="relative p-4">
106106
<div>
107107
<Menu.Button className="rounded-full bg-gray-100 p-1 text-gray-400 hover:text-black focus:outline-none">
108-
<HiMenu />
108+
<HiMenu className="h-5 w-5"/>
109109
</Menu.Button>
110110
</div>
111111
<Transition
@@ -117,7 +117,7 @@ export default function NavBar() {
117117
leaveFrom="transform opacity-100 scale-100"
118118
leaveTo="transform opacity-0 scale-95"
119119
>
120-
<Menu.Items className="absolute z-100 right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-black text-black dark:text-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
120+
<Menu.Items className="absolute right-0 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-black text-black dark:text-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" style={{ zIndex: 999 }}>
121121
<Menu.Item>
122122
{({ active }) => (
123123
<a

0 commit comments

Comments
 (0)