diff --git a/src/components/Banners/BannerTop.js b/src/components/Banners/BannerTop.js
index 4952ad2..92600d9 100644
--- a/src/components/Banners/BannerTop.js
+++ b/src/components/Banners/BannerTop.js
@@ -1,26 +1,36 @@
import React from "react"
import PropTypes from "prop-types"
-import { getImage, GatsbyImage } from "gatsby-plugin-image"
-
+import { getImage } from "gatsby-plugin-image"
+import { BgImage } from "gbimage-bridge"
import "./BannerTop.scss"
const BannerTop = ({ banner }) => {
const { image, imagePage, title, variant = "" } = banner
- const imageBanner = getImage(image?.localFile) || getImage(imagePage?.localFile)
+
+ const imageBanner =
+ getImage(image?.localFile) || getImage(imagePage?.localFile)
return (
-
- {title}
-
- {imageBanner && (
-
+ >
+
+
+ {title}
+
+
+
+ ) : (
+
+
+ {title}
+
+
)}
)
diff --git a/src/components/Banners/BannerTop.scss b/src/components/Banners/BannerTop.scss
index b2ac257..9429e4a 100644
--- a/src/components/Banners/BannerTop.scss
+++ b/src/components/Banners/BannerTop.scss
@@ -1,27 +1,27 @@
@import "../../styles/global.scss";
.BannerTop {
- position: relative;
-
&__bgImage {
min-height: 40vh;
width: 100%;
- object-fit: cover;
+ display: flex;
+ align-items: flex-end;
}
- &__title {
+ &__titleContainer {
position: absolute;
bottom: 0;
- width: 100%;
- padding: 24px 8px;
background-color: rgba(36, 39, 42, 0.4);
+ padding: 24px 8px;
+ width: 100%;
+ }
+
+ &__title {
+ text-wrap: pretty;
color: $white;
+ font-weight: $max-bold;
margin-bottom: 0;
text-transform: uppercase;
- z-index: 2;
- font-family: "Plain", sans-serif;
- font-weight: 900;
- font-size: $large;
&:not(.background) {
text-transform: none;
@@ -29,8 +29,10 @@
}
}
- &.background &__title {
- padding: 24px 8px;
+ &.background {
+ &__titleContainer {
+ padding: 24px 8px;
+ }
}
}
@@ -40,13 +42,18 @@
min-height: 55vh;
}
- &__title {
+ &__titleContainer {
padding: 30px;
+ }
+
+ &__title:not(.background) {
font-size: $extra-large;
}
- &.background &__title {
- padding: 30px 0;
+ &.background {
+ &__titleContainer {
+ padding: 30px 0;
+ }
}
}
-}
+}
\ No newline at end of file