mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 09:17:54 +00:00
Improve dark theme + move theme toggle in the navbar
This commit is contained in:
@@ -35,7 +35,7 @@ const AuthComponent = () => {
|
|||||||
socialLayout='horizontal'
|
socialLayout='horizontal'
|
||||||
socialButtonSize='xlarge'
|
socialButtonSize='xlarge'
|
||||||
socialColors={true}
|
socialColors={true}
|
||||||
className='p-5'
|
className='p-5 bg-neutral-content rounded-md'
|
||||||
/>
|
/>
|
||||||
</Container>
|
</Container>
|
||||||
</Auth.UserContextProvider>
|
</Auth.UserContextProvider>
|
||||||
|
|||||||
@@ -48,10 +48,6 @@ const Nav = (props) => {
|
|||||||
<a className='btn btn-ghost btn-sm'>Pricing</a>
|
<a className='btn btn-ghost btn-sm'>Pricing</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href='/'>
|
|
||||||
<a className='btn btn-ghost btn-sm'>About</a>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href='/contact'>
|
<Link href='/contact'>
|
||||||
<a className='btn btn-ghost btn-sm'>Contact</a>
|
<a className='btn btn-ghost btn-sm'>Contact</a>
|
||||||
</Link>
|
</Link>
|
||||||
@@ -67,7 +63,7 @@ const Nav = (props) => {
|
|||||||
<a className='btn btn-primary btn-sm'>Login</a>
|
<a className='btn btn-primary btn-sm'>Login</a>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
<ThemeToggle />
|
<ThemeToggle/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const ThemeToggle = () => {
|
|||||||
}, [activeTheme]);
|
}, [activeTheme]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button className='flex' onClick={() => setActiveTheme(inactiveTheme)}>
|
<button className='flex ml-3' onClick={() => setActiveTheme(inactiveTheme)}>
|
||||||
{activeTheme === theme.secondary ? (
|
{activeTheme === theme.secondary ? (
|
||||||
<HiOutlineSun className='m-auto text-xl hover:text-accent' />
|
<HiOutlineSun className='m-auto text-xl hover:text-accent' />
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user