Clic simple → aperçu | Double-clic → plein écran
diff --git a/app/main.py b/app/main.py index 53ce746..324d1de 100644 --- a/app/main.py +++ b/app/main.py @@ -80,7 +80,6 @@ async def index( CAPTURE_DURATION = int(os.environ.get("CAPTURE_DURATION", "15")) CAPTURE_FPS = int(os.environ.get("CAPTURE_FPS", "5")) -TOP_FRAMES = int(os.environ.get("TOP_FRAMES", "10")) @app.get("/event/{event_id}", response_class=HTMLResponse) @@ -109,8 +108,8 @@ async def event_detail(request: Request, event_id: str): "has_clip": has_clip, "clip_size": clip_size, "capture_duration": CAPTURE_DURATION, + "capture_fps": CAPTURE_FPS, "capture_total": CAPTURE_DURATION * CAPTURE_FPS, - "top_frames": TOP_FRAMES, }) diff --git a/app/templates/event_detail.html b/app/templates/event_detail.html index be86736..a70d82a 100644 --- a/app/templates/event_detail.html +++ b/app/templates/event_detail.html @@ -12,10 +12,21 @@ .plate { font-family: monospace; letter-spacing: 0.15em; } .btn-ghost { background: #1e293b; border: 1px solid #475569; color: #94a3b8; border-radius: 6px; padding: 6px 14px; font-size: 0.85rem; text-decoration: none; display: inline-block; } .btn-ghost:hover { background: #334155; color: #e2e8f0; } - .frame-thumb { cursor: pointer; border: 2px solid #334155; border-radius: 6px; overflow: hidden; transition: border-color 0.15s; } - .frame-thumb:hover { border-color: #3b82f6; } + .btn-dl { background: #166534; border: 1px solid #16a34a; color: #4ade80; border-radius: 6px; padding: 6px 14px; font-size: 0.85rem; text-decoration: none; display: inline-block; } + .btn-dl:hover { background: #14532d; } + .frame-thumb { cursor: zoom-in; border: 2px solid #334155; border-radius: 6px; overflow: hidden; transition: border-color 0.12s; } + .frame-thumb:hover { border-color: #60a5fa; } .frame-thumb.active { border-color: #3b82f6; } label { color: #64748b; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; } + + /* Lightbox */ + #lightbox { display:none; position:fixed; inset:0; z-index:50; background:rgba(0,0,0,0.92); align-items:center; justify-content:center; } + #lightbox.open { display:flex; } + #lightbox img { max-width:95vw; max-height:92vh; object-fit:contain; border-radius:4px; } + #lb-nav { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; gap:12px; align-items:center; } + #lb-close { position:absolute; top:12px; right:16px; font-size:1.8rem; color:#94a3b8; cursor:pointer; line-height:1; } + #lb-close:hover { color:#fff; } + #lb-label { color:#94a3b8; font-size:0.85rem; }
@@ -28,10 +39,9 @@Clic simple → aperçu | Double-clic → plein écran