From 524a2d3a4f77b6c21ba12ac5b8ca7265c82a2f30 Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Sun, 5 May 2024 10:33:33 +0300 Subject: [PATCH] fixing all comments --- _data/pages/grant.yml | 1 + public/assets/grant_deliverables.svg | 55 --------- workspaces/cms-config/src/blocks.ts | 6 + workspaces/cms-data/src/pages.ts | 1 + workspaces/website/src/blocks/Block.tsx | 1 + .../website/src/blocks/DisplayCardItems.tsx | 3 +- .../website/src/blocks/ListCardItems.tsx | 2 +- .../src/components/Card/DisplayCard.tsx | 114 +++++++++--------- .../src/components/HeroImage/HeroImage.tsx | 5 + 9 files changed, 74 insertions(+), 114 deletions(-) delete mode 100644 public/assets/grant_deliverables.svg diff --git a/_data/pages/grant.yml b/_data/pages/grant.yml index 8a6e100a93..a272b0bb02 100644 --- a/_data/pages/grant.yml +++ b/_data/pages/grant.yml @@ -10,6 +10,7 @@ blocks: buttonUrl: "" title: Seed Grant Program description: "" + darkTextColor: true - type: card_display title: Application Process button: Apply Now diff --git a/public/assets/grant_deliverables.svg b/public/assets/grant_deliverables.svg deleted file mode 100644 index 12229e9dfa..0000000000 --- a/public/assets/grant_deliverables.svg +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/workspaces/cms-config/src/blocks.ts b/workspaces/cms-config/src/blocks.ts index bb2be972b8..19a2832dcc 100644 --- a/workspaces/cms-config/src/blocks.ts +++ b/workspaces/cms-config/src/blocks.ts @@ -597,6 +597,12 @@ export const blocks = [ widget: "string", crowdin: true, }, + { + name: "darkTextColor", + widget: "boolean", + required: false, + crowdin: true, + }, { name: "description", widget: "string", diff --git a/workspaces/cms-data/src/pages.ts b/workspaces/cms-data/src/pages.ts index 0b6be11488..2e19aef0cd 100644 --- a/workspaces/cms-data/src/pages.ts +++ b/workspaces/cms-data/src/pages.ts @@ -137,6 +137,7 @@ export interface PageHeaderBlock { export interface HeroBlock { readonly type: "hero"; + readonly darkTextColor?: boolean; readonly title: string; readonly description: string; readonly variant?: diff --git a/workspaces/website/src/blocks/Block.tsx b/workspaces/website/src/blocks/Block.tsx index ef6bfdbac2..5a795449b1 100644 --- a/workspaces/website/src/blocks/Block.tsx +++ b/workspaces/website/src/blocks/Block.tsx @@ -169,6 +169,7 @@ export function Block({ buttonText={block.buttonText} buttonUrl={block.buttonUrl} leftBoxMaxWidth={block.leftBoxMaxWidth} + darkTextColor={block.darkTextColor} /> ); diff --git a/workspaces/website/src/blocks/DisplayCardItems.tsx b/workspaces/website/src/blocks/DisplayCardItems.tsx index 019690ed4a..0bf24336b3 100644 --- a/workspaces/website/src/blocks/DisplayCardItems.tsx +++ b/workspaces/website/src/blocks/DisplayCardItems.tsx @@ -30,6 +30,7 @@ export default function DisplayCardItems({ diff --git a/workspaces/website/src/blocks/ListCardItems.tsx b/workspaces/website/src/blocks/ListCardItems.tsx index 551b2c7cad..da498b1688 100644 --- a/workspaces/website/src/blocks/ListCardItems.tsx +++ b/workspaces/website/src/blocks/ListCardItems.tsx @@ -29,7 +29,7 @@ export default function ListCardItems({ {title} diff --git a/workspaces/website/src/components/Card/DisplayCard.tsx b/workspaces/website/src/components/Card/DisplayCard.tsx index 8a5e61ac9a..10dcc5a424 100644 --- a/workspaces/website/src/components/Card/DisplayCard.tsx +++ b/workspaces/website/src/components/Card/DisplayCard.tsx @@ -27,66 +27,66 @@ const images = { export const DisplayCard = (props: Props) => { return ( - - + - - - - {images[props?.title]} - - - - - - {props.index} - - - {props.title} - - - {props.description} + + + {images[props?.title]} - + + + + {props.index} + + + {props.title} + + + {props.description} + + ); }; diff --git a/workspaces/website/src/components/HeroImage/HeroImage.tsx b/workspaces/website/src/components/HeroImage/HeroImage.tsx index 846f67f953..56174fc333 100644 --- a/workspaces/website/src/components/HeroImage/HeroImage.tsx +++ b/workspaces/website/src/components/HeroImage/HeroImage.tsx @@ -16,6 +16,7 @@ import React from "react"; type Props = { title: string; description: string | React.ReactNode; + darkTextColor?: boolean; variant?: | "wallets" | "block_explorers" @@ -140,6 +141,7 @@ export const HeroImage = ({ buttonUrl, onButtonClick, leftBoxMaxWidth, + darkTextColor = false, }: Props) => { return ( {title}