Compare commits
1 Commits
f68e290f58
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| d132b4971e |
@@ -1,8 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { AppShell, Burger, Button, Group, Skeleton, useMantineColorScheme } from "@mantine/core";
|
import { ActionIcon, AppShell, Burger, Flex, Group, Skeleton, useMantineColorScheme } from "@mantine/core";
|
||||||
import { useDisclosure } from "@mantine/hooks";
|
import { useDisclosure } from "@mantine/hooks";
|
||||||
import { LuSun } from "react-icons/lu";
|
import { LuMoon, LuSun } from "react-icons/lu";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [opened, { toggle }] = useDisclosure();
|
const [opened, { toggle }] = useDisclosure();
|
||||||
@@ -14,10 +14,22 @@ export default function Home() {
|
|||||||
padding="md"
|
padding="md"
|
||||||
>
|
>
|
||||||
<AppShell.Header>
|
<AppShell.Header>
|
||||||
|
<Flex h="100%" px="md" justify="space-between" align="center">
|
||||||
<Group h="100%" px="md">
|
<Group h="100%" px="md">
|
||||||
<Burger opened={opened} onClick={toggle} size="sm" hiddenFrom="sm" />
|
<Burger opened={opened} onClick={toggle} size="sm" hiddenFrom="sm" />
|
||||||
<div>Logo</div>
|
<div>Logo</div>
|
||||||
</Group>
|
</Group>
|
||||||
|
<ActionIcon
|
||||||
|
onClick={() => {
|
||||||
|
setColorScheme(colorScheme === "light" ? "dark" : "light");
|
||||||
|
}}
|
||||||
|
variant="default"
|
||||||
|
size="md"
|
||||||
|
aria-label="Toggle color scheme"
|
||||||
|
>
|
||||||
|
{colorScheme === "light" ? <LuMoon /> : <LuSun />}
|
||||||
|
</ActionIcon>
|
||||||
|
</Flex>
|
||||||
</AppShell.Header>
|
</AppShell.Header>
|
||||||
<AppShell.Navbar p="md">
|
<AppShell.Navbar p="md">
|
||||||
{Array(15)
|
{Array(15)
|
||||||
@@ -25,13 +37,6 @@ export default function Home() {
|
|||||||
.map((_, index) => (
|
.map((_, index) => (
|
||||||
<Skeleton key={index} h={28} mt="sm" animate={false} />
|
<Skeleton key={index} h={28} mt="sm" animate={false} />
|
||||||
))}
|
))}
|
||||||
<Button
|
|
||||||
onClick={() => {
|
|
||||||
setColorScheme(colorScheme === "light" ? "dark" : "light");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<LuSun />
|
|
||||||
</Button>
|
|
||||||
</AppShell.Navbar>
|
</AppShell.Navbar>
|
||||||
<AppShell.Main>Main</AppShell.Main>
|
<AppShell.Main>Main</AppShell.Main>
|
||||||
<AppShell.Footer>
|
<AppShell.Footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user