From 8a926f39246d981cc5c814b8f31e891cb6b1dab2 Mon Sep 17 00:00:00 2001 From: Lars van Rhijn Date: Wed, 4 Oct 2023 20:31:49 +0200 Subject: [PATCH 1/4] Other container layout and responsive queue container --- marietje/queues/templates/queues/queue.html | 6 +++--- marietje/songs/templates/songs/manage.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/marietje/queues/templates/queues/queue.html b/marietje/queues/templates/queues/queue.html index f9e857e..7039f2a 100644 --- a/marietje/queues/templates/queues/queue.html +++ b/marietje/queues/templates/queues/queue.html @@ -5,7 +5,7 @@ {% block content %} -
+


@@ -117,7 +117,7 @@
-
+
diff --git a/marietje/songs/templates/songs/manage.html b/marietje/songs/templates/songs/manage.html index 253a271..c29da8c 100644 --- a/marietje/songs/templates/songs/manage.html +++ b/marietje/songs/templates/songs/manage.html @@ -4,7 +4,7 @@ {% block title %}Manage{% endblock %} {% block content %} -
+
From fbafcf1b06047b80af98d3de8396403a13caf2e4 Mon Sep 17 00:00:00 2001 From: William Kuijltjes Date: Sat, 25 Nov 2023 07:44:45 +0100 Subject: [PATCH 2/4] Reduce the width of buttons in the control column and recombine them into one row --- marietje/queues/templates/queues/queue.html | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/marietje/queues/templates/queues/queue.html b/marietje/queues/templates/queues/queue.html index 4ac8b66..42ea478 100644 --- a/marietje/queues/templates/queues/queue.html +++ b/marietje/queues/templates/queues/queue.html @@ -106,18 +106,17 @@ From 6a9c22b7f8438406f7e0a59ab3b30eb4fd10b052 Mon Sep 17 00:00:00 2001 From: William Kuijltjes Date: Sat, 25 Nov 2023 07:45:01 +0100 Subject: [PATCH 3/4] Slightly improve stats pages --- marietje/stats/templates/stats/stats.html | 9 +++-- marietje/stats/templates/stats/user.html | 41 ++++++++++++----------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/marietje/stats/templates/stats/stats.html b/marietje/stats/templates/stats/stats.html index b20473e..b774c22 100644 --- a/marietje/stats/templates/stats/stats.html +++ b/marietje/stats/templates/stats/stats.html @@ -28,6 +28,7 @@ + @@ -54,6 +55,7 @@ + @@ -109,6 +111,7 @@ + @@ -176,7 +179,9 @@

Most played uploaders

-

These are the {{ stats.stats_top_count }} people whose songs are requested most often by other people, as shown in the left column. The right column shows how many times that person has queued his own songs.

+

These are the {{ stats.stats_top_count }} people whose songs are requested most often by other + people, as shown in the left column. The right column shows how many times that person has queued + their own songs.

- - + + - - -
-
- - + + + + +
# User # Songs
# User # Requests
# User # Unique
@@ -202,7 +207,7 @@

Most played songs last 14 days

-

These songs are played the {{ stats.stats_top_count }} most in the last two weeks.

+

These {{ stats.stats_top_count }} songs have been requested the most in the last two weeks.

diff --git a/marietje/stats/templates/stats/user.html b/marietje/stats/templates/stats/user.html index 8459d4e..5d6030a 100644 --- a/marietje/stats/templates/stats/user.html +++ b/marietje/stats/templates/stats/user.html @@ -21,9 +21,10 @@ {% endif %}

Most played songs

-

You have requested {{ stats.unique_requests }} different - songs a total of {{ stats.total_requests }} times. This - means {% widthratio stats.unique_requests stats.total_requests 100 %}% of your requests have been unique.

+

You have requested {{ stats.unique_requests }} different songs a total of + {{ stats.total_requests }} times. This means + {% widthratio stats.unique_requests stats.total_requests 100 %}% of your requests + have been unique. These are the song you have requested the most.

Top {{ stats.stats_top_count }}:

@@ -50,6 +51,7 @@

Most played artists

+

These are the artists you have requested the most.

Top {{ stats.stats_top_count }}:

@@ -57,7 +59,7 @@ - + @@ -74,11 +76,11 @@

Uploads requested

-

You have uploaded a total of {{stats.total_uploads }} songs. The left column - shows how many times these have been requested by other people. The right column shows - how many times you requested your own songs. In total your songs - have been queued {{stats.total_played_uploads }} times by others and - {{stats.total_played_user_uploads }} by yourself. +

You have uploaded a total of {{stats.total_uploads }} songs. The left column + shows how many times these have been requested by other people. The right column shows how many times + you requested your own songs. In total your songs have been queued + {{stats.total_played_uploads }} times by others and + {{stats.total_played_user_uploads }} times by yourself.

Top {{ stats.stats_top_count }}:

# Artist# Requests# Requests
@@ -87,8 +89,8 @@ - - + + @@ -107,8 +109,8 @@

Upload artists requested

-

The left column shows how many times songs from artists uploaded by you have been requested by - other people. The right column shows how many times you requested those songs. +

The left column shows how many times songs from artists uploaded by you have been requested by + other people. The right column shows how many times you requested those songs.

Top {{ stats.stats_top_count }}:

# Artist TitleOthersYou# Others# You
@@ -116,8 +118,8 @@ - - + + @@ -135,14 +137,15 @@

Most played uploaders

-

The people whose songs you have queued the most are:

+

These are the people whose songs you have requested the most.

# ArtistOthersYou# Others# You
- + + @@ -160,14 +163,14 @@

Biggest fans

-

The people that queued your songs the most are:

+

These are the people that have requested your songs the most.

# Uploader# Requests# Requests
- + From 98e43aa688e1a26fafe9090b17ba2344821f900c Mon Sep 17 00:00:00 2001 From: William Kuijltjes Date: Sat, 25 Nov 2023 07:45:46 +0100 Subject: [PATCH 4/4] Some aesthetic changes to the dark mode colors and the table borders --- .../marietje/static/marietje/css/custom.css | 50 ++++++++++++------- .../static/marietje/css/variables.css | 16 +++--- marietje/queues/templates/queues/queue.html | 6 ++- 3 files changed, 45 insertions(+), 27 deletions(-) diff --git a/marietje/marietje/static/marietje/css/custom.css b/marietje/marietje/static/marietje/css/custom.css index f229400..ec49163 100644 --- a/marietje/marietje/static/marietje/css/custom.css +++ b/marietje/marietje/static/marietje/css/custom.css @@ -31,19 +31,6 @@ a { color: var(--text-color); } -.table { - color: var(--text-color); -} - -.table-striped tbody tr:nth-of-type(odd) { - background-color: var(--background-shade); - color: var(--text-color); -} - -.table-striped > tbody > tr:nth-of-type(odd) > * { - color: var(--text-color); -} - input[type="text"], input[type="password"] { background-color: var(--background-shade-light); border: 1px solid var(--background-shade); @@ -82,6 +69,19 @@ footer { text-align: center; } +.table { + color: var(--text-color); +} + +.table-striped tbody tr:nth-of-type(odd) { + background-color: var(--background-shade); + color: var(--text-color); +} + +.table-striped > tbody > tr:nth-of-type(odd) > * { + color: var(--text-color); +} + .marietjequeue { color: #777777; } @@ -91,7 +91,24 @@ footer { } .marietjequeue-pre-start td { - border-bottom: 3px double #777777; + border-bottom: 3px double var(--text-color); +} + +.marietjequeue-post-start td { + border-top: 3px double var(--text-color); +} + +tr.requested_song{ + border-left: 1px solid var(--text-color); +} + +.currentsong { + border-bottom: 1px solid var(--text-color); + font-weight: bold; +} + +.underline_cell { + border-bottom: 1px solid var(--text-color); } .block-button { @@ -100,13 +117,10 @@ footer { transition: 1s transform ease-in-out; } -.currentsong { - border-bottom: 1px solid #DDDDDD; -} - .navbar-text { color: var(--text-color); } + .danger { color: red !important; } diff --git a/marietje/marietje/static/marietje/css/variables.css b/marietje/marietje/static/marietje/css/variables.css index 1a416fb..3c7405d 100644 --- a/marietje/marietje/static/marietje/css/variables.css +++ b/marietje/marietje/static/marietje/css/variables.css @@ -20,17 +20,19 @@ @media (prefers-color-scheme: dark) { :root { - --background-color: #202020; - --background-shade: #404040; - --background-shade-light: #696969; + --background-color: #181818; + --background-shade: #282828; + --background-shade-light: #404040; - --card-background: #696969; - --card-background-shade: #404040; - --card-background-contrast: #ffffff; + --card-background: #404040; + --card-background-shade: #282828; + --card-background-contrast: #dddddd; --title-color: #000000; --sub-title-color: #dddddd; --link-color: #007bff; - --text-color: #ffffff; + --text-color: #dddddd; + + --bs-border-color: #282828; } } \ No newline at end of file diff --git a/marietje/queues/templates/queues/queue.html b/marietje/queues/templates/queues/queue.html index 4ac8b66..5a72366 100644 --- a/marietje/queues/templates/queues/queue.html +++ b/marietje/queues/templates/queues/queue.html @@ -71,7 +71,7 @@
# User# Requests# Requests
- + @@ -84,7 +84,9 @@
Artist Title Requested By