feat: fix responsive layout, add theme switcher

This commit is contained in:
2024-08-17 00:21:23 +07:00
parent 43af9c8658
commit f503b261f5
22 changed files with 349 additions and 100 deletions
+3 -1
View File
@@ -1,9 +1,10 @@
import { PageContextProvider } from "@/context/page-context";
import Router from "./router";
import "./styles.css";
import { Toaster } from "sonner";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { useState } from "react";
import ThemeProvider from "@/components/containers/theme-provider";
import "./styles.css";
const App = () => {
const [queryClient] = useState(() => new QueryClient());
@@ -14,6 +15,7 @@ const App = () => {
<Router />
</QueryClientProvider>
<Toaster richColors />
<ThemeProvider />
</PageContextProvider>
);
};
+16
View File
@@ -0,0 +1,16 @@
// https://daisyui.com/docs/themes/
export const themes = [
"pastel",
"dark",
"dracula",
"cupcake",
"dim",
"night",
"nord",
"corporate",
"valentine",
"winter",
] as const;
export type Themes = (typeof themes)[number];