From 3067fcbfc7f34fd8589f2a7b1a01a5ad7a3269b6 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Wed, 16 Dec 2020 15:57:44 +0100 Subject: [PATCH] Style joining page --- src/assets/css/chat.scss | 6 -- src/assets/css/join.scss | 115 +++++++++++++++++++++++++++++++++ src/assets/css/main.scss | 9 ++- src/components/Join.vue | 52 +++++++++++++-- src/services/matrix.service.js | 38 +++++++++++ 5 files changed, 206 insertions(+), 14 deletions(-) create mode 100644 src/assets/css/join.scss diff --git a/src/assets/css/chat.scss b/src/assets/css/chat.scss index a2908cb..d0772d4 100644 --- a/src/assets/css/chat.scss +++ b/src/assets/css/chat.scss @@ -1,11 +1,5 @@ @import "@/assets/css/main.scss"; -$chat-background: $background; -$chat-standard-padding: 32px; -$chat-standard-padding-s: 16px; -$chat-standard-padding-xs: 8px; -$chat-text-size: 0.7pt; - .chat-root { position: absolute; left: 0px; diff --git a/src/assets/css/join.scss b/src/assets/css/join.scss new file mode 100644 index 0000000..c30da01 --- /dev/null +++ b/src/assets/css/join.scss @@ -0,0 +1,115 @@ +@import "@/assets/css/main.scss"; + +.v-btn.btn-light { + font-family: sans-serif; + font-weight: 700; + font-size: 11.54 * $chat-text-size; + color: black; + background-color: white !important; + border: 1px solid black; + border-radius: $chat-button-height / 2; + min-height: 0; + height: $chat-button-height !important; + margin-top: $chat-standard-padding-xs; + margin-bottom: $chat-standard-padding-xs; +} + +.v-btn.btn-dark { + font-family: sans-serif; + font-weight: 700; + font-size: 11.54 * $chat-text-size; + color: white; + background-color: black !important; + border: 1px solid black; + border-radius: $chat-button-height / 2; + min-height: 0; + height: $chat-button-height !important; + margin-top: $chat-standard-padding-xs; + margin-bottom: $chat-standard-padding-xs; +} + +.join-root { + margin-top: 10%; + padding: 40px; + + .btn-login { + position: absolute; + top: 0; + right: 0; + margin: 20px; + } +} + +.join-avatar { + background-color: #ededed; + width: 100px !important; + height: 100px !important; + margin-bottom: 40px; +} + +.join-title { + font-family: "Poppins", sans-serif; + font-style: normal; + font-weight: 800; + font-size: 40 * $chat-text-size; + line-height: 108.5%; + /* or 43px */ + text-align: center; + letter-spacing: -0.8px; + + color: #000000; + overflow-wrap: break-word; +} + +.join-message { + font-family: sans-serif; + font-weight: 400; + font-size: 16 * $chat-text-size; + color: black; + margin-top: 20px; + margin-bottom: 20px; +} + +.join-privacy { + font-family: sans-serif; + font-weight: 400; + font-size: 12 * $chat-text-size; + color: #464646; + margin-top: 20px; + margin-bottom: 20px; + a { + color: #464646; + } +} + +.join-or-divider { + display: block; + margin-top: 20px; + margin-bottom: 20px; + margin-left: 20px; + margin-right: 20px; + height: 20px; + color: #666666; + text-align: center; + line-height: var(--v-theme-title-featured-line-height); + position: relative; + font-family: sans-serif; + font-style: normal; + font-weight: bold; + font-size: 9.88014 * $chat-text-size; + line-height: 140%; + /* identical to box height, or 14px */ + letter-spacing: 0.29px; + color: #9C9CAE; + + &::before { + position: absolute; + width: 100%; + left: 0; + right: 0; + top: 5px; + height: 1px; + background: #9C9CAE; + content: " "; + } +} \ No newline at end of file diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss index 07dc4a4..7bacc20 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -1,3 +1,10 @@ $background: #ffffff; -@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap'); \ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap'); + +$chat-background: $background; +$chat-standard-padding: 32px; +$chat-standard-padding-s: 16px; +$chat-standard-padding-xs: 8px; +$chat-text-size: 0.7pt; +$chat-button-height: 50px; \ No newline at end of file diff --git a/src/components/Join.vue b/src/components/Join.vue index 80997d0..14a1f65 100644 --- a/src/components/Join.vue +++ b/src/components/Join.vue @@ -1,13 +1,28 @@