From 1a80211ae64894bc051f1ac209fd2d4fdd0edd70 Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 15:46:43 +0000 Subject: [PATCH] Improve overall user interface and fix reported functionality problems Fixes dark mode toggle, landing page layout, dashboard structure, and removes unused imports. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7e7c4e8-20cb-41c4-9d0e-79f48938fede Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/d4eed189-5f49-4ca5-967b-42e14b879685.jpg --- client/src/pages/DashboardPage.tsx | 17 +- client/src/pages/LandingPage.tsx | 365 ++++++++--------------------- client/src/pages/SettingsPage.tsx | 15 +- 3 files changed, 117 insertions(+), 280 deletions(-) diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 30fe774..02b51ff 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -75,15 +75,10 @@ export default function DashboardPage() { }; return ( -
-
- -
- {/* Sidebar */} - - - {/* Main Content */} -
+
+ +
+
{/* Welcome Header */} @@ -265,11 +260,11 @@ export default function DashboardPage() { )}
-
+
{/* Global Voice Indicator */} - + ); } diff --git a/client/src/pages/LandingPage.tsx b/client/src/pages/LandingPage.tsx index 42f1e25..a114cdf 100644 --- a/client/src/pages/LandingPage.tsx +++ b/client/src/pages/LandingPage.tsx @@ -1,12 +1,8 @@ import { useLocation } from "wouter"; import { useAuth } from "@/hooks/useAuth"; import { useVoice } from "@/hooks/useVoice"; -import { useQuery } from "@tanstack/react-query"; -import { useTranslation } from "react-i18next"; -import { aiService } from "@/services/aiService"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; -import { Badge } from "@/components/ui/badge"; import DailyJoke from "@/components/ai/DailyJoke"; import VoiceIndicator from "@/components/voice/VoiceIndicator"; import Header from "@/components/layout/Header"; @@ -14,22 +10,16 @@ import { useTheme } from "@/context/ThemeContext"; import { Mic, Volume2, - Shield, Brain, - CheckCircle, DollarSign, Calendar, - Play, - ArrowRight, - Zap + ArrowRight } from "lucide-react"; export default function LandingPage() { const [, setLocation] = useLocation(); const { user } = useAuth(); const { isListening, startListening, stopListening, isSupported } = useVoice(); - const { theme } = useTheme(); - const { t } = useTranslation(); // Redirect to dashboard if already authenticated if (user) { @@ -54,283 +44,122 @@ export default function LandingPage() {
{/* Hero Section */} -
- {/* Background Pattern */} -
- -
-
+
+
+
- {/* Left Column: Content */} -
- {/* Daily Joke Display */} - - -
-

- {t('landing.heroTitle')} - - {" "}MenAssist - -

- -

- {t('landing.heroSubtitle')} -

-
- - {/* Key Features */} -
- - -
- -
-

{t('landing.taskManagement')}

-

{t('landing.taskManagementDesc')}

-
-
- - - -
- -
-

{t('landing.financialTracking')}

-

{t('landing.financialTrackingDesc')}

-
-
-
- -
- - -
-
- - {/* Right Column: Voice Demo */} -
- - -
-

{t('landing.tryVoiceCommands')}

- - {/* Voice Visualizer */} -
-
- - {isListening && ( -
- )} -
-
- -
- - -
-

{t('landing.trySaying')}

- - -

"{t('landing.createTaskExample')}"

-

"{t('landing.addExpenseExample')}"

-

"{t('landing.showScheduleExample')}"

-
-
-
-
-
- - -
-
-
- - {/* Features Section */} -
-
-
-

- {t('landing.completeOfflineVoiceAI')} -

-

- {t('landing.enterpriseGradeDesc')} + {/* Main Hero Content */} +

+

+ Your Personal + + {" "}Productivity Assistant + +

+ +

+ Streamline your tasks, manage finances, and boost productivity with AI-powered assistance and voice control.

-
- {/* Local AI Processing */} - - -
- -
-

{t('landing.localAIModels')}

-

- {t('landing.localAIDesc')} -

-
-
- - {t('landing.baseModelsIncluded')} -
-
- - {t('landing.swappableArchitecture')} -
+ {/* Daily Joke in a prominent card */} +
+ +
+ + {/* Action Buttons */} +
+ + + {isSupported && ( + + )} +
+ + {/* Features Grid */} +
+ + +
+
+

Task Management

+

Organize and track your daily tasks efficiently with smart prioritization

- - {/* Voice Task Management */} - - -
- -
-

{t('landing.voiceTaskCreation')}

-

- {t('landing.voiceTaskCreationDesc')} -

-
-
- - {t('landing.naturalLanguageProcessing')} -
-
- - {t('landing.smartDateExtraction')} -
-
-
-
- - {/* Financial Voice Entry */} - - -
+ + + +
-

{t('landing.voiceFinancialTracking')}

-

- {t('landing.voiceFinancialDesc')} -

-
-
- - {t('landing.autoCategorization')} -
-
- - {t('landing.receiptOCR')} -
-
+

Financial Tracking

+

Monitor your expenses and achieve your financial goals with insights

- {/* Privacy & Security */} - - -
- -
-

{t('landing.completePrivacy')}

-

- {t('landing.completePrivacyDesc')} -

-
-
- - {t('landing.onPremiseDeployment')} -
-
- - {t('landing.encryptedStorage')} -
-
-
-
- - {/* Real-time Processing */} - - -
- -
-

{t('landing.realTimeProcessing')}

-

- {t('landing.realTimeProcessingDesc')} -

-
-
- - {t('landing.subSecondResponse')} -
-
- - {t('landing.continuousListening')} -
-
-
-
- - {/* Multi-user Support */} - - -
- -
-

{t('landing.multiTierAccess')}

-

- {t('landing.multiTierDesc')} -

-
-
- - {t('landing.progressiveOnboarding')} -
-
- - {t('landing.featureBasedPermissions')} -
+ + +
+
+

AI Assistant

+

Get intelligent suggestions and automation powered by advanced AI

+ + {/* Voice Control Section */} +
+
+
+ +
+

Voice-Powered Control

+

+ Control your productivity suite with natural voice commands. Create tasks, check finances, and navigate the app hands-free. +

+ {isSupported ? ( +

+ ✓ Voice control supported on your device +

+ ) : ( +

+ Voice control requires a modern browser with microphone access +

+ )} +
+
-
+
{/* Voice Status Indicator */}
); -} +} \ No newline at end of file diff --git a/client/src/pages/SettingsPage.tsx b/client/src/pages/SettingsPage.tsx index 9062b9e..96a3201 100644 --- a/client/src/pages/SettingsPage.tsx +++ b/client/src/pages/SettingsPage.tsx @@ -243,7 +243,20 @@ export default function SettingsPage() { Switch between light and dark themes

- + + + +
+
+ +

+ Choose your preferred language +

+ +