diff --git a/templates/index.html b/templates/index.html index 7d54342..fed8165 100644 --- a/templates/index.html +++ b/templates/index.html @@ -125,6 +125,8 @@ .video-preview { margin: 20px 0; text-align: center; + position: relative; + display: inline-block; } .video-preview video { @@ -132,6 +134,47 @@ max-height: 400px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); + display: block; + } + + .crop-canvas { + position: absolute; + top: 0; + left: 0; + cursor: crosshair; + border-radius: 8px; + display: none; + } + + .crop-canvas.active { + display: block; + } + + .crop-mode-btn { + margin: 10px 0; + padding: 10px 20px; + background: #28a745; + color: white; + border: none; + border-radius: 6px; + cursor: pointer; + font-weight: 600; + transition: all 0.3s; + } + + .crop-mode-btn:hover { + background: #218838; + } + + .crop-mode-btn.active { + background: #dc3545; + } + + .crop-hint { + color: #28a745; + font-size: 0.9em; + margin: 5px 0; + font-weight: 600; } .video-info { @@ -312,7 +355,10 @@
+
+ +
@@ -404,12 +450,20 @@