From ae38dee1029ab88cf631bdc4bf9ca2b5bfe343ba Mon Sep 17 00:00:00 2001 From: Gjore Milevski Date: Fri, 15 Nov 2024 15:14:23 +0100 Subject: [PATCH] Replace legacy Fold grid with USWDS grid system --- overrides/components/hyperwall-cta.tsx | 51 +++++++---------- overrides/home/carousel/index.scss | 8 --- overrides/home/carousel/index.tsx | 2 +- overrides/home/component.tsx | 79 ++++++++++++++------------ 4 files changed, 65 insertions(+), 75 deletions(-) diff --git a/overrides/components/hyperwall-cta.tsx b/overrides/components/hyperwall-cta.tsx index d0fc8e8c3..e2dd98499 100644 --- a/overrides/components/hyperwall-cta.tsx +++ b/overrides/components/hyperwall-cta.tsx @@ -1,12 +1,7 @@ import React from "$veda-ui/react"; -import { - Fold, - FoldBody, -} from "$veda-ui-scripts/components/common/fold"; import styled from "$veda-ui/styled-components"; import Hug from "$veda-ui-scripts/styles/hug"; import { glsp, media } from "$veda-ui/@devseed-ui/theme-provider"; -import { ExpandLink } from "./expand-link"; import { StyledVarHeading } from "../common/style"; import { Button } from "$veda-ui/@devseed-ui/button"; import HyperwallImg from "../home/media/hyperwall-image1.png"; @@ -90,30 +85,26 @@ export default function HyperwallCTA({ width?: string }) { return ( - - - - -
- - Live Earth Dashboard - - - An interactive way to explore what's happening on Earth right now - - -
-
-
-
-
+ + +
+ + Live Earth Dashboard + + + An interactive way to explore what's happening on Earth right now + + +
+
+
) }; \ No newline at end of file diff --git a/overrides/home/carousel/index.scss b/overrides/home/carousel/index.scss index 4faffccb3..98c302f11 100644 --- a/overrides/home/carousel/index.scss +++ b/overrides/home/carousel/index.scss @@ -41,12 +41,4 @@ &--title { font-size: 1.25rem; } - } - - .carousel-grid-container { - // Overriding the default max-width of the USWDS grid container 1440px. - // However, this needs to be configured on a per instance basis as a part of - // the USWDS settings configuration file. As a workaround, we're setting this here. - // Docs: https://designsystem.digital.gov/documentation/settings/#configuring-custom-uswds-settings - max-width: 1440px; } \ No newline at end of file diff --git a/overrides/home/carousel/index.tsx b/overrides/home/carousel/index.tsx index 6c400fc40..ae691462c 100644 --- a/overrides/home/carousel/index.tsx +++ b/overrides/home/carousel/index.tsx @@ -51,7 +51,7 @@ export function DesktopCarousel () { return ( - + - - - - - One government -
- working for one planet. -
-

{description}

-
- -
-
- + + + + + + + + One government +
+ working for one planet. +
+

{description}

+
+ +
+
+ +
+
+
- - - - - Featured interagency collaborations for our planet - - - - - - + {/* Had to add a div wrapper so that the GridContainer styles are correct applied */} +
+ + + + + Featured interagency collaborations for our planet + + + + +
+ +