From 9a2f97165ddb115a99e6c47588678bd177cf53d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Fri, 23 May 2025 13:20:07 +0200 Subject: [PATCH 1/2] fix(#3622): apply new design system theme changes to home page --- .../frontend/src/components/atoms/Typography.tsx | 9 +++++++++ govtool/frontend/src/components/atoms/types.ts | 3 +++ .../src/components/molecules/HomeCard.tsx | 7 +++++-- .../organisms/Home/ConnectWalletTo.tsx | 6 +++--- .../organisms/Home/HelpBuildGovTool.tsx | 6 +++--- .../src/components/organisms/Home/OpenToAny.tsx | 6 +++--- .../src/components/organisms/Home/Socials.tsx | 6 +++--- .../components/organisms/Home/UsefulLinks.tsx | 16 ++++++++++------ govtool/frontend/src/pages/Home.tsx | 4 ++-- 9 files changed, 41 insertions(+), 22 deletions(-) diff --git a/govtool/frontend/src/components/atoms/Typography.tsx b/govtool/frontend/src/components/atoms/Typography.tsx index 34e1af742..c11a9f3fc 100644 --- a/govtool/frontend/src/components/atoms/Typography.tsx +++ b/govtool/frontend/src/components/atoms/Typography.tsx @@ -12,8 +12,11 @@ export const Typography = ({ headline3: 36, headline4: 32, headline5: 28, + title: 27, title1: 24, + titleH3: 23, title2: 22, + body: 21, body1: 16, body2: 14, caption: 12, @@ -25,8 +28,11 @@ export const Typography = ({ headline3: 400, headline4: 600, headline5: 500, + title: 500, title1: 400, + titleH3: 500, title2: 500, + body: 400, body1: 600, body2: 500, caption: 400, @@ -38,8 +44,11 @@ export const Typography = ({ headline3: "44px", headline4: "40px", headline5: "36px", + title: "32px", + titleH3: "32px", title1: "32px", title2: "28px", + body: "28px", body1: "24px", body2: "20px", caption: "16px", diff --git a/govtool/frontend/src/components/atoms/types.ts b/govtool/frontend/src/components/atoms/types.ts index 52bf82151..219d12d4e 100644 --- a/govtool/frontend/src/components/atoms/types.ts +++ b/govtool/frontend/src/components/atoms/types.ts @@ -32,8 +32,11 @@ export type TypographyProps = Pick< | "headline3" | "headline4" | "headline5" + | "title" + | "titleH3" | "title1" | "title2" + | "body" | "body1" | "body2" | "caption"; diff --git a/govtool/frontend/src/components/molecules/HomeCard.tsx b/govtool/frontend/src/components/molecules/HomeCard.tsx index ef04545c9..b5a644075 100644 --- a/govtool/frontend/src/components/molecules/HomeCard.tsx +++ b/govtool/frontend/src/components/molecules/HomeCard.tsx @@ -19,6 +19,7 @@ export const HomeCard = ({ title, description, onCardClick }: Props) => ( border: "none", cursor: onCardClick ? "pointer" : "default", outline: "none", + p: 3.75, "&:focus": { boxShadow: "0 0 0 3px rgba(47, 98, 220, 0.5)", }, @@ -29,7 +30,9 @@ export const HomeCard = ({ title, description, onCardClick }: Props) => ( aria-label={`${title}. ${description}`} dataTestId={`home-card-${title.replace(/\s+/g, "-").toLowerCase()}`} > - {title} - {description} + + {title} + + {description} ); diff --git a/govtool/frontend/src/components/organisms/Home/ConnectWalletTo.tsx b/govtool/frontend/src/components/organisms/Home/ConnectWalletTo.tsx index 28dce86a2..1bf5f362f 100644 --- a/govtool/frontend/src/components/organisms/Home/ConnectWalletTo.tsx +++ b/govtool/frontend/src/components/organisms/Home/ConnectWalletTo.tsx @@ -106,7 +106,7 @@ export const ConnectWalletTo = () => { return ( - + {t("home.connectWalletTo.section.title")}