frontend: add color theme & theme switcher

This commit is contained in:
Kentai Radiquum 2024-04-19 22:58:45 +05:00
parent 84b13a2c80
commit b8878c4fb8
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
7 changed files with 192 additions and 19 deletions

21
frontend/app/App.jsx Normal file
View file

@ -0,0 +1,21 @@
"use client";
import { NavigationRail } from "@/app/components/NavigationRail/NavigationRail";
import { useThemeStore } from "./store/theme-store";
import { useEffect } from "react";
// import { useStore } from "./store/app-store";
export const App = (props) => {
const themeStore = useThemeStore();
useEffect(() => {
themeStore.checkTheme();
}, []);
return (
<body className={themeStore.theme}>
<NavigationRail />
<main className="responsive">{props.children}</main>
</body>
);
};