diff --git a/templates/index.html b/templates/index.html index 83a17c4..6a8b54c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -184,6 +184,50 @@ font-weight: 600; } + .trim-buttons { + display: flex; + gap: 10px; + margin: 15px 0; + flex-wrap: wrap; + } + + .trim-btn { + flex: 1; + min-width: 200px; + padding: 12px 20px; + background: #007bff; + color: white; + border: none; + border-radius: 6px; + cursor: pointer; + font-weight: 600; + transition: all 0.3s; + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + } + + .trim-btn:hover { + background: #0056b3; + transform: translateY(-1px); + } + + .trim-btn:active { + transform: translateY(0); + } + + .current-time-display { + background: white; + padding: 10px 15px; + border-radius: 6px; + text-align: center; + font-size: 1.1em; + color: #667eea; + font-weight: 600; + border: 2px solid #e9ecef; + } + .scale-slider-container { margin: 15px 0; } @@ -241,112 +285,6 @@ color: #495057; } - .timeline-container { - margin: 15px 0; - padding: 20px; - background: white; - border-radius: 8px; - } - - .timeline-label { - display: flex; - justify-content: space-between; - margin-bottom: 10px; - font-size: 0.9em; - color: #495057; - } - - .timeline-wrapper { - position: relative; - height: 60px; - background: #f8f9fa; - border-radius: 8px; - margin: 10px 0; - cursor: pointer; - border: 2px solid #e9ecef; - } - - .timeline-track { - position: absolute; - height: 100%; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - opacity: 0.3; - border-radius: 6px; - } - - .timeline-handle { - position: absolute; - width: 4px; - height: 100%; - background: #667eea; - cursor: ew-resize; - z-index: 2; - } - - .timeline-handle::after { - content: ''; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 20px; - height: 30px; - background: #667eea; - border-radius: 4px; - border: 2px solid white; - } - - .timeline-handle.start::after { - content: '⏴'; - display: flex; - align-items: center; - justify-content: center; - color: white; - font-size: 12px; - } - - .timeline-handle.end::after { - content: '⏵'; - display: flex; - align-items: center; - justify-content: center; - color: white; - font-size: 12px; - } - - .timeline-time { - position: absolute; - top: -25px; - background: #667eea; - color: white; - padding: 3px 8px; - border-radius: 4px; - font-size: 0.85em; - font-weight: 600; - white-space: nowrap; - transform: translateX(-50%); - } - - .trim-mode-btn { - padding: 10px 20px; - background: #007bff; - color: white; - border: none; - border-radius: 6px; - cursor: pointer; - font-weight: 600; - transition: all 0.3s; - margin-right: 10px; - } - - .trim-mode-btn:hover { - background: #0056b3; - } - - .trim-mode-btn.active { - background: #dc3545; - } - .video-info { background: white; padding: 15px; @@ -538,26 +476,20 @@
+ 💡 Play the video and click the buttons to set trim points at the current playback position +