diff --git a/src/components/ButtonLink/ButtonLink.js b/src/components/ButtonLink/ButtonLink.js
index 890ab27b..633a33f8 100644
--- a/src/components/ButtonLink/ButtonLink.js
+++ b/src/components/ButtonLink/ButtonLink.js
@@ -3,11 +3,12 @@ import React from "react"
const ButtonLink = ({ button }) => {
let internal = ""
- if (button.landing_page) internal = "/" + button.landing_page.slug
- else if (button.singleType) internal = "/" + button.singleType
+ if(!button) return null
+ if (button?.landing_page) internal = "/" + button.landing_page.slug
+ else if (button?.singleType) internal = "/" + button.singleType
if (internal) return {button.content}
- else return {button.content}
+ else return {button.content}
}
export default ButtonLink
diff --git a/src/components/DualSection/DualSection.js b/src/components/DualSection/DualSection.js
index 4bcf8989..e1dacca1 100644
--- a/src/components/DualSection/DualSection.js
+++ b/src/components/DualSection/DualSection.js
@@ -1,38 +1,30 @@
-import React from 'react'
-import './DualSection.scss'
+import React from "react"
+import ButtonLink from "../ButtonLink/ButtonLink"
+import "./DualSection.scss"
export default function DualSection({ data }) {
- const dualSectionParts = data?.dualSectionPart
+ const dualSectionParts = data?.dualSectionPart
+ const listSectionParts = dualSectionParts.map(section => (
+

diff --git a/src/components/Footer/Subscription/subscription.scss b/src/components/Footer/Subscription/subscription.scss
index 4c71118b..c73af716 100644
--- a/src/components/Footer/Subscription/subscription.scss
+++ b/src/components/Footer/Subscription/subscription.scss
@@ -55,9 +55,6 @@
input {
width: 75%;
}
- button {
- width: 35%;
- }
}
}
}
diff --git a/src/components/videoBackground/VideoBackground.js b/src/components/videoBackground/VideoBackground.js
index 6e84b0f1..314142d2 100644
--- a/src/components/videoBackground/VideoBackground.js
+++ b/src/components/videoBackground/VideoBackground.js
@@ -1,4 +1,5 @@
import React, { useEffect, useRef, useState } from "react"
+import ButtonLink from "../ButtonLink/ButtonLink"
import "./videoBackground.scss"
const VideoBackground = ({
data: { video, description, button, strapi_component, id, backgroundImage },
@@ -42,7 +43,10 @@ const VideoBackground = ({
className="container px-md-0 px-lg-3 videoBackground-container"
id={strapi_component + "-" + id}
>
-
diff --git a/src/components/videoBackground/videoBackground.scss b/src/components/videoBackground/videoBackground.scss
index edc8c6cb..2919513c 100644
--- a/src/components/videoBackground/videoBackground.scss
+++ b/src/components/videoBackground/videoBackground.scss
@@ -25,19 +25,16 @@
h5 {
width: 100%;
color: $grey;
-
}
button {
@include secondaryBtn;
+ a {
+ color: $grey;
+ }
}
}
-
-
-
-
@media screen and (min-width: $breakpoint-md) {
-
.videoBackground {
// width: calc(100% - 6em);
height: 550px;
@@ -71,7 +68,7 @@
box-shadow: 0px 0px 3px #00000044;
margin: 2em;
padding: 2em;
-
+
h5 {
color: $grey;
}
@@ -82,9 +79,7 @@
}
}
-
@media screen and (min-width: $breakpoint-lg) {
-
.videoBackground {
height: 80vh;
&-container {