From 4ea297c4a10cbe29514fefce3282f4c7a393b08b Mon Sep 17 00:00:00 2001 From: coon Date: Mon, 27 Nov 2023 20:51:38 +0100 Subject: [PATCH] static: work on basic layout + top controls --- static/flexbox/index.html | 41 +++++++++++++++++++++-- static/flexbox/sanic.css | 70 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 108 insertions(+), 3 deletions(-) diff --git a/static/flexbox/index.html b/static/flexbox/index.html index 583eb6a..46f74f3 100644 --- a/static/flexbox/index.html +++ b/static/flexbox/index.html @@ -25,8 +25,45 @@ -
+
+
+
+
+ + +
+
+ + +
+
+
+
+ +
+
+ +
00
+ +
+
+
+
+ + +
+
+
+

Now playing: 00:00:00/100:00:00

+ + +
+
+
@@ -36,7 +73,7 @@ controls bottom
diff --git a/static/flexbox/sanic.css b/static/flexbox/sanic.css index 8b8a136..dcbf986 100644 --- a/static/flexbox/sanic.css +++ b/static/flexbox/sanic.css @@ -1,6 +1,7 @@ -body { +html, body { background-color: #09101d; color: #bbb; + height: 99%; } div { @@ -12,22 +13,89 @@ button { color: #bbb; } +input { + background-color: #28374a; + color: white; +} + #flexbox-container { display: flex; flex-direction: column; + height: 100%; } #controls-top { display: flex; flex-direction: row; + justify-content: space-b; } #top-left-controls { display: flex; flex-direction: column; + width: 100px; +} + +#top-left-controls button { + text-align: left; } #playback-controls { display: flex; flex-direction: column; + width: 160px; +} + +#queue-volume-controls { + width: 150px; +} + +#queue-controls { + display: flex; + flex-direction: row; +} + +#queue-xfade-control { + display: flex; + flex-direction: column; + text-align: center; +} + +#queue-xfade-buttons { + display: flex; + flex-direction: row; +} + +#top-logo { + display: flex; + flex-direction: column; + text-align: center; + color: white; + width: 50px; +} + +#top-logo-container { + display: flex; + flex-grow: 1; + justify-content: flex-end; +} + +#sanic-logo { + width: 50px; +} + +#xfade { + width: 20px; +} + +#queue { + flex-grow: 1; +} + +#controls_bottom { + flex-grow: 2; +} + +#footer { + text-align: right; }