feat: add theming
This commit is contained in:
@@ -1,24 +1,35 @@
|
||||
import { SignedIn, SignedOut, UserButton } from '@clerk/nextjs';
|
||||
import Link from 'next/link';
|
||||
import ThemeButton from './ThemeButton';
|
||||
|
||||
export default function Navbar() {
|
||||
return (
|
||||
<nav className='flex items-center justify-between p-5 shadow-md'>
|
||||
<nav className='flex items-center justify-between p-5 shadow-md dark:bg-secondary-gray'>
|
||||
<ul className='flex items-center gap-4'>
|
||||
<li>
|
||||
<Link href='/'>
|
||||
<Link
|
||||
href='/'
|
||||
className='italic'
|
||||
>
|
||||
conve
|
||||
<span className='font-bold italic text-4xl text-primary-accent'>
|
||||
X
|
||||
</span>
|
||||
<span className='font-bold text-4xl text-primary-accent'>X</span>
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
<ul className='flex items-center gap-4'>
|
||||
<li>
|
||||
<ThemeButton />
|
||||
</li>
|
||||
<SignedIn>
|
||||
<li>
|
||||
<UserButton
|
||||
showName
|
||||
appearance={{
|
||||
elements: {
|
||||
card: 'dark:bg-secondary-gray [&_*]:dark:text-white',
|
||||
userButtonTrigger:
|
||||
'border-solid border-2 border-primary-accent focus:shadow-none',
|
||||
},
|
||||
}}
|
||||
userProfileMode='navigation'
|
||||
userProfileUrl='/account'
|
||||
signInUrl='/login'
|
||||
|
||||
Reference in New Issue
Block a user