From 2e43088aa2db9450a670540cbc899c141f5c1c1a Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 4 May 2025 23:05:18 -0500 Subject: add share icons, fix html viewport, use postcss in css --- src/icons.js | 3 + ...load_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg | 1 + ...hare_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg | 1 + ..._off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg | 1 + src/index.js | 1 + src/style.css | 86 ++++++++++++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 src/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg create mode 100644 src/icons/share_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg create mode 100644 src/icons/visibility_off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg create mode 100644 src/style.css (limited to 'src') diff --git a/src/icons.js b/src/icons.js index af4cc70..dd75a4a 100644 --- a/src/icons.js +++ b/src/icons.js @@ -1,9 +1,12 @@ +import "./icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg" import "./icons/image_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/pause_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/photo_album_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/photo_frame_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/play_arrow_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" +import "./icons/share_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg" import "./icons/settings_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/skip_next_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/skip_previous_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" import "./icons/slideshow_24dp_FFFFFF_FILL1_wght400_GRAD0_opsz24.svg" +import "./icons/visibility_off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg" diff --git a/src/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg b/src/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..e9ef3c9 --- /dev/null +++ b/src/icons/download_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/share_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg b/src/icons/share_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..911d24e --- /dev/null +++ b/src/icons/share_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/visibility_off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg b/src/icons/visibility_off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg new file mode 100644 index 0000000..41b5681 --- /dev/null +++ b/src/icons/visibility_off_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/index.js b/src/index.js index 59175a0..6e35fa3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,4 @@ +import "./style.css" import "./icons.js" import initSlides from "./slides.js" diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..0175b0c --- /dev/null +++ b/src/style.css @@ -0,0 +1,86 @@ +body { + background: black; + color: white; +} + +svg { + fill: white; +} + +.carousel-cell { + height: 70vh; + width: 80vw; + + margin: 24px; + + +} + +.carousel-cell img { + vertical-align: middle; +/* border-radius: 10px; */ + height: 100%; + max-width: 100%; + object-fit: contain; +} + + +/* +@media (max-width: 768px) { + .carousel-cell { + height: 100vh; + } +} +*/ + +#slideshow-share button, +#slideshow-bottom-controls button { + background: none; + border: none; + padding: 0; +} + +#slideshow-share svg { height: 24px; width: 24px; } +#slideshow-share button { + padding: 12px; + width: 48px; + height: 48px; +} + +#slideshow-share, +#slideshow-bottom-controls { + display: flex; + width: 80vw; + margin: auto; + justify-content: right; +} + + +#slideshow-bottom-controls { + margin: auto; + max-width: 768px; + button { width: 48px; height: 48px; } +} + + + +footer { + position: fixed; + bottom: 0; + width: 100%; +} + +#bottom-container { + max-width: 1024px; + margin: auto; +} + +#menu { + a { width: 100% } + svg { height: 48px; width: 100% } + display: flex; + width: 100%; + padding: 16px; + box-sizing: border-box; + border-top: 1px solid rgb(55, 65, 81); +} -- cgit v1.2.3