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..a5ab9b29b 100644 --- a/govtool/frontend/src/components/molecules/HomeCard.tsx +++ b/govtool/frontend/src/components/molecules/HomeCard.tsx @@ -19,9 +19,16 @@ 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)", }, + "&:hover": { + boxShadow: onCardClick + ? "0 0 0 3px rgba(47, 98, 220, 0.5)" + : "2px 2px 20px 0px rgba(47, 98, 220, 0.20)", + }, + backgroundColor: "white", }} onCardClick={onCardClick} component="button" @@ -29,7 +36,11 @@ 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")}