From f6b0610447bd7619670e27a479185b32a576864b Mon Sep 17 00:00:00 2001 From: net8floz Date: Thu, 20 Feb 2020 11:31:51 -0800 Subject: [PATCH 1/3] adds mobile warning --- src/components/MobileWarning.vue | 21 +++++++++++++++++++++ src/styles/mobile-warning.scss | 18 ++++++++++++++++++ src/styles/styles.scss | 1 + src/views/Public/App.vue | 13 ++++++++----- src/views/Voting/App.vue | 11 +++++++---- 5 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 src/components/MobileWarning.vue create mode 100644 src/styles/mobile-warning.scss diff --git a/src/components/MobileWarning.vue b/src/components/MobileWarning.vue new file mode 100644 index 0000000..624b147 --- /dev/null +++ b/src/components/MobileWarning.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/styles/mobile-warning.scss b/src/styles/mobile-warning.scss new file mode 100644 index 0000000..b65506d --- /dev/null +++ b/src/styles/mobile-warning.scss @@ -0,0 +1,18 @@ +.mobile-warning { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #21252d; + color: white; + z-index: 10000; + text-align: center; + display: block; +} + +@media (min-width: 600px) { + .mobile-warning { + display: none !important; + } +} diff --git a/src/styles/styles.scss b/src/styles/styles.scss index c5d9c4c..8f022af 100644 --- a/src/styles/styles.scss +++ b/src/styles/styles.scss @@ -14,6 +14,7 @@ @import "./ballot-card.scss"; @import "./ballot-modal.scss"; @import "./buttons.scss"; + @import "./mobile-warning.scss"; .v-alert { font-size: 20px; diff --git a/src/views/Public/App.vue b/src/views/Public/App.vue index b7aef77..fed9e93 100644 --- a/src/views/Public/App.vue +++ b/src/views/Public/App.vue @@ -7,18 +7,21 @@ + From 20df57b8dbe5a5d729ce52e2fcbf0e759c184ff4 Mon Sep 17 00:00:00 2001 From: net8floz Date: Thu, 20 Feb 2020 11:32:07 -0800 Subject: [PATCH 2/3] linter fixes --- src/components/MobileWarning.vue | 5 +- src/components/SocialPopOver.vue | 3 +- src/components/Toolbars/QuizBar.vue | 14 +- src/plugins/router.js | 5 +- src/store/quiz.js | 142 ++++++++++--------- src/views/Accounts/Register/Step2.vue | 60 ++++++-- src/views/Accounts/Register/Step3.vue | 42 ++++-- src/views/Accounts/Register/index.vue | 197 +++++++++++++++----------- src/views/Quiz/QuizCountdown.vue | 20 ++- src/views/Voting/App.vue | 8 +- 10 files changed, 307 insertions(+), 189 deletions(-) diff --git a/src/components/MobileWarning.vue b/src/components/MobileWarning.vue index 624b147..f5f50e6 100644 --- a/src/components/MobileWarning.vue +++ b/src/components/MobileWarning.vue @@ -3,8 +3,9 @@

This site is not designed for mobile devices!

- As much as we appreciate mobile first design, it does not always apply. This is a code challenge and requires full use of your brain and keyboard. Please - visit this page on your phone or desktop to continue. + As much as we appreciate mobile first design, it does not always apply. + This is a code challenge and requires full use of your brain and keyboard. + Please visit this page on your phone or desktop to continue.

Show me anyways diff --git a/src/components/SocialPopOver.vue b/src/components/SocialPopOver.vue index 26307bc..360beb9 100644 --- a/src/components/SocialPopOver.vue +++ b/src/components/SocialPopOver.vue @@ -48,7 +48,8 @@ export default { }, { icon: "email", - to: "mailto:?subject=Join%20me%20in%20the%20CodeWizardsHQ%20Code%20Challenge!" + to: + "mailto:?subject=Join%20me%20in%20the%20CodeWizardsHQ%20Code%20Challenge!" } ] }) diff --git a/src/components/Toolbars/QuizBar.vue b/src/components/Toolbars/QuizBar.vue index 224e955..1623d48 100644 --- a/src/components/Toolbars/QuizBar.vue +++ b/src/components/Toolbars/QuizBar.vue @@ -37,13 +37,19 @@ Get Help - + Check The FAQ Get Help On Discord - + Get Help On Facebook @@ -63,9 +69,9 @@