diff --git a/app/static/css/styles.css b/app/static/css/styles.css index e6c1819..aab758d 100644 --- a/app/static/css/styles.css +++ b/app/static/css/styles.css @@ -151,7 +151,7 @@ h1 { } -form { +form, .card { max-width: 750px; max-height: 90%; @@ -311,14 +311,15 @@ input[type="text"]:focus-visible { } .button:hover { + color: var(--primary-color); background-color: var(--secondary-color); } .button:active, input[type="radio"]:checked+.button, input[type="checkbox"]:checked+.button { + color: var(--accent-color); background-color: var(--secondary-color); - filter: brightness(140%); } diff --git a/app/static/js/scripts.js b/app/static/js/scripts.js index 4d9b6d2..f27cdc6 100644 --- a/app/static/js/scripts.js +++ b/app/static/js/scripts.js @@ -5,7 +5,7 @@ function submitForm(event) { form = document.getElementById('create-playlist-form') addPlaylist(new FormData(form)) - hideOverlay() + hideOverlay('create-playlist-overlay') } @@ -36,13 +36,13 @@ function searchArtists(input) { // Showing/hiding elements ////////////////////// -function showOverlay() { - overlay = document.getElementById('create-playlist-overlay') +function showOverlay(id) { + overlay = document.getElementById(id) overlay.removeAttribute('hidden') } -function hideOverlay() { - overlay = document.getElementById('create-playlist-overlay') +function hideOverlay(id) { + overlay = document.getElementById(id) overlay.setAttribute('hidden', '') hideAdvancedOptions() diff --git a/app/templates/base.html b/app/templates/base.html index a252238..11ac07f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,5 +1,5 @@ - +
diff --git a/app/templates/components/emailOverlay.html b/app/templates/components/emailOverlay.html new file mode 100644 index 0000000..f6a347e --- /dev/null +++ b/app/templates/components/emailOverlay.html @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/app/templates/components/footer.html b/app/templates/components/footer.html index d0cd28f..55afc5a 100644 --- a/app/templates/components/footer.html +++ b/app/templates/components/footer.html @@ -1,5 +1,26 @@ -{% if auth_url is not defined %} - -{% endif %} \ No newline at end of file + + + +{% include 'components/emailOverlay.html' %} diff --git a/app/templates/components/overlay.html b/app/templates/components/overlay.html index 0174bd2..d1a9dde 100644 --- a/app/templates/components/overlay.html +++ b/app/templates/components/overlay.html @@ -1,4 +1,4 @@ -