diff --git a/src/components/Banner/Banner.js b/src/components/Banner/Banner.js
index a9da2101..c3ab5314 100644
--- a/src/components/Banner/Banner.js
+++ b/src/components/Banner/Banner.js
@@ -1,4 +1,4 @@
-import React from "react"
+import React, { useEffect, useState } from "react"
import { Link } from "gatsby"
import ReactMarkdown from "react-markdown"
import Lottie from 'react-lottie'
@@ -17,7 +17,9 @@ const Banner = ({ data }) => {
const diagonalReverseState =
variant === "diagonalReverse" ? "col-md-4" : "col-lg-6"
- console.log(image)
+ console.log(image?.url)
+
+ const [lottieLight, setLottieLight] = useState(null)
const defaultOptions = {
loop: true,
@@ -25,9 +27,18 @@ const Banner = ({ data }) => {
rendererSettings: {
preserveAspectRatio: 'xMidYMid slice'
},
- path: image?.url,
}
+ useEffect(() => {
+ //if (image.mime === "application/json") {
+
+ fetch(image?.url, {
+ method: 'GET', // or 'PUT'
+ }).then(res => res.json())
+ .catch(error => console.error('Error:', error))
+ .then(res => setLottieLight(res));
+ }, [])
+
return (
{
>
{/*

*/}
- {image?.mime === "application/json" ?
:
![]()
:

}
diff --git a/src/components/DualSection/DualSection.scss b/src/components/DualSection/DualSection.scss
index 1ccf03a1..4f471022 100644
--- a/src/components/DualSection/DualSection.scss
+++ b/src/components/DualSection/DualSection.scss
@@ -53,6 +53,7 @@
&-img {
flex-basis: 55%;
img {
+ border-radius: 8px;
width: 100%;
padding: 0;
}
diff --git a/src/components/Text/Text.scss b/src/components/Text/Text.scss
index eb6c0492..e0a7fc16 100644
--- a/src/components/Text/Text.scss
+++ b/src/components/Text/Text.scss
@@ -13,7 +13,7 @@
background-color: $primary-container;
border-radius: 10px;
p:first-child {
- padding-top: 1rem;
+ padding-top: 29px;
}
p {
color: $primary;
@@ -26,13 +26,27 @@
padding-bottom: 3rem;
.notTitle {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
color: $primary;
border-radius: 20px;
background-color: $primary-container;
- padding: 1rem;
- margin: 1.5rem 0rem;
- p:nth-last-child(-n + 2) {
+ padding: 0rem 1rem;
+
+ p:first-child {
+ padding-top: 29px;
+ }
+
+ h6 {
margin-bottom: 0px;
+
+ &:last-child {
+ padding-bottom: 29px;
+ }
+ strong {
+ font-size: 16px !important;
+ }
}
}
}