diff --git a/src/components/Banner/Banner.js b/src/components/Banner/Banner.js
index a3902d11..9a7035a6 100644
--- a/src/components/Banner/Banner.js
+++ b/src/components/Banner/Banner.js
@@ -26,54 +26,77 @@ const Banner = ({ data }) => {
},
}
+ const addButton = button &&
+ (button?.landing_page ? (
+
+ {button.content}
+
+ ) : (
+
+ {button.content}
+
+ ))
+
+ const showTitle = () => {
+ if (variant === "hero") {
+ return
-
-
- {variant === "hero" ?
{title}
:
{title}
}
- {/*
{summary}
*/}
-
- {button &&
- (button?.landing_page ? (
-
- {button.content}
-
- ) : (
-
- {button.content}
-
- ))}
-
-
+ {variant === "background" ?
+
+
+
{title}
+ {addButton}
+
+
:
+ <>
+
+
+ {/* {variant === "hero" ?
{title}
: {title}
} */}
+ {showTitle()}
+
+ {addButton}
+
+
-
- {/*

*/}
+
+ {/*

*/}
- {image?.url ?
-

:
-
- {animation &&
}
+ {image?.url ?
+

:
+
+ {animation && }
+
+ }
- }
-
+ >
+ }
+
)
}
diff --git a/src/components/Banner/Banner.scss b/src/components/Banner/Banner.scss
index 5ad2d3de..562e8009 100644
--- a/src/components/Banner/Banner.scss
+++ b/src/components/Banner/Banner.scss
@@ -6,6 +6,25 @@
flex-direction: column-reverse;
justify-content: space-around;
align-items: center;
+
+ &.background {
+ .button {
+ @include primaryBtn;
+ margin-top: 20px;
+ margin-bottom: 20px;
+ }
+
+ .bgImage {
+ height: 320px;
+ width: 100%;
+ }
+
+ .title-background {
+ margin-top: 120px;
+ text-align: center;
+ padding: 0px 10px;
+ }
+ }
&.hero {
height: auto;
justify-content: end;
@@ -227,6 +246,13 @@
}
@media screen and (min-width: $breakpoint-md) {
align-items: flex-start;
+
+ &.background {
+ .title-background {
+ padding: 0px 150px;
+ }
+ }
+
&.hero {
.imagen {
justify-content: flex-end;
@@ -371,6 +397,17 @@
@media screen and (min-width: $breakpoint-lg) {
flex-direction: row;
+ &.background {
+ .bgImage {
+ height: 400px;
+ }
+ .title-background {
+ h1 {
+ padding-bottom: 20px;
+ }
+ }
+ }
+
&.hero {
height: 600px;
position: relative;
@@ -439,4 +476,23 @@
}
}
}
+
+ @media screen and (min-width: $breakpoint-xl) {
+ &.background {
+ .title-background {
+ padding: 0px 350px;
+ }
+ }
+ }
+
+ @media screen and (min-width: 1560px) {
+ &.background {
+ .title-background {
+ padding: 0px 500px;
+ h1 {
+ padding-bottom: 35px;
+ }
+ }
+ }
+ }
}