From 97986372fe025824f72b765b769b95946660ecd7 Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Wed, 29 Apr 2020 21:46:10 +0200 Subject: [PATCH] started re-organization of settings tab --- public/css/modules/base.css | 6 +- public/css/modules/globals.css | 43 ++-- public/css/modules/home-tab.css | 5 + public/css/modules/settings.css | 45 +++- public/css/style.css | 1 + public/index.html | 248 ++++++++++++----------- public/js/app.js | 12 +- public/js/modules/components/home-tab.js | 23 +-- public/js/modules/tabs.js | 11 +- 9 files changed, 237 insertions(+), 157 deletions(-) create mode 100644 public/css/modules/home-tab.css diff --git a/public/css/modules/base.css b/public/css/modules/base.css index bb18978..e348183 100644 --- a/public/css/modules/base.css +++ b/public/css/modules/base.css @@ -1,7 +1,7 @@ +/* Normalizing */ * { - /* Normalizing */ - /* margin: 0; */ - /* padding: 0; */ + margin: 0; + padding: 0; box-sizing: border-box; } diff --git a/public/css/modules/globals.css b/public/css/modules/globals.css index ec28826..22c3e35 100644 --- a/public/css/modules/globals.css +++ b/public/css/modules/globals.css @@ -20,12 +20,12 @@ img.circle { display: block; width: 100%; height: auto; - transition: .5s ease; + transition: 0.5s ease; backface-visibility: hidden; } .cover_container .download_overlay { - transition: .5s ease; + transition: 0.5s ease; opacity: 0; position: absolute; top: 50%; @@ -44,7 +44,7 @@ img.circle { } .cover_container:hover .coverart { - opacity: 0.75 + opacity: 0.75; } .cover_container:hover .download_overlay { @@ -66,7 +66,8 @@ table { -webkit-border-vertical-spacing: 0px; } -table td, table th { +table td, +table th { padding: 4px 12px 4px 5px; vertical-align: middle; border: 0px black solid; @@ -80,7 +81,7 @@ table tr:nth-child(even) { background-color: var(--secondary-background); border: 0px black solid; } -th{ +th { text-align: left; } @@ -105,7 +106,7 @@ p, display: flex; align-items: center; } -.inline-flex .right{ +.inline-flex .right { margin-left: auto; } @@ -155,9 +156,9 @@ button.with_icon i { margin-left: 8px; } -input[type="text"], -input[type="password"], -input[type="number"] { +input[type='text'], +input[type='password'], +input[type='number'] { width: calc(100% - 16px); border: 0px solid black; line-height: 36px; @@ -168,7 +169,7 @@ input[type="number"] { margin-bottom: 8px; } -select{ +select { -webkit-appearance: none; appearance: none; width: 100%; @@ -191,7 +192,7 @@ input[type='checkbox'] { appearance: none; background-color: none; border: 2px solid black; - opacity: .50; + opacity: 0.5; border-radius: 2px; padding: 7px; margin: 3px; @@ -230,13 +231,23 @@ input[type='checkbox']:checked { .tab { margin: 16px 0px; } -th.sortable{ +th.sortable { -webkit-user-select: none; user-select: none; } -th.sort-asc:after {content: "\25b2";font-size: 0.7em;padding-left: 3px;line-height: 0.7em;} -th.sort-desc:after {content: "\25bc";font-size: 0.7em;padding-left: 3px;line-height: 0.7em;} -.fab{ +th.sort-asc:after { + content: '\25b2'; + font-size: 0.7em; + padding-left: 3px; + line-height: 0.7em; +} +th.sort-desc:after { + content: '\25bc'; + font-size: 0.7em; + padding-left: 3px; + line-height: 0.7em; +} +.fab { width: 56px; height: 56px; border-radius: 28px; @@ -245,7 +256,7 @@ th.sort-desc:after {content: "\25bc";font-size: 0.7em;padding-left: 3px;line-hei color: var(--accent-text); cursor: pointer; } -.fab i{ +.fab i { font-size: 24px; padding: 16px; } diff --git a/public/css/modules/home-tab.css b/public/css/modules/home-tab.css new file mode 100644 index 0000000..daf30bf --- /dev/null +++ b/public/css/modules/home-tab.css @@ -0,0 +1,5 @@ +.top-tracks-position { + padding: 12px; + text-align: center; + cursor: default; +} diff --git a/public/css/modules/settings.css b/public/css/modules/settings.css index 34a026f..3859a40 100644 --- a/public/css/modules/settings.css +++ b/public/css/modules/settings.css @@ -1,4 +1,31 @@ -/* Settings */ +#settings_heading { + font-size: 2.5rem; + margin-bottom: 35px; +} + +#settings_picture { + width: 125px; + height: 125px; +} + +#logged_in_info { + height: 250px; + display: flex; + flex-direction: column; + justify-content: space-evenly; + align-items: center; +} + +#logged_in_info.hide { + display: none; +} + +#log_info { + display: flex; + flex-direction: column; + align-items: center; +} + #open_login_prompt { margin: 8px 0px; } @@ -18,7 +45,15 @@ padding: 6px 0px; } -#logged_in_info { - display: none; - margin-bottom: 12px; -} \ No newline at end of file +.settings_group { + display: flex; + flex-direction: column; + justify-content: center; + border-top: 1px solid #8f8f8f; /* Need less opacity */ + padding-top: 20px; + padding-bottom: 20px; +} + +.settings_group > * { + margin-bottom: 15px; +} diff --git a/public/css/style.css b/public/css/style.css index d52d085..67559f3 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -16,3 +16,4 @@ @import './modules/download-tab.css'; @import './modules/track-preview.css'; @import './modules/tracklist-tab.css'; +@import './modules/home-tab.css'; diff --git a/public/index.html b/public/index.html index 2f89ce0..5306cb9 100644 --- a/public/index.html +++ b/public/index.html @@ -249,76 +249,74 @@

No Playlists found

Home

-
-

Top Tracks

- - - - - - - - - -
- play_arrow - {{track.title + (track.title_version ? ' '+track.title_version : '')}} - {{track.artist.name}} - {{track.album.title}}{{convertDuration(track.duration)}}get_app -
-
-
-

Top Albums

-
-
-
- -
get_app
-
-

{{ release.title }}

-

{{ 'by '+release.artist.name }}

-
-
-
-
-

Top Artists

-
-
-
- -
get_app
-
-

{{ release.name }}

-
-
-
-
-

Top Playlists

-
-
-
- -
get_app
-
-

{{ release.title }}

-

{{ 'by '+release.user.name+' - '+release.nb_tracks+' tracks' }}

-
-
-
+
+

Top Tracks

+ + + + + + + + + + +
{{ track.position }} + play_arrow + {{track.title + (track.title_version ? ' '+track.title_version : '')}} + {{track.artist.name}} + {{track.album.title}}{{convertDuration(track.duration)}}get_app +
+
+
+

Top Albums

+
+
+
+ +
get_app
+
+

{{ release.title }}

+

{{ 'by '+release.artist.name }}

+
+
+
+
+

Top Artists

+
+
+
+ +
get_app
+
+

{{ release.name }}

+
+
+
+
+

Top Playlists

+
+
+
+ +
get_app
+
+

{{ release.title }}

+

{{ 'by '+release.user.name+' - '+release.nb_tracks+' tracks' }}

+
+
+
@@ -381,76 +379,96 @@

{{ subtitle }}