From 5145dd334919ee3f995490f3c4cb30b6194af7c3 Mon Sep 17 00:00:00 2001 From: Ginny-Dang Date: Thu, 26 Dec 2024 15:56:27 -0600 Subject: [PATCH] added timer view --- pages/popup/src/Timer.tsx | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pages/popup/src/Timer.tsx diff --git a/pages/popup/src/Timer.tsx b/pages/popup/src/Timer.tsx new file mode 100644 index 0000000..b98decb --- /dev/null +++ b/pages/popup/src/Timer.tsx @@ -0,0 +1,65 @@ +import { useStorage } from '@extension/shared'; +import { themeStorage } from '@extension/storage'; +import ThemeSwitcher from './components/ThemeSwitcher'; + +interface TimerProps { + onBack: () => void; +} + +const Timer = ({ onBack }: TimerProps) => { + const theme = useStorage(themeStorage); + const isLight = theme === 'light'; + + return ( +
+ + + {/* Box Wrapper */} +
+
+

+ Focus Time +

+ + {/* Timer Circle */} +
+
+
+ 00:00 +
+
+ + {/* Lotus Icons */} +
+ {'🪷'.repeat(6).split('').map((lotus, index) => ( + + {lotus} + + ))} +
+
+
+ + {/* Back Button - Outside the white box */} +
+ +
+
+ ); +}; + +export default Timer; \ No newline at end of file