From 4f171d2f45f8f58eb048465bf9882178489aac33 Mon Sep 17 00:00:00 2001 From: Shafqat Farhan Date: Fri, 4 Jun 2021 20:34:08 +0500 Subject: [PATCH] VAN-476 - Fixed base component header arc position (#305) * VAN-476 - Fixed base component header arc position * VAN-476 - Fixed base component header arc position for large screens * VAN-476 - Fixed svg margin issue * VAN-476 - Fixed svg margin issue * VAN-476 - Fixed yellow arc overlapping issue --- src/_style.scss | 72 +++++++++++++++---- src/common-components/BaseComponent.jsx | 5 +- src/common-components/LargeScreenLayout.jsx | 16 +++-- .../LargeScreenLeftLayout.jsx | 2 +- src/common-components/MediumScreenHeader.jsx | 17 +++-- 5 files changed, 87 insertions(+), 25 deletions(-) diff --git a/src/_style.scss b/src/_style.scss index 8bdb8447..32612741 100644 --- a/src/_style.scss +++ b/src/_style.scss @@ -406,15 +406,32 @@ select.form-control { .large-screen-container { background-color: $white; - background-image: linear-gradient(102.02deg, $primary 73%, $white 45%); width: 50vw; } -.medium-screen-header { - background-color: $white; - background-image: linear-gradient(102.02deg, $primary 93%, $white 7%); - width: 100vw; +.medium-screen-container { + flex-wrap: nowrap; + max-width: inherit; } + +.screen-header { + background-color: $primary; +} + +.screen-polygon { + background-color: $white; +} + +.medium-screen-svg { + fill: $primary; + overflow: inherit; +} + +.large-screen-svg { + fill: $primary; + overflow: hidden; +} + .small-screen-header { width: 100vw; } @@ -423,15 +440,14 @@ select.form-control { height: 0.5rem; background-image: linear-gradient( 102.02deg, - $brand-700, $brand-700 10%, $brand 10%, - $brand 40%, - $primary-700 40%, - $primary-700 50%, - $accent-a 50%, - $accent-a 72%, - $accent-a-light 72%, + $brand 45%, + $primary-700 45%, + $primary-700 55%, + $accent-a 55%, + $accent-a 75%, + $accent-a-light 75%, ); background-repeat: no-repeat; } @@ -450,6 +466,20 @@ select.form-control { background-repeat: no-repeat; } +.medium-large-screen-top-stripe { + height: 0.5rem; + background-image: linear-gradient( + 102.02deg, + $brand-700 10%, + $brand 10%, + $brand 65%, + $primary-700 65%, + $primary-700 75%, + $accent-a 75%, + $accent-a 75%); + background-repeat: no-repeat; +} + .small-screen-top-stripe { height: 0.5rem; background-image: linear-gradient( @@ -461,7 +491,15 @@ select.form-control { background-repeat: no-repeat; } -.svg-line { +.large-screen-svg-line { + padding-top: 0.5rem; + stroke: $accent-b; + stroke-width: 0.5rem; + width: 5.5rem; + height: 240px; +} + +.medium-screen-svg-line { padding-top: 0.5rem; stroke: $accent-b; stroke-width: 0.5rem; @@ -478,6 +516,14 @@ select.form-control { } .large-heading { + margin-left: 8px; + color: $white; + max-width: 24rem; + line-height: 78px; + font-size: 78px; +} + +.medium-heading { padding-left: 1rem; color: $white; max-width: 24rem; diff --git a/src/common-components/BaseComponent.jsx b/src/common-components/BaseComponent.jsx index 6c37b702..c8c99461 100644 --- a/src/common-components/BaseComponent.jsx +++ b/src/common-components/BaseComponent.jsx @@ -12,9 +12,12 @@ const BaseComponent = ({ children }) => (
- +
+ +
+
diff --git a/src/common-components/LargeScreenLayout.jsx b/src/common-components/LargeScreenLayout.jsx index 12eb40a5..9805492a 100644 --- a/src/common-components/LargeScreenLayout.jsx +++ b/src/common-components/LargeScreenLayout.jsx @@ -5,13 +5,19 @@ import { getConfig } from '@edx/frontend-platform'; import LargeScreenLeftLayout from './LargeScreenLeftLayout'; const LargeScreenLayout = () => ( - <> - edx -
- {/*
*/} +
+
+ edx
- +
+ + + + + +
+
); export default LargeScreenLayout; diff --git a/src/common-components/LargeScreenLeftLayout.jsx b/src/common-components/LargeScreenLeftLayout.jsx index dcce0d58..b9bbf75f 100644 --- a/src/common-components/LargeScreenLeftLayout.jsx +++ b/src/common-components/LargeScreenLeftLayout.jsx @@ -10,7 +10,7 @@ const LargeScreenLeftLayout = (props) => { return (
- +

diff --git a/src/common-components/MediumScreenHeader.jsx b/src/common-components/MediumScreenHeader.jsx index c8285003..18829b26 100644 --- a/src/common-components/MediumScreenHeader.jsx +++ b/src/common-components/MediumScreenHeader.jsx @@ -9,14 +9,14 @@ const MediumScreenHeader = (props) => { const { intl } = props; return ( - <> -
+
+
edx
- + -

+

{intl.formatMessage(messages['start.learning'])}
{intl.formatMessage(messages['with.site.name'], { siteName: getConfig().SITE_NAME })} @@ -24,7 +24,14 @@ const MediumScreenHeader = (props) => {

- +
+ + + + + +
+
); };