From a1c5e9bcc9bf039cf531085628a0a1acbdc9375c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:40:41 +0000 Subject: [PATCH] Add Home and Settings tabs Co-Authored-By: Claude Opus 4.5 --- src/app/page.tsx | 148 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 120 insertions(+), 28 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 7a7cb9a..492061e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,15 @@ 'use client'; +import { useState } from 'react'; import { Icon } from '@/components'; +type TabId = 'home' | 'settings'; + +const tabs: { id: TabId; label: string; icon: string }[] = [ + { id: 'home', label: 'Home', icon: 'star' }, + { id: 'settings', label: 'Settings', icon: 'settings' }, +]; + const whyratingLinks = [ { name: 'Brand Site', url: 'http://brand.nuc.lan', icon: 'palette', description: 'WhyRating brand guidelines and assets' }, { name: 'Templates Site', url: 'http://templates.nuc.lan', icon: 'layout', description: 'WhyRating email and document templates' }, @@ -9,12 +17,15 @@ const whyratingLinks = [ ]; export default function Home() { + const [activeTab, setActiveTab] = useState('home'); + const [darkMode, setDarkMode] = useState(true); + return (
{/* Header */}
-
+
@@ -29,40 +40,121 @@ export default function Home() {
+ + {/* Tabs */} +
{/* Main Content */} -
-
-

- Quick Access -

-

- Jump to WhyRating resources and documentation -

-
+
+ {activeTab === 'home' && ( + <> +
+

+ Quick Access +

+

+ Jump to WhyRating resources and documentation +

+
-
- {whyratingLinks.map(link => ( - -
- + + + )} + + {activeTab === 'settings' && ( +
+
+

+ Appearance +

+ + {/* Dark Mode Toggle */} +
+
+

Dark Mode

+

+ Use dark theme for the hub +

+
+
-
-

{link.name}

-

{link.description}

+ +

+ About +

+ +
+
+ Version + 1.0.0 +
+
+ Project + WhyRating.com +
- - - ))} -
+ + +
+
+ )}
{/* Footer */}