diff --git a/synculous-client/src/app/dashboard/layout.tsx b/synculous-client/src/app/dashboard/layout.tsx index fddd0de..7eec223 100644 --- a/synculous-client/src/app/dashboard/layout.tsx +++ b/synculous-client/src/app/dashboard/layout.tsx @@ -1,10 +1,11 @@ 'use client'; -import { useEffect, useRef } from 'react'; +import { useEffect, useRef, useState } from 'react'; import { useRouter, usePathname } from 'next/navigation'; import { useAuth } from '@/components/auth/AuthProvider'; import { useTheme } from '@/components/theme/ThemeProvider'; import api from '@/lib/api'; +import PomodoroTimer from '@/components/timer/PomodoroTimer'; import { HomeIcon, ListIcon, @@ -38,6 +39,7 @@ export default function DashboardLayout({ const { isDark, toggleDark } = useTheme(); const router = useRouter(); const pathname = usePathname(); + const [isTimerOpen, setIsTimerOpen] = useState(false); const tzSynced = useRef(false); @@ -89,6 +91,12 @@ export default function DashboardLayout({ Synculous
+
+ setIsTimerOpen(!isTimerOpen)} + /> +
+ ); + } + + return ( +
+ {/* Header */} +
+
+ + {getModeLabel()} +
+ +
+ + {/* Timer Display */} +
+
+ {formatTime(timeLeft)} +
+ + {/* Progress Bar */} +
+
+
+
+ + {/* Cycles indicator */} +
+ {[...Array(4)].map((_, i) => ( +
+ ))} +
+ + {/* Controls */} +
+ + + + + +
+ + {/* Mode switcher */} +
+
+ + + +
+
+
+ ); +}