diff --git a/frontend/src/TVMode.css b/frontend/src/TVMode.css index bda63ad..02d8785 100644 --- a/frontend/src/TVMode.css +++ b/frontend/src/TVMode.css @@ -1,4 +1,4 @@ -body > div { +.stream > div { width: 250px; height: 50vh; background-color: #00ff00; @@ -11,6 +11,11 @@ body > div { flex-direction: row; justify-content: space-between; } -span { +.timer { font-weight: bold; +} + +.mode { + font-weight: bold; + text-transform: uppercase; } \ No newline at end of file diff --git a/frontend/src/TVMode.tsx b/frontend/src/TVMode.tsx index 66ed12e..af3d6c0 100644 --- a/frontend/src/TVMode.tsx +++ b/frontend/src/TVMode.tsx @@ -36,23 +36,25 @@ const TVMode = () => { }; }, []) - return (state === undefined ? - Loading... : -
-
- Mode: {state.mode} -
- {secondsRemaining}s ⏱️ -
-
+ return
+ {state === undefined ? + Loading... :
- Current state:
-          {JSON.stringify(state)}
-        
-
+
+ Mode: {state.mode} +
+ {Math.round(state.timeUntilNextMode ?? 0)}s ⏱️ +
+
+
+ Current state:
+            {JSON.stringify(state, null, 4)}
+          
+
-
- ); +
+ } + ; } export default TVMode;