diff --git a/overrides/home/carousel/index.tsx b/overrides/home/carousel/index.tsx
index ac058f41d..91cb16d58 100644
--- a/overrides/home/carousel/index.tsx
+++ b/overrides/home/carousel/index.tsx
@@ -61,26 +61,17 @@ export function DesktopCarousel () {
>
{ (itemInProgress.imageOverlayText1 || itemInProgress.imageOverlayText2) && (
-
- {itemInProgress.imageOverlayText1 && (
- {itemInProgress.imageOverlayText1}
- )}
- {itemInProgress.imageOverlayText2 && (
- {itemInProgress.imageOverlayText2}
- )}
-
- )}
+
+ {itemInProgress.imageOverlayText1 && }
+ {itemInProgress.imageOverlayText2 && }
+
+ )}
@@ -116,18 +107,10 @@ function TabletCarousel() {
style={{
bottom: '10px',
left: '10px',
- color: '#fff',
- padding: '10px',
- fontSize: '3vw',
- fontWeight: 'bold',
}}
>
- {item.imageOverlayText1 && (
- {item.imageOverlayText1}
- )}
- {item.imageOverlayText2 && (
- {item.imageOverlayText2}
- )}
+ {item.imageOverlayText1 && }
+ {item.imageOverlayText2 && }
)}
@@ -140,6 +123,40 @@ function TabletCarousel() {
}
+export function TitleOverImage1({ text, fontSize }) {
+ return (
+
+ {text}
+
+ );
+}
+
+export function TitleOverImage2({ text, fontSize }) {
+ return (
+
+ {text}
+
+ );
+}
export default function Carousel() {
const { isMediumUp } = useMediaQuery();
diff --git a/overrides/home/carousel/items.js b/overrides/home/carousel/items.js
index de773723f..67233dd64 100644
--- a/overrides/home/carousel/items.js
+++ b/overrides/home/carousel/items.js
@@ -13,7 +13,9 @@ export default [
title: 'Global Sea Level Change Portal',
description: 'The Global Sea Level Change Portal is an international collaboration that offers essential information on current and projected sea level rise to inform coastal communities across the globe.',
image: new URL('../media/global_slr_v2.jpg', import.meta.url).href,
- imageAlt: 'Satellite image of coastline'
+ imageAlt: 'Satellite image of coastline',
+ imageOverlayText1: 'Global Sea Level Change Portal',
+ imageOverlayText2: 'Example second line text'
},
{
link: 'https://earth.gov/sealevel/us/',