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">
|
<Navbar className="mb-2">
|
||||||
<NavbarBrand>
|
<NavbarBrand>
|
||||||
<p className="font-bold text-inherit">Toogether</p>
|
<p className="font-bold text-inherit">Toogether</p>
|
||||||
<ThemeSwitcher />
|
|
||||||
</NavbarBrand>
|
</NavbarBrand>
|
||||||
<NavbarContent as="div" justify="end">
|
<NavbarContent as="div" justify="end">
|
||||||
<Dropdown placement="bottom-end">
|
<Dropdown placement="bottom-end">
|
||||||
@ -66,6 +65,7 @@ export const Header = () => {
|
|||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
<ThemeSwitcher />
|
||||||
</NavbarContent>
|
</NavbarContent>
|
||||||
</Navbar>
|
</Navbar>
|
||||||
);
|
);
|
||||||
|
@ -14,7 +14,7 @@ export const ThemeSwitcher = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<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`}
|
} p-2`}
|
||||||
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user