diff --git a/src/components/DualSection/DualSection.scss b/src/components/DualSection/DualSection.scss index 6c526901..375536f2 100644 --- a/src/components/DualSection/DualSection.scss +++ b/src/components/DualSection/DualSection.scss @@ -27,8 +27,13 @@ } } - .one_sec { + color: $primary; + &-background{ + background-size: cover; + background-repeat: no-repeat; + padding: 1em 0 0 0; + } display: flex; flex-direction: row; justify-content: space-around; @@ -36,13 +41,8 @@ gap: 3em; padding: 3em 0; button { - background: $light-grey; - color: white; - font-weight: 500; - border-radius: 3px; - border: none; - padding: 0.3em; - a{ + @include primaryBtn; + a { color: inherit; } } @@ -51,30 +51,35 @@ display: block; } - &-title{ + &-title { flex-basis: 45%; - h3{ - font-weight: 400; + h3 { + font-weight: 700; + font-size: 36px; + line-height: 40px; + } + &-body{ + font-weight: 400 !important; } } - &-img{ + &-img { flex-basis: 55%; - img{ + img { width: 100%; - padding: 0 0 0 3em; + padding: 0; } } @media screen and (max-width: $breakpoint-xl) { flex-direction: column-reverse; - &-img{ + &-img { flex-basis: 100%; } - &-title{ + &-title { padding: 0 10vw; flex-basis: 100%; } } - } + diff --git a/src/components/DualSection/OneSection.js b/src/components/DualSection/OneSection.js index d0b5141e..91ebfbbb 100644 --- a/src/components/DualSection/OneSection.js +++ b/src/components/DualSection/OneSection.js @@ -1,25 +1,43 @@ import React from "react" +import { useTheme } from "../../context/themeContext" const OneSection = ({ data: { id, strapi_component, dualSectionPart } }) => { - const { title, button, description, image } = dualSectionPart - ? dualSectionPart[0] - : {} + const { theme } = useTheme() + const { + title, + button, + description, + image, + backgroundImage, + backgroundImageDark, + } = dualSectionPart ? dualSectionPart[0] : {} return ( -
{description}
- {button && ( - - )} -