diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-06-01 19:27:14 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-06-01 20:54:35 +0300 |
| commit | 73378c104a0774c213e2ede7c557b14c40f8a12d (patch) | |
| tree | 9db9aa133177d90867b4e160924e3b5d4bbd65a4 /templates/gallery.html | |
| parent | 1578f3186742512595167c026cb321f625b5c3f1 (diff) | |
Initial impl
Diffstat (limited to 'templates/gallery.html')
| -rw-r--r-- | templates/gallery.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/gallery.html b/templates/gallery.html new file mode 100644 index 0000000..2950d8e --- /dev/null +++ b/templates/gallery.html @@ -0,0 +1,44 @@ +<!doctype html> +<html> + <head> + <title>Drive Photo Gallery</title> + <style> + img { + max-width: 200px; + margin: 10px; + display: block; + } + .gallery { + display: flex; + flex-wrap: wrap; + } + .gallery-item { + margin: 10px; + text-align: center; + } + </style> + </head> + <body> + {% for date in dates %} + <h2>{{ date }}</h2> + <div class="gallery"> + {% for f in grouped[date] %} + <div class="gallery-item"> + <a + href="https://drive.google.com/file/d/{{ f.id }}/view" + target="_blank" + > + <img + src="{{ url_for('serve_thumbnail', filename=f.thumbnail.split('/')[-1]) }}" + alt="{{ f.name }}" + /> + </a> + {% if f.description %} + <p>{{ f.description }}</p> + {% endif %} + </div> + {% endfor %} + </div> + {% endfor %} + </body> +</html> |
