feat: boards on desktop as on mobile

This commit is contained in:
2025-08-18 11:35:52 +04:00
parent 49b1a235be
commit 83432b3f33
15 changed files with 117 additions and 255 deletions

View File

@ -1,5 +1,4 @@
.container {
border-width: 0;
@mixin dark {
background-color: var(--mantine-color-dark-7);
}

View File

@ -7,7 +7,6 @@ import {
useComputedColorScheme,
useMantineColorScheme,
} from "@mantine/core";
import SmallPageBlock from "@/components/layout/SmallPageBlock/SmallPageBlock";
import style from "./ColorSchemeToggle.module.css";
export function ColorSchemeToggle() {
@ -21,23 +20,21 @@ export function ColorSchemeToggle() {
};
return (
<SmallPageBlock>
<ActionIcon
onClick={toggleColorScheme}
variant="default"
size="xl"
radius="lg"
aria-label="Toggle color scheme"
className={style.container}>
<IconSun
className={classNames(style.icon, style.light)}
stroke={1.5}
/>
<IconMoon
className={classNames(style.icon, style.dark)}
stroke={1.5}
/>
</ActionIcon>
</SmallPageBlock>
<ActionIcon
onClick={toggleColorScheme}
variant="default"
size="xl"
radius="lg"
aria-label="Toggle color scheme"
className={style.container}>
<IconSun
className={classNames(style.icon, style.light)}
stroke={1.5}
/>
<IconMoon
className={classNames(style.icon, style.dark)}
stroke={1.5}
/>
</ActionIcon>
);
}