fix: navbar styling on lightmode (#683)

This commit is contained in:
Soyoka 2025-05-26 21:08:29 +09:00 committed by GitHub
parent 74ffad6a18
commit 3af7bd3079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,10 +53,14 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
}, [token]) }, [token])
return ( return (
<div className='fixed top-0 left-0 right-0 z-50'> <div className='fixed left-0 right-0 top-0 z-50'>
<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 ${ <nav
dev ? 'bg-discord-blurple dark:bg-discord-black' : 'bg-discord-blurple/30 dark:bg-discord-black/30' 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 ${
} lg:absolute`}> dev
? 'bg-discord-blurple dark:bg-discord-black'
: 'bg-discord-blurple/90 dark:bg-discord-black/30'
} lg:absolute`}
>
<div className='container mx-auto flex flex-wrap items-center justify-between px-4'> <div className='container mx-auto flex flex-wrap items-center justify-between px-4'>
<div className='relative flex w-full justify-between lg:w-auto lg:justify-start'> <div className='relative flex w-full justify-between lg:w-auto lg:justify-start'>
<Link <Link
@ -70,13 +74,7 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
<i className='fas fa-tools mr-1' /> DEVELOPERS <i className='fas fa-tools mr-1' /> DEVELOPERS
</> </>
) : ( ) : (
<Image <Image src={Logo} alt='Koreanbots' width={100} height={100} className='h-10 w-10' />
src={Logo}
alt='Koreanbots'
width={100}
height={100}
className='h-10 w-10'
/>
)} )}
</Link> </Link>
<button <button