Skip to content

Commit

Permalink
darkmode styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sheep committed Nov 19, 2023
1 parent 7cfb7cd commit 7a19194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions app/components/icon.tsx

This file was deleted.

5 changes: 2 additions & 3 deletions app/components/theme-switch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";
import React from "react";
import { useTheme } from "next-themes";
import iconSwitch from "./icon";

const Button = () => {
const { systemTheme, theme, setTheme } = useTheme();
Expand All @@ -10,9 +9,9 @@ const Button = () => {
return (
<button
onClick={() => (theme == "dark" ? setTheme("light") : setTheme("dark"))}
className="bg-gray-800 dark:bg-gray-50 hover:bg-gray-600 dark:hover:bg-gray-300 transition-all duration-100 text-white dark:text-gray-800 text-sm md:text-sm rounded-lg "
className="px-1 bg-gray-800 dark:bg-gray-50 hover:bg-gray-600 dark:hover:bg-gray-300 transition-all duration-100 text-white dark:text-gray-800 text-sm md:text-sm rounded-lg "
>
{iconSwitch(theme)}
{theme === "dark" ? "🌞" : "🌕"}
</button>
);
};
Expand Down

0 comments on commit 7a19194

Please sign in to comment.