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

View file

@ -1,21 +1,16 @@
import "./globals.css";
import "beercss";
import "material-dynamic-colors";
import { NavigationRail } from "@/components/NavigationRail";
import {App} from "@/app/App"
export const metadata = {
title: "AniX",
description: "Unofficial web app for anixart",
description: "Неофициальное веб приложение для anixart",
};
export default function RootLayout({ children }) {
export default async function RootLayout({ children }) {
return (
<html lang="en">
<body>
<NavigationRail />
<main className="responsive">{children}</main>
</body>
<html lang="ru">
<App>{children}</App>
</html>
);
}