Add header and themes

This commit is contained in:
2024-05-08 22:50:44 +04:00
parent 9a3d900d1b
commit a634c194fe
19 changed files with 255 additions and 44 deletions

View File

@@ -0,0 +1,3 @@
export const GameCard = () => {
return <></>;
};

View File

@@ -0,0 +1,3 @@
import { GameCard } from "./gameCard";
export { GameCard };

View File

@@ -0,0 +1,3 @@
import { SchemeSwitch } from "./schemeSwitch";
export { SchemeSwitch };

View File

@@ -0,0 +1,17 @@
"use client";
import { SunIcon } from "@/shared/assets/icons";
import { useTheme } from "next-themes";
export const SchemeSwitch = () => {
const { theme, setTheme } = useTheme();
return (
<>
<SunIcon
className="mr-5 h-8 w-8 cursor-pointer"
onClick={() => setTheme(theme == "light" ? "dark" : "light")}
/>
</>
);
};