From 31569d1a78a0731ef9efc7d462ec39acd428d588 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 6 Aug 2023 12:57:55 +0100 Subject: Add spotify page --- static/css/globalstyles.css | 4 +++ static/css/spotify.css | 88 +++++++++++++++++++++++++++++++++++++++++++++ static/css/variables.css | 3 ++ 3 files changed, 95 insertions(+) create mode 100644 static/css/spotify.css (limited to 'static/css') diff --git a/static/css/globalstyles.css b/static/css/globalstyles.css index 9fbb974..b6da1f9 100644 --- a/static/css/globalstyles.css +++ b/static/css/globalstyles.css @@ -10,6 +10,10 @@ html, body { font-family: var(--font-sans-serif); } +.small { + font-size: 0.8rem; +} + #main-container { display: flex; flex-direction: row; diff --git a/static/css/spotify.css b/static/css/spotify.css new file mode 100644 index 0000000..a3cde4d --- /dev/null +++ b/static/css/spotify.css @@ -0,0 +1,88 @@ +#music-player { + display: flex; + flex-direction: row; + gap: 1rem; + padding: 1rem; + border: 1px solid var(--color-soft-outline); + background-color: var(--color-soft-fill); +} + +#song-album-art { + width: 5rem; +} + +#track { + display: flex; + flex-direction: column; + flex-grow: 1; + gap: 0.2rem; +} + +#song-title { + color: var(--color-text); + font-size: 1rem; +} + +#song-details, #song-artist, #song-album { + color: var(--color-text-muted); +} + +#song-progress-bar { + display: flex; + flex-direction: row; + align-items: center; + color: var(--color-text-muted); + width: 100%; + gap: 0.5rem; +} + +#song-progress-bar-fill { + position: relative; + height: 4px; + flex-grow: 1; +} + +#song-progress-bar-background { + background-color: var(--color-soft-fill); + height: 4px; + border-radius: 2px; + width: 100%; +} + +#song-progress-bar-thumb { + background-color: var(--color-text-link); + height: 4px; + border-radius: 2px; + position: absolute; + left: 0; + top: 0; +} + +#metadata { + display: flex; + flex-direction: row; + justify-content: space-between; + gap: 0.5rem; + margin: 0.5rem 0; +} + +#connection-status { + color: var(--color-text-muted); + display: flex; + flex-direction: row; + align-items: baseline; + gap: 0.3rem; + flex-grow: 1; +} + +#connection-status-indicator { + display: inline-block; + background-color: #ff4136; + border-radius: 50%; + width: 0.5rem; + height: 0.5rem; +} + +#open-in-spotify { + display: none; +} diff --git a/static/css/variables.css b/static/css/variables.css index 123ee30..5d8610f 100644 --- a/static/css/variables.css +++ b/static/css/variables.css @@ -16,6 +16,9 @@ --color-text-muted: #aaa; --color-text-link: #ff851b; --color-text-link-bg: rgba(255, 133, 27, 0.2); + + --color-soft-outline: rgba(255, 255, 255, 0.2); + --color-soft-fill: rgba(255, 255, 255, 0.05); --color-scrollbar: rgba(255, 255, 255, 0.4); } -- cgit v1.2.3-70-g09d2