@@ -53,14 +53,9 @@ class PomodoroTimer extends DataroomElement {
5353 // Title
5454 const title = document . createElement ( 'h1' ) ;
5555 title . className = 'main-title' ;
56- title . textContent = 'Pomodoro Timer ' ;
56+ title . textContent = 'CrashPomodoro ' ;
5757 container . appendChild ( title ) ;
5858
59- // Session counter
60- const counter = document . createElement ( 'div' ) ;
61- counter . className = 'session-counter' ;
62- counter . textContent = `Sessions Completed: ${ this . sessionCount } ` ;
63- container . appendChild ( counter ) ;
6459
6560 // Start button
6661 const startButton = document . createElement ( 'button' ) ;
@@ -71,6 +66,13 @@ class PomodoroTimer extends DataroomElement {
7166 this . startPomodoroSession ( ) ;
7267 } ) ;
7368 container . appendChild ( startButton ) ;
69+
70+
71+ // Session counter
72+ const counter = document . createElement ( 'div' ) ;
73+ counter . className = 'session-counter' ;
74+ counter . textContent = `Sessions Completed: ${ this . sessionCount } of 12` ;
75+ container . appendChild ( counter ) ;
7476
7577 console . log ( 'Start screen rendered' ) ;
7678 }
@@ -104,23 +106,21 @@ class PomodoroTimer extends DataroomElement {
104106 title . textContent = 'Set Our Goal!' ;
105107 container . appendChild ( title ) ;
106108
107- const timer = document . createElement ( 'div' ) ;
108- timer . className = 'timer-display' ;
109- timer . textContent = this . formatTime ( this . timeRemaining ) ;
110- container . appendChild ( timer ) ;
111-
112- const label = document . createElement ( 'label' ) ;
113- label . className = 'goal-label' ;
114- label . textContent = 'What is our goal?' ;
115- container . appendChild ( label ) ;
116-
117109 const input = document . createElement ( 'input' ) ;
118110 input . type = 'text' ;
119111 input . className = 'goal-input' ;
120112 input . placeholder = 'Enter your goal for this session...' ;
121113 input . addEventListener ( 'input' , ( e ) => this . currentGoal = e . target . value ) ;
122114 container . appendChild ( input ) ;
123115
116+
117+ const timer = document . createElement ( 'div' ) ;
118+ timer . className = 'timer-display' ;
119+ timer . textContent = this . formatTime ( this . timeRemaining ) ;
120+ container . appendChild ( timer ) ;
121+
122+
123+
124124 this . renderTimerControls ( container ) ;
125125 setTimeout ( ( ) => input . focus ( ) , 100 ) ;
126126 }
@@ -141,10 +141,6 @@ class PomodoroTimer extends DataroomElement {
141141 . then ( svgContent => logoContainer . innerHTML = svgContent )
142142 . catch ( ( ) => logoContainer . innerHTML = '<div class="logo-placeholder">⚡</div>' ) ;
143143
144- const title = document . createElement ( 'h2' ) ;
145- title . className = 'phase-title' ;
146- title . textContent = 'Deep Work' ;
147- container . appendChild ( title ) ;
148144
149145 if ( this . currentGoal ) {
150146 const goal = document . createElement ( 'div' ) ;
@@ -166,31 +162,17 @@ class PomodoroTimer extends DataroomElement {
166162 const container = document . createElement ( 'div' ) ;
167163 container . className = 'pomodoro-container relaxation-screen' ;
168164 this . appendChild ( container ) ;
169-
170- // Add logo
171- const logoContainer = document . createElement ( 'div' ) ;
172- logoContainer . className = 'logo-container' ;
173- container . appendChild ( logoContainer ) ;
174165
175- fetch ( './logo.svg' )
176- . then ( response => response . text ( ) )
177- . then ( svgContent => logoContainer . innerHTML = svgContent )
178- . catch ( ( ) => logoContainer . innerHTML = '<div class="logo-placeholder">⚡</div>' ) ;
179-
180- const title = document . createElement ( 'h2' ) ;
181- title . className = 'phase-title' ;
182- title . textContent = 'Relax!' ;
183- container . appendChild ( title ) ;
166+ const videoContainer = document . createElement ( 'div' ) ;
167+ videoContainer . className = 'video-container' ;
168+ container . appendChild ( videoContainer ) ;
169+ this . loadRandomVideo ( videoContainer ) ;
184170
185171 const timer = document . createElement ( 'div' ) ;
186172 timer . className = 'timer-display' ;
187173 timer . textContent = this . formatTime ( this . timeRemaining ) ;
188174 container . appendChild ( timer ) ;
189-
190- const videoContainer = document . createElement ( 'div' ) ;
191- videoContainer . className = 'video-container' ;
192- container . appendChild ( videoContainer ) ;
193- this . loadRandomVideo ( videoContainer ) ;
175+
194176
195177 this . renderTimerControls ( container ) ;
196178 }
@@ -210,8 +192,8 @@ class PomodoroTimer extends DataroomElement {
210192
211193 const iframe = document . createElement ( 'iframe' ) ;
212194 iframe . src = `https://www.youtube.com/embed/videoseries?list=${ playlistId } &autoplay=1&mute=1&controls=1&loop=1` ;
213- iframe . width = '560 ' ;
214- iframe . height = '315 ' ;
195+ iframe . width = '1080 ' ;
196+ iframe . height = '720 ' ;
215197 iframe . frameBorder = '0' ;
216198 iframe . allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' ;
217199 iframe . allowFullscreen = true ;
0 commit comments