gallerydl template
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run

This commit is contained in:
Nick Sweeting 2025-12-26 11:55:19 -08:00
parent 4fd7fcdbcf
commit 0fbcbd2616
No known key found for this signature in database
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!-- Embedded gallery view - shows first image with link to full gallery -->
<div class="extractor-embed gallerydl-embed" style="width: 100%; max-width: 800px; margin: 0 auto; background: #1a1a1a; padding: 20px;">
<img src="{{ output_path }}"
style="width: 100%; max-height: 600px; object-fit: contain;"
alt="Gallery image"
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div style="display: none; flex-direction: column; align-items: center; color: #888; padding: 40px;">
<span style="font-size: 64px;">🖼️</span>
<span style="margin-top: 10px;">Gallery downloaded</span>
</div>
</div>

View File

@ -0,0 +1,28 @@
<!-- Fullscreen gallery view - shows image in full size -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gallery</title>
<style>
body {
margin: 0;
padding: 0;
background: #000;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
img {
max-width: 100%;
max-height: 100vh;
object-fit: contain;
}
</style>
</head>
<body>
<img src="{{ output_path }}" alt="Gallery image">
</body>
</html>

View File

@ -0,0 +1 @@
🖼️

View File

@ -0,0 +1,11 @@
<!-- Gallery thumbnail - shows first image or placeholder -->
<div class="extractor-thumbnail gallerydl-thumbnail" style="width: 100%; height: 100px; overflow: hidden; background: #1a1a1a; display: flex; align-items: center; justify-content: center;">
<img src="{{ output_path }}"
style="width: 100%; height: 100px; object-fit: contain;"
alt="Gallery thumbnail"
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div style="display: none; flex-direction: column; align-items: center; color: #888; font-size: 12px;">
<span style="font-size: 32px;">🖼️</span>
<span>Gallery</span>
</div>
</div>