feat: reposition ThemeSwitcher component in Header and enhance button styling
This commit is contained in:
parent
482b43eaf4
commit
65cc556080
@ -35,7 +35,6 @@ export const Header = () => {
|
||||
<Navbar className="mb-2">
|
||||
<NavbarBrand>
|
||||
<p className="font-bold text-inherit">Toogether</p>
|
||||
<ThemeSwitcher />
|
||||
</NavbarBrand>
|
||||
<NavbarContent as="div" justify="end">
|
||||
<Dropdown placement="bottom-end">
|
||||
@ -66,6 +65,7 @@ export const Header = () => {
|
||||
</DropdownItem>
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
<ThemeSwitcher />
|
||||
</NavbarContent>
|
||||
</Navbar>
|
||||
);
|
||||
|
@ -14,7 +14,7 @@ export const ThemeSwitcher = () => {
|
||||
|
||||
return (
|
||||
<button
|
||||
className={`fixed bottom-4 right-4 rounded-lg ${theme === "light" ? "bg-black" : "bg-white"
|
||||
className={`backdrop-blur-sm rounded-lg ${theme === "light" ? "bg-black/10" : "bg-white/10"
|
||||
} p-2`}
|
||||
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user