diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-05-04 22:12:32 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-05-04 22:12:32 -0500 |
| commit | 5b608a82bd1ebfd109520492cd6d9f54736ae862 (patch) | |
| tree | 35cd29f9a14e65036a3882bdb00e594d8c95f89d /public | |
| parent | 5284094278ed6e4861edc3dbadb1d53218e6f6d0 (diff) | |
| download | immich-frame-5b608a82bd1ebfd109520492cd6d9f54736ae862.tar.xz immich-frame-5b608a82bd1ebfd109520492cd6d9f54736ae862.zip | |
add icons and bottom controls
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.html | 19 | ||||
| -rw-r--r-- | public/style.css | 61 |
2 files changed, 74 insertions, 6 deletions
diff --git a/public/index.html b/public/index.html index 7c0fadd..406122e 100644 --- a/public/index.html +++ b/public/index.html @@ -25,15 +25,24 @@ <div class="carousel-cell"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/82/shore.jpg" /></div> </div> </div> - <div id="albums" style="display:none"> + <div id="albums" style="display:none"> </div> - <div id="settings" style="display:none"> + <div id="settings" style="display:none"> </div> </main> <footer> - <a href="/">Slideshow</a> - <a href="/albums">Album Picker</a> - <a href="/settings">Settings</a> + <div id="bottom-container"> + <div id="controls"> + <button id="prevSlide"><svg alt="Previous Slide"><use xlink:href="#skip_previous"></use></svg></button> + <button id="playPause"><svg alt="Pause"><use xlink:href="#pause"></use></svg></button> + <button id="nextSlide"><svg alt="Next Slide"><use xlink:href="#skip_next"></use></svg></button> + </div> + <div id="menu"> + <a href="/slideshow"><svg alt="Slideshow"><use xlink:href="#slideshow"></use></svg></a> + <a href="/albums"> <svg alt="Album Picker"><use xlink:href="#photo_album"></use></svg></a> + <a href="/settings"> <svg alt="Settings"><use xlink:href="#settings"></use></svg></a> + </div> + </div> </footer> </body> </html> diff --git a/public/style.css b/public/style.css index ce4d76a..f8c26e2 100644 --- a/public/style.css +++ b/public/style.css @@ -1,5 +1,10 @@ body { - background: black + background: black; + color: white; +} + +svg { + fill: white; } .carousel-cell { @@ -18,3 +23,57 @@ body { max-width: 100%; object-fit: contain; } + + +@media (max-width: 768px) { + .carousel-cell { + height: 100vh; + } +} + + +footer { + position: fixed; + bottom: 0; + width: 100%; +} + +#bottom-container { + max-width: 1024px; + margin: auto; +} + +#controls, #menu { + display: flex; +} +#menu { + width: 100%; +} + +#controls { + width: 80%; + margin: auto; + padding-bottom: 48px; +} + +footer a, footer button { + width: 100%; +} + +footer svg { + height: 48px; + width: 100%; + +} + +#controls button { + background: none; + border: none; + padding: 0; +} + +#menu { + padding: 16px; + box-sizing: border-box; + border-top: 1px solid rgb(55, 65, 81); +} |
