From 37fbc6ae25b988ade99e3a47d57ffe91e64859f8 Mon Sep 17 00:00:00 2001 From: DeathKaioken Date: Fri, 3 Oct 2025 19:56:36 +0200 Subject: [PATCH] beautify: added Light mode --- src/app/page.tsx | 98 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 66 insertions(+), 32 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index ef79253..216a745 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { Dialog, DialogPanel } from '@headlessui/react' -import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' +import { Bars3Icon, XMarkIcon, SunIcon, MoonIcon } from '@heroicons/react/24/outline' const navigation = [ { name: 'Shop', href: '/shop' }, @@ -13,18 +13,23 @@ const navigation = [ export default function Example() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false) + const [isDarkMode, setIsDarkMode] = useState(true) + + const toggleTheme = () => { + setIsDarkMode(!isDarkMode) + } return ( -
+
{navigation.map((item) => ( - + {item.name} ))}
-
- +
+ + Log in
- +
- Your Company + Profit Planet
-
+
{navigation.map((item) => ( {item.name} ))}
-
+
+ Log in @@ -102,7 +133,7 @@ export default function Example() {
-

+

Profit Planet

-

+

+ Building a Community that will bring change +

+

Profit Planet is a platform building a vibrant community where members access diverse services and products from within. Users enjoy benefits like cashback and discounts, fostering a smart, rewarding ecosystem.

@@ -153,7 +187,7 @@ export default function Example() { > Shop - + Login
@@ -166,7 +200,7 @@ export default function Example() { src="https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&h=528&q=80" className="aspect-2/3 w-full rounded-xl bg-gray-700/5 object-cover shadow-lg" /> -
+
@@ -176,7 +210,7 @@ export default function Example() { src="https://images.unsplash.com/photo-1485217988980-11786ced9454?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&h=528&q=80" className="aspect-2/3 w-full rounded-xl bg-gray-700/5 object-cover shadow-lg" /> -
+
-
+
@@ -194,7 +228,7 @@ export default function Example() { src="https://images.unsplash.com/photo-1670272504528-790c24957dda?ixlib=rb-4.0.3&ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&crop=left&w=400&h=528&q=80" className="aspect-2/3 w-full rounded-xl bg-gray-700/5 object-cover shadow-lg" /> -
+
-
+