From d26857072f52e17e21bb49926e92dbe802f05f3f Mon Sep 17 00:00:00 2001
From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com>
Date: Sun, 8 Jun 2025 08:45:04 +0000
Subject: [PATCH] Revamp focus page to provide a dedicated, distraction-free
workspace
Implements a new layout for FocusPage.tsx with sidebar, header, and pomodoro timer functionality.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c5f0c281-8dd8-4846-b452-4a07bcd21062
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/bb69c78d-355e-48a2-a39e-d4d02b9c057b.jpg
---
client/src/pages/FocusPage.tsx | 248 ++++++++++++++++++++++++---------
1 file changed, 185 insertions(+), 63 deletions(-)
diff --git a/client/src/pages/FocusPage.tsx b/client/src/pages/FocusPage.tsx
index 9e7fe46..ae0b562 100644
--- a/client/src/pages/FocusPage.tsx
+++ b/client/src/pages/FocusPage.tsx
@@ -1,75 +1,197 @@
-import FocusMode from "@/components/focus/FocusMode";
+import { useState } from "react";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
import { useTranslation } from "react-i18next";
-import { Timer, Brain, Volume2, Shield } from "lucide-react";
+import { Timer, Brain, Volume2, Shield, Target, Coffee, Zap } from "lucide-react";
+import Header from "@/components/layout/Header";
+import Sidebar from "@/components/layout/Sidebar";
+import FocusMode from "@/components/focus/FocusMode";
export default function FocusPage() {
const { t } = useTranslation();
+ const [isFocusModeOpen, setIsFocusModeOpen] = useState(false);
return (
-
-
-
- {t('focus.title', 'Focus Mode')}
-
-
- {t('focus.description', 'Minimize distractions and maximize your productivity with our advanced focus tools.')}
-
+
+
+
+
+
+
+
Focus Zone
+
Maximize your productivity with focused work sessions
+
+
+
+
+
+
+ Pomodoro Timer
+
+
+
+ Work in focused 25-minute intervals with built-in breaks
+
+
+
+
+
+
+
+
+ Deep Work Sessions
+
+
+
+ Extended 90-minute sessions for complex tasks and deep thinking
+
+
+
+
+
+
+
+
+ Custom Sessions
+
+
+
+ Create personalized focus sessions tailored to your workflow
+
+
+
+
+
+
+
+
+
+
+
+ Ambient Sounds
+
+
+
+
+ Enhance concentration with nature sounds, white noise, or instrumental music
+
+
+
+ Rain Sounds
+
+
+
+ Forest Ambience
+
+
+
+ Ocean Waves
+
+
+
+ Brown Noise
+
+
+
+
+
+
+
+
+
+
+ Distraction Blocking
+
+
+
+
+ Minimize interruptions by hiding notifications and non-essential UI elements
+
+
+
+
Block Notifications
+
+
+
+
+
Minimize UI Elements
+
+
+
+
+
+
+
+
+
+
+
+
+ Focus Statistics
+
+
+
+
+
+
+
6h 30m
+
Total Focus Time
+
+
+
85%
+
Completion Rate
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {t('focus.features.timer', 'Pomodoro Timer')}
-
-
-
- {t('focus.features.timerDesc', 'Work in focused intervals with built-in breaks')}
-
-
-
-
-
-
-
- {t('focus.features.ambient', 'Ambient Sounds')}
-
-
-
- {t('focus.features.ambientDesc', 'Choose from nature sounds to enhance concentration')}
-
-
-
-
-
-
-
- {t('focus.features.blocking', 'Distraction Blocking')}
-
-
-
- {t('focus.features.blockingDesc', 'Block notifications and visual distractions')}
-
-
-
-
-
-
-
- {t('focus.features.tracking', 'Session Tracking')}
-
-
-
- {t('focus.features.trackingDesc', 'Monitor your focus patterns and productivity')}
-
-
-
-
-
-
- {}} />
-
+
setIsFocusModeOpen(false)}
+ />
);
}
\ No newline at end of file