From 7e11a86604b3f452a6835a6e675d327bf70377fe Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Mon, 10 Jun 2024 00:36:52 +0200 Subject: [PATCH] Moved login css back to screen component, added new background, temporarily commented-out the full-screen btn in modal component --- src/assets/scss/login.scss | 105 --------------------- src/components/screens/Login.vue | 143 ++++++++++++++++++++++++++--- src/components/utilities/Modal.vue | 2 +- 3 files changed, 130 insertions(+), 120 deletions(-) delete mode 100644 src/assets/scss/login.scss diff --git a/src/assets/scss/login.scss b/src/assets/scss/login.scss deleted file mode 100644 index 71bb81d..0000000 --- a/src/assets/scss/login.scss +++ /dev/null @@ -1,105 +0,0 @@ -@import '@/assets/scss/main'; - -#bg-img { - height: 100vh; - width: 100%; - position: absolute; - z-index: -1; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - object-fit: cover; -} - -.content-wrapper { - width: 100%; - height: 100vh; - display: flex; - align-items: center; - justify-content: space-between; - flex-direction: column; - - .content-elements { - margin: 80px 0; - width: inherit; - display: flex; - flex-direction: column; - gap: 24px; - - .login-form { - width: inherit; - display: grid; - gap: 15px; - - .form-field { - display: flex; - flex-direction: column; - background-color: rgba($white, 0.5); - border-radius: 3px; - min-width: 400px; - margin: 0 auto; - - label { - color: $black; - background-color: rgba($white, 0.5); - padding: 4px; - font-size: 0.875rem; - border-radius: 3px 3px 0 0; - } - - input { - padding: 4px; - font-size: 0.875rem; - - &:focus-visible { - outline: none; - } - } - } - } - - .row-buttons { - display: flex; - justify-content: center; - gap: 8px; - - .button { - padding: 10px 0; - min-width: 100px; - - span { - margin: auto; - } - } - } - } -} - -.main-title { - margin-top: 115px; - text-align: center; - font-size: 3rem; - text-shadow: - -1px -1px 0 $gray, - 1px -1px 0 $gray, - -1px 1px 0 $gray, - 1px 1px 0 $gray; -} - -a { - text-decoration: none; -} - -// Mobile screens (< 450px) -@media screen and (max-width: 450px) { - .content-wrapper { - .content-elements { - .login-form { - .form-field { - width: 100%; - min-width: unset; - } - } - } - } -} \ No newline at end of file diff --git a/src/components/screens/Login.vue b/src/components/screens/Login.vue index 54aed7c..3f5cf59 100644 --- a/src/components/screens/Login.vue +++ b/src/components/screens/Login.vue @@ -1,9 +1,10 @@ diff --git a/src/components/utilities/Modal.vue b/src/components/utilities/Modal.vue index b1eefb7..5e539f9 100644 --- a/src/components/utilities/Modal.vue +++ b/src/components/utilities/Modal.vue @@ -4,7 +4,7 @@