diff --git a/server/signsync.db b/server/signsync.db index 71181ef..7d23bc7 100644 Binary files a/server/signsync.db and b/server/signsync.db differ diff --git a/src/App.css b/src/App.css index 7081e02..2b9841a 100644 --- a/src/App.css +++ b/src/App.css @@ -12,7 +12,7 @@ .header h1 { font-size: 2rem; - color: #fff; + color: #213547; margin: 0; } diff --git a/src/components/YouTubePlayer.jsx b/src/components/YouTubePlayer.jsx index 0b44352..38d67b9 100644 --- a/src/components/YouTubePlayer.jsx +++ b/src/components/YouTubePlayer.jsx @@ -433,7 +433,7 @@ export default function YouTubePlayer() { pauseAllLocalVideos(); }; - const handlePlay = () => { + const handlePlayFromStart = () => { // Seek to beginning first if (youtubePlayerRef.current && youtubePlayerRef.current.seekTo) { youtubePlayerRef.current.seekTo(0, true); @@ -456,6 +456,17 @@ export default function YouTubePlayer() { playAllLocalVideos(); }; + const handleResume = () => { + // Resume from current position without seeking + if (youtubePlayerRef.current && isReady) { + youtubePlayerRef.current.playVideo(); + if (youtubePlayerRef.current.setPlaybackRate) { + youtubePlayerRef.current.setPlaybackRate(playbackRateRef.current); + } + } + playAllLocalVideos(); + }; + const handlePause = () => { // Pause all videos if (youtubePlayerRef.current && isReady) { @@ -468,7 +479,7 @@ export default function YouTubePlayer() { if (isPlaying) { handlePause(); } else { - handlePlay(); + handleResume(); } }; @@ -709,7 +720,7 @@ export default function YouTubePlayer() { - {playbackRate === 0.5 ? '0.5x' : '1x'} + {playbackRate === 0.5 ? '1x' : '0.5x'} {isProcessingPlayback && ( diff --git a/src/index.css b/src/index.css index 8925870..dfe42c1 100644 --- a/src/index.css +++ b/src/index.css @@ -3,9 +3,9 @@ line-height: 1.5; font-weight: 400; - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; + color-scheme: light; + color: #213547; + background-color: #ffffff; font-synthesis: none; text-rendering: optimizeLegibility; @@ -44,7 +44,7 @@ button { font-size: 1em; font-weight: 500; font-family: inherit; - background-color: #1a1a1a; + background-color: #f9f9f9; cursor: pointer; transition: border-color 0.25s; } @@ -56,15 +56,3 @@ button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -}