From 8b82ddfce3cfabfd66d34f3fbafd3fab051cd3d0 Mon Sep 17 00:00:00 2001 From: Priscilla Date: Thu, 26 Aug 2021 19:22:13 +1000 Subject: [PATCH] Centered homepage on mobile view - specificially title, buttons and margins --- frontend/src/views/Home/Home.vue | 21 +++++++++++++-------- frontend/src/views/Home/Mission.vue | 4 ++-- frontend/src/views/Home/Showcase.vue | 14 +++++++++++++- frontend/src/views/Home/SponsorUs.vue | 8 ++++++++ 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/Home/Home.vue b/frontend/src/views/Home/Home.vue index 05e50452..92035b16 100644 --- a/frontend/src/views/Home/Home.vue +++ b/frontend/src/views/Home/Home.vue @@ -12,21 +12,21 @@ --> @@ -80,4 +80,9 @@ export default { box-sizing: border-box; color: $light-color; } + +.padding{ + padding: 0.5em; +} + diff --git a/frontend/src/views/Home/Mission.vue b/frontend/src/views/Home/Mission.vue index 6c9f517e..13b22a5e 100644 --- a/frontend/src/views/Home/Mission.vue +++ b/frontend/src/views/Home/Mission.vue @@ -13,7 +13,7 @@ -

+

"{{mission.statement}}"

@@ -42,7 +42,7 @@ export default { diff --git a/frontend/src/views/Home/Showcase.vue b/frontend/src/views/Home/Showcase.vue index 5cab3043..2b5154ee 100644 --- a/frontend/src/views/Home/Showcase.vue +++ b/frontend/src/views/Home/Showcase.vue @@ -8,7 +8,7 @@
- +

{{quote}}

@@ -57,6 +57,18 @@ export default { float: right; } +@media screen and (max-width: 600px){ + .btn--join-us{ + float: none; + margin: 0 auto; + display: block; + } + + h1{ + text-align: center; + } +} + .btn--join-us:hover { transition: 0.4s; background: rgba(102,255,255, 0.2); diff --git a/frontend/src/views/Home/SponsorUs.vue b/frontend/src/views/Home/SponsorUs.vue index 1208102f..f5b34778 100644 --- a/frontend/src/views/Home/SponsorUs.vue +++ b/frontend/src/views/Home/SponsorUs.vue @@ -77,6 +77,14 @@ export default { @extend .btn--lg; } +@media screen and (max-width: 600px){ + .btn--sponsorUs{ + float: none; + margin: 0 auto; + display: block; + } +} + .btn--sponsorUs:hover { transition: 0.4s; // when on hover, change background from transparent to $brand-color with light opacity