From f0907523b7f5af4546bddea2213fdff12de51e58 Mon Sep 17 00:00:00 2001 From: Hameed Jimoh Date: Thu, 8 Jul 2021 18:40:42 +0100 Subject: [PATCH] fix: Implements reposive designs across all screen sizes --- src/sass/abstracts/_mixins.scss | 51 ++++++++++ src/sass/base/_base.scss | 1 + src/sass/components/_rectangularCard.scss | 4 + src/sass/components/_squareCard.scss | 10 ++ src/sass/index.css | 119 ++++++++++++++++++++-- src/sass/index.css.map | 2 +- src/sass/layout/_aside.scss | 39 ++++++- src/sass/layout/_main.scss | 9 +- src/sass/layout/_section.scss | 17 ++++ src/store/action-creators/index.ts | 10 +- src/store/reducers/weatherReducer.ts | 1 - 11 files changed, 245 insertions(+), 18 deletions(-) diff --git a/src/sass/abstracts/_mixins.scss b/src/sass/abstracts/_mixins.scss index 902903c..89df20e 100644 --- a/src/sass/abstracts/_mixins.scss +++ b/src/sass/abstracts/_mixins.scss @@ -19,3 +19,54 @@ justify-content: center; align-items: center; } + +// MEDIA QUERIES +@mixin breakpoint($value) { + @if $value == xxxs { + @media (max-width: 320px) { + @content; + } + } + + @if $value == xxs { + @media (max-width: 450px) { + @content; + } + } + + @if $value == smx { + @media (max-width: 760px) { + @content; + } + } + + @if $value == xs { + @media (max-width: 599px) { + @content; + } + } + + @if $value == sm { + @media (max-width: 960px) { + @content; + } + } + + @if $value == md { + @media (max-width: 1279px) { + @content; + } + } + + @if $value == lg { + @media (max-width: 1919px) { + @content; + } + } + + @if $value == xl { + @media (min-width: 1920px) { + @content; + } + } +} diff --git a/src/sass/base/_base.scss b/src/sass/base/_base.scss index 8142728..ecfa25f 100644 --- a/src/sass/base/_base.scss +++ b/src/sass/base/_base.scss @@ -14,6 +14,7 @@ body { background: $color-primary; color: $color-white; font-family: "Raleway", sans-serif; + max-height: 100%; } ul { diff --git a/src/sass/components/_rectangularCard.scss b/src/sass/components/_rectangularCard.scss index a2b810e..242aa4d 100644 --- a/src/sass/components/_rectangularCard.scss +++ b/src/sass/components/_rectangularCard.scss @@ -3,6 +3,10 @@ grid-template-columns: 1fr 1fr; grid-gap: 3em; + @include breakpoint(xs) { + grid-template-columns: 1fr; + } + &__content { background: $color-secondary; padding: 1.5em; diff --git a/src/sass/components/_squareCard.scss b/src/sass/components/_squareCard.scss index ebe2ca3..8129293 100644 --- a/src/sass/components/_squareCard.scss +++ b/src/sass/components/_squareCard.scss @@ -11,6 +11,16 @@ @include flexVertical; background: $color-secondary; + @include breakpoint(md) { + margin-bottom: 2em; + } + + &:not(:last-of-type) { + @include breakpoint(xxs) { + margin-right: 1em; + } + } + &__title { font-size: 1.2rem; font-weight: 500; diff --git a/src/sass/index.css b/src/sass/index.css index de72e85..e514765 100644 --- a/src/sass/index.css +++ b/src/sass/index.css @@ -15,6 +15,7 @@ body { background: #100e1d; color: #e7e7eb; font-family: "Raleway", sans-serif; + max-height: 100%; } ul { @@ -33,6 +34,13 @@ a { grid-gap: 3em; } +@media (max-width: 599px) { + .rectangular__card { + -ms-grid-columns: 1fr; + grid-template-columns: 1fr; + } +} + .rectangular__card__content { background: #1e213a; padding: 1.5em; @@ -194,6 +202,18 @@ a { background: #1e213a; } +@media (max-width: 1279px) { + .card .squareCard { + margin-bottom: 2em; + } +} + +@media (max-width: 450px) { + .card .squareCard:not(:last-of-type) { + margin-right: 1em; + } +} + .card .squareCard__title { font-size: 1.2rem; font-weight: 500; @@ -369,12 +389,36 @@ a { .aside { background: #1e213a; - height: 100%; + min-height: 100%; position: relative; overflow: hidden; padding: 3em 5em 5em; -webkit-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} + +@media (max-width: 1279px) { + .aside { + padding-left: 2em; + padding-right: 2em; + } +} + +@media (max-width: 960px) { + .aside { + padding-left: 5em; + padding-right: 5em; + } +} + +@media (max-width: 450px) { + .aside { + padding-left: 2em; + padding-right: 2em; + } } .aside__content { @@ -396,6 +440,36 @@ a { opacity: 0.075; } +@media (max-width: 960px) { + .aside__background { + max-width: 100em; + width: 100em; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + } +} + +@media (max-width: 599px) { + .aside__background { + max-width: 75em; + width: 75em; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + } +} + +@media (max-width: 450px) { + .aside__background { + max-width: 60em; + width: 60em; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + } +} + .aside__wrapper { display: -webkit-box; display: -ms-flexbox; @@ -554,15 +628,48 @@ a { } .main { - display: -ms-grid; - display: grid; - -ms-grid-columns: 1fr 2fr; - grid-template-columns: 1fr 2fr; - height: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + min-height: 100vh; +} + +@media (max-width: 960px) { + .main { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + } } .section { padding: 3em 7em 2em; + min-height: 100%; + -webkit-box-flex: 2; + -ms-flex: 2; + flex: 2; +} + +@media (max-width: 1279px) { + .section { + padding-left: 3em; + padding-right: 3em; + } +} + +@media (max-width: 599px) { + .section { + padding-left: 5em; + padding-right: 5em; + } +} + +@media (max-width: 450px) { + .section { + padding-left: 3em; + padding-right: 3em; + } } .section .section__temperature { diff --git a/src/sass/index.css.map b/src/sass/index.css.map index b5a691f..59917cf 100644 --- a/src/sass/index.css.map +++ b/src/sass/index.css.map @@ -1,6 +1,6 @@ { "version": 3, - "mappings": "AGAA,AAAA,CAAC;AACD,CAAC,AAAA,QAAQ;AACT,CAAC,AAAA,OAAO,CAAC;EACP,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,CAAC;EACT,UAAU,EAAE,UAAU;CACvB;;AAED,AAAA,IAAI,CAAC;EACH,SAAS,EAAE,KAAK;CACjB;;AAED,AAAA,IAAI,CAAC;EACH,UAAU,EDZI,OAAO;ECarB,KAAK,EDVO,OAAO;ECWnB,WAAW,EAAE,qBAAqB;CACnC;;AAED,AAAA,EAAE,CAAC;EACD,UAAU,EAAE,IAAI;CACj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C,OAAO;CS2Cd;;AA/CP,AA4CQ,QA5CA,CAwCD,yCAAY,AAIV,OAAO,CAAC;EACP,UAAU,ET5BA,OAAO;CS6BlB;;AAKN,AAAD,eAAQ,CAAC;EACP,MAAM,EAAE,IAAI;EVnCd,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,MAAM;EACvB,WAAW,EAAE,MAAM;CUwClB;;AAJE,AAAD,qBAAO,CAAC;EACN,SAAS,EAAE,IAAI;EACf,KAAK,ETtCI,OAAgB;CSuC1B;;AAGF,AAAD,oBAAa,CAAC;EACZ,UAAU,EAAE,GAAG;CAOhB;;AALE,AAAD,2BAAQ,CAAC;EACP,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,GAAG;EAChB,aAAa,EAAE,GAAG;CACnB", "sources": [ "index.scss", "abstracts/_mixins.scss", diff --git a/src/sass/layout/_aside.scss b/src/sass/layout/_aside.scss index 40e234f..47ef104 100644 --- a/src/sass/layout/_aside.scss +++ b/src/sass/layout/_aside.scss @@ -1,10 +1,26 @@ .aside { background: $color-secondary; - height: 100%; + min-height: 100%; position: relative; overflow: hidden; padding: 3em 5em 5em; transition: all 0.25s ease-in-out; + flex: 1; + + @include breakpoint(md) { + padding-left: 2em; + padding-right: 2em; + } + + @include breakpoint(sm) { + padding-left: 5em; + padding-right: 5em; + } + + @include breakpoint(xxs) { + padding-left: 2em; + padding-right: 2em; + } &__content { transition: all 0.25s ease-in-out; @@ -22,6 +38,27 @@ top: 10em; left: -11em; opacity: 0.075; + + @include breakpoint(sm) { + max-width: 100em; + width: 100em; + left: 50%; + transform: translateX(-50%); + } + + @include breakpoint(xs) { + max-width: 75em; + width: 75em; + left: 50%; + transform: translateX(-50%); + } + + @include breakpoint(xxs) { + max-width: 60em; + width: 60em; + left: 50%; + transform: translateX(-50%); + } } &__wrapper { diff --git a/src/sass/layout/_main.scss b/src/sass/layout/_main.scss index 389eb81..e28be8b 100644 --- a/src/sass/layout/_main.scss +++ b/src/sass/layout/_main.scss @@ -1,5 +1,8 @@ .main { - display: grid; - grid-template-columns: 1fr 2fr; - height: 100%; + display: flex; + min-height: 100vh; + + @include breakpoint(sm) { + flex-direction: column; + } } diff --git a/src/sass/layout/_section.scss b/src/sass/layout/_section.scss index dfaceaf..49269b3 100644 --- a/src/sass/layout/_section.scss +++ b/src/sass/layout/_section.scss @@ -1,5 +1,22 @@ .section { padding: 3em 7em 2em; + min-height: 100%; + flex: 2; + + @include breakpoint(md) { + padding-left: 3em; + padding-right: 3em; + } + + @include breakpoint(xs) { + padding-left: 5em; + padding-right: 5em; + } + + @include breakpoint(xxs) { + padding-left: 3em; + padding-right: 3em; + } .section__temperature { display: flex; diff --git a/src/store/action-creators/index.ts b/src/store/action-creators/index.ts index ea0e236..e659a57 100644 --- a/src/store/action-creators/index.ts +++ b/src/store/action-creators/index.ts @@ -97,12 +97,10 @@ export const getCurrentLocationPosition = () => (dispatch: Dispatch) => { }); }, (error) => { - if (error.code === 1) { - dispatch({ - type: ActionTypes.GET_CURRENT_LOCATION_POSITION_DENIED, - payload: error.message, - }); - } + dispatch({ + type: ActionTypes.GET_CURRENT_LOCATION_POSITION_DENIED, + payload: error.message, + }); } ); }; diff --git a/src/store/reducers/weatherReducer.ts b/src/store/reducers/weatherReducer.ts index a04559c..69f6ff2 100644 --- a/src/store/reducers/weatherReducer.ts +++ b/src/store/reducers/weatherReducer.ts @@ -103,7 +103,6 @@ const weatherReducer = ( case ActionTypes.GET_LOCATION_POSITION: return { ...state, - loading: false, woeid: action.payload, error: null, };