diff --git a/web/batch-password.html b/web/batch-password.html index d80fcc6..a2f763e 100644 --- a/web/batch-password.html +++ b/web/batch-password.html @@ -4,7 +4,7 @@ Password Required - +
diff --git a/web/batch.html b/web/batch.html index 6290701..f976a48 100644 --- a/web/batch.html +++ b/web/batch.html @@ -4,7 +4,7 @@ {{.Count}} files — upload.jeffemmett.com - +
@@ -19,10 +19,13 @@
{{range .Files}}
- - {{if eq .ThumbType "image"}} + {{if eq .ThumbType "image"}} + {{.Filename}} - {{else if eq .ThumbType "video"}} + + {{else}} + + {{if eq .ThumbType "video"}} {{else if eq .ThumbType "audio"}}
@@ -49,6 +52,7 @@
{{end}}
+ {{end}} + + + + + diff --git a/web/download.html b/web/download.html index 7d6a562..9ab72be 100644 --- a/web/download.html +++ b/web/download.html @@ -4,7 +4,7 @@ {{.Filename}} — upload.jeffemmett.com - +
diff --git a/web/index.html b/web/index.html index 78d0d11..5a26c18 100644 --- a/web/index.html +++ b/web/index.html @@ -4,7 +4,7 @@ upload.jeffemmett.com - +
diff --git a/web/password.html b/web/password.html index 05bf8fd..314bf22 100644 --- a/web/password.html +++ b/web/password.html @@ -4,7 +4,7 @@ Password Required - +
diff --git a/web/static/style.css b/web/static/style.css index 889537f..06be186 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -452,6 +452,109 @@ footer a:hover { color: var(--accent); } color: var(--text-dim); } +/* Lightbox */ +.lightbox { + position: fixed; + inset: 0; + z-index: 1000; + display: flex; + align-items: center; + justify-content: center; +} + +.lightbox-backdrop { + position: absolute; + inset: 0; + background: rgba(0, 0, 0, 0.9); +} + +.lightbox-content { + position: relative; + max-width: 90vw; + max-height: 80vh; + display: flex; + align-items: center; + justify-content: center; +} + +.lightbox-content img { + max-width: 90vw; + max-height: 80vh; + object-fit: contain; + border-radius: 4px; + user-select: none; +} + +.lightbox-close, +.lightbox-prev, +.lightbox-next { + position: absolute; + z-index: 1001; + background: none; + border: none; + color: #fff; + cursor: pointer; + opacity: 0.7; + transition: opacity 0.2s; + padding: 0; +} + +.lightbox-close:hover, +.lightbox-prev:hover, +.lightbox-next:hover { + opacity: 1; +} + +.lightbox-close { + top: 1rem; + right: 1.25rem; + font-size: 2.5rem; + line-height: 1; +} + +.lightbox-prev, +.lightbox-next { + top: 50%; + transform: translateY(-50%); + font-size: 3rem; + line-height: 1; +} + +.lightbox-prev { + left: 1rem; +} + +.lightbox-next { + right: 1rem; +} + +.lightbox-footer { + position: absolute; + bottom: 1rem; + left: 50%; + transform: translateX(-50%); + z-index: 1001; + display: flex; + align-items: center; + gap: 1rem; + background: rgba(0, 0, 0, 0.6); + padding: 0.5rem 1rem; + border-radius: 6px; + font-size: 0.8125rem; + color: #fff; + white-space: nowrap; +} + +.lightbox-dl-btn { + color: var(--accent); + text-decoration: none; + font-size: 0.8125rem; +} + +.lightbox-dl-btn:hover { + text-decoration: underline; +} + /* Download page */ .file-card { margin-top: 0;