Improve dark theme + move theme toggle in the navbar

This commit is contained in:
Michael
2021-06-22 15:21:50 +02:00
parent 38bb466ddb
commit 89c7339ea6
3 changed files with 3 additions and 7 deletions

View File

@@ -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>

View File

@@ -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/>
</> </>
); );

View File

@@ -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' />
) : ( ) : (