Skip to content

Commit 3af7bd3

Browse files
authored
fix: navbar styling on lightmode (#683)
1 parent 74ffad6 commit 3af7bd3

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

components/Navbar.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
5151
setUserCache(null)
5252
}
5353
}, [token])
54-
54+
5555
return (
56-
<div className='fixed top-0 left-0 right-0 z-50'>
57-
<nav className={`fixed top-0 z-40 flex w-full flex-wrap items-center justify-between px-2 py-2 text-gray-100 transition-colors duration-300 backdrop-blur-sm ${
58-
dev ? 'bg-discord-blurple dark:bg-discord-black' : 'bg-discord-blurple/30 dark:bg-discord-black/30'
59-
} lg:absolute`}>
56+
<div className='fixed left-0 right-0 top-0 z-50'>
57+
<nav
58+
className={`fixed top-0 z-40 flex w-full flex-wrap items-center justify-between px-2 py-2 text-gray-100 backdrop-blur-sm transition-colors duration-300 ${
59+
dev
60+
? 'bg-discord-blurple dark:bg-discord-black'
61+
: 'bg-discord-blurple/90 dark:bg-discord-black/30'
62+
} lg:absolute`}
63+
>
6064
<div className='container mx-auto flex flex-wrap items-center justify-between px-4'>
6165
<div className='relative flex w-full justify-between lg:w-auto lg:justify-start'>
6266
<Link
@@ -65,19 +69,13 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
6569
dev ? 'dark:text-koreanbots-blue ' : ''
6670
}logofont text-large whitespace-no-wrap mr-4 inline-block py-2 font-semibold uppercase leading-relaxed hover:text-gray-300 sm:text-2xl`}
6771
>
68-
{dev ? (
69-
<>
70-
<i className='fas fa-tools mr-1' /> DEVELOPERS
71-
</>
72-
) : (
73-
<Image
74-
src={Logo}
75-
alt='Koreanbots'
76-
width={100}
77-
height={100}
78-
className='h-10 w-10'
79-
/>
80-
)}
72+
{dev ? (
73+
<>
74+
<i className='fas fa-tools mr-1' /> DEVELOPERS
75+
</>
76+
) : (
77+
<Image src={Logo} alt='Koreanbots' width={100} height={100} className='h-10 w-10' />
78+
)}
8179
</Link>
8280
<button
8381
className='block cursor-pointer rounded border border-solid border-transparent bg-transparent px-3 py-1 text-xl leading-none outline-none focus:outline-none dark:text-gray-200 lg:hidden'

0 commit comments

Comments
 (0)