From ab63347549b9d35294ceca64899efaa5301af2c9 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 20 Sep 2024 05:43:19 -0600 Subject: [PATCH] Move video style to file --- README.md | 4 ++++ static/style/video.css | 32 ++++++++++++++++++++++++++++++++ templates/video.html | 35 +---------------------------------- 3 files changed, 37 insertions(+), 34 deletions(-) create mode 100644 static/style/video.css diff --git a/README.md b/README.md index ed61cc0..52d0864 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,7 @@ Build and push this container to ghcr - [ ] change from Audio -> Video - [x] Provide a better name for downloaded files - [x] Environment variable to control whether "Secure" flag set on cookie +- [ ] Provide an about page + - `ffmpeg` version + - `yt-dlp` version + - disk space diff --git a/static/style/video.css b/static/style/video.css new file mode 100644 index 0000000..2f66af2 --- /dev/null +++ b/static/style/video.css @@ -0,0 +1,32 @@ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 20px; + box-sizing: border-box; +} + +h1 { + text-align: center; +} + +.video-container { + max-width: 600px; + margin: 0 auto; +} + +video { + width: 100%; + max-width: 600px; + display: block; + margin: 0 auto; +} + +@media (max-width: 600px) { + .video-container { + max-width: 100%; + } + + video { + max-width: 100%; + } +} \ No newline at end of file diff --git a/templates/video.html b/templates/video.html index bf24ee5..51679de 100644 --- a/templates/video.html +++ b/templates/video.html @@ -5,40 +5,7 @@ {{.original.Title}} - +