diff --git a/apps/climatemappedafrica/src/components/HowItWorks/index.js b/apps/climatemappedafrica/src/components/HowItWorks/index.js
index 41a7cb1b0..0133a6093 100644
--- a/apps/climatemappedafrica/src/components/HowItWorks/index.js
+++ b/apps/climatemappedafrica/src/components/HowItWorks/index.js
@@ -1,5 +1,6 @@
+import { Link } from "@commons-ui/next";
import { RichText } from "@commons-ui/payload";
-import { Box, Button, Grid, Typography } from "@mui/material";
+import { Box, Grid, Typography } from "@mui/material";
import PropTypes from "prop-types";
import React from "react";
@@ -13,7 +14,7 @@ function HowItWorks({
link,
video,
backgroundImage,
- foregroundImage,
+ image: foregroundImage,
...props
}) {
const classes = useStyles(props);
@@ -95,16 +96,14 @@ function HowItWorks({
},
"& .vjs-poster": {
backgroundColor: "#ffffffE6",
- backgroundSize: "120%",
+ backgroundSize: {
+ xs: "120%",
+ md: "auto",
+ },
},
"& .video-js .vjs-big-play-button": {
display: "none",
},
- [theme.breakpoints.up("md")]: {
- "& .vjs-poster": {
- backgroundSize: "auto",
- },
- },
height: {
xs: theme.typography.pxToRem(227),
md: theme.typography.pxToRem(194),
@@ -138,24 +137,27 @@ function HowItWorks({
},
})}
/>
-
+
+ {link.label}
+
({
- display: "flex",
+ sx={{
alignItems: "center",
justifyContent: {
xs: "center",
md: "flex-end",
},
- marginBottom: theme.typography.pxToRem(23),
- })}
+ }}
>
({
@@ -173,6 +175,7 @@ function HowItWorks({
backgroundImage: `url(${foregroundImage.src})`,
backgroundSize: "contain",
backgroundRepeat: "no-repeat",
+ marginBottom: theme.typography.pxToRem(23),
})}
/>
diff --git a/apps/climatemappedafrica/src/payload/blocks/HowItWorks.js b/apps/climatemappedafrica/src/payload/blocks/HowItWorks.js
index 3b7a94a80..135b67e99 100644
--- a/apps/climatemappedafrica/src/payload/blocks/HowItWorks.js
+++ b/apps/climatemappedafrica/src/payload/blocks/HowItWorks.js
@@ -64,7 +64,7 @@ const HowItWorks = {
}),
image({
overrides: {
- name: "foregroundImage",
+ name: "image",
required: true,
admin: {
description: "Image to display on the right side of the video.",