From 7eb737705ea2918252a686a138d584e335878fc8 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Tue, 17 Jun 2025 09:43:23 +0200 Subject: [PATCH] Implement video overlay with back button and fullscreen handling --- static/index.html | 113 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 90 insertions(+), 23 deletions(-) diff --git a/static/index.html b/static/index.html index 53282f1..42d3091 100644 --- a/static/index.html +++ b/static/index.html @@ -78,14 +78,38 @@ box-shadow: 0 0 15px rgba(0,0,0,0.7); } - .video-player { - width: 100%; - height: 100%; + #video-overlay-container { position: fixed; top: 0; left: 0; - z-index: 10000; + width: 100%; + height: 100%; background-color: black; + z-index: 10000; /* Above other page content */ + display: flex; + align-items: center; + justify-content: center; + } + + #video-overlay-container .video-player { + width: 100%; + height: 100%; + display: block; + position: fixed; + } + + #video-overlay-container #back-button { + position: absolute; + top: 20px; + left: 20px; + z-index: 1; /* z-index relative to siblings in container */ + padding: 10px 20px; + font-size: 16px; + background-color: rgba(0, 0, 0, 0.5); + color: white; + border: 1px solid white; + border-radius: 5px; + cursor: pointer; }