From f100d1afa9a4779d5aac671db20605c647ece3d2 Mon Sep 17 00:00:00 2001 From: datalore Date: Thu, 16 Nov 2023 02:59:51 +0100 Subject: [PATCH] Resorted themes and added icon for dark themes --- README.md | 1 + src/app/components/darkicon.tsx | 5 +++++ src/app/components/themeswitcher.tsx | 11 ++++++----- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 src/app/components/darkicon.tsx diff --git a/README.md b/README.md index f98044d..e2a0799 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ This is a Buzzword Bingo generator for IT buzzwords, based on [Next.js](https://nextjs.org/), [TailwindCSS](https://tailwindcss.com/) and [DaisyUI](https://daisyui.com/). +Icons: [Iconify](https://icon-sets.iconify.design/ic/) ## Getting Started diff --git a/src/app/components/darkicon.tsx b/src/app/components/darkicon.tsx new file mode 100644 index 0000000..76cb0d1 --- /dev/null +++ b/src/app/components/darkicon.tsx @@ -0,0 +1,5 @@ +export default function DarkIcon(){ + return( + + ); +} diff --git a/src/app/components/themeswitcher.tsx b/src/app/components/themeswitcher.tsx index df12b99..4c7c467 100644 --- a/src/app/components/themeswitcher.tsx +++ b/src/app/components/themeswitcher.tsx @@ -1,6 +1,7 @@ "use client"; -import React from 'react'; +import React from "react"; +import DarkIcon from "./darkicon"; export default function ThemeSwitcher(){ const [theme, setTheme] = React.useState("dark"); @@ -10,14 +11,14 @@ export default function ThemeSwitcher(){ return( ); }