diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ff53284b34d..d9cb6430cf8 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -206,28 +206,28 @@ const HomePage = ({ description: "Create accounts, manage assets", href: "/wallets/find-wallet/", Svg: PickWalletIcon, - colorClass: "text-primary hover:text-primary/80", // TODO: Confirm hover style + className: "text-primary hover:text-primary/80", // TODO: Confirm hover style }, { label: "Get ETH", description: "The currency of Ethereum", href: "/get-eth/", Svg: EthTokenIcon, - colorClass: "text-accent-a hover:text-accent-a/80", + className: "text-accent-a hover:text-accent-a/80", }, { label: "Choose a network", description: "Enjoy minimal fees", href: "/layer-2/", // TODO: Update with new networks page when ready Svg: ChooseNetworkIcon, - colorClass: "text-accent-b hover:text-accent-b/80", + className: "text-accent-b hover:text-accent-b/80", }, { label: "Try apps", description: "See what Ethereum can do", href: "/dapps/", Svg: TryAppsIcon, - colorClass: "text-accent-c hover:text-accent-c/80", + className: "text-accent-c hover:text-accent-c/80", }, ] @@ -279,6 +279,39 @@ const HomePage = ({ }) .slice(0, 4) // Show next 4 events on the calendar + const joinActions = [ + { + Svg: Layer2Icon, + label: "How to contribute", + href: "/contributing/", + className: "text-accent-c hover:text-accent-c/80", // TODO: Confirm hover style + description: + "Find out all the different ways you can help ethereum.org grow and be better.", + }, + { + Svg: FaGithub, + label: "GitHub", + href: GITHUB_REPO_URL, + className: "text-accent-a hover:text-accent-a/80", + description: "Contribute to code, content, articles etc.", + }, + { + Svg: FaDiscord, + label: "Discord", + href: "/discord/", + className: "text-primary hover:text-primary/80", + description: + "To ask questions, coordinate contribution and join community calls.", + }, + { + Svg: FaXTwitter, + label: "Twitter", + href: "https://x.com/EthDotOrg", + className: "text-accent-b hover:text-accent-b/80", + description: "To keep up with our updates and important news.", + }, + ] + return (
- {subHeroCTAs.map(({ label, description, href, colorClass, Svg }) => ( - - {description} - + {subHeroCTAs.map(({ label, description, href, className, Svg }) => ( + <> + + {description} + + + {description} + + ))}
@@ -624,49 +670,19 @@ const HomePage = ({

{/* TODO: Fix icon sizing, fix button/icon layout on mobile */} -
- -

- Find out all the different ways you can help ethereum.org grow - and be better. -

-
- -

- Contribute to code, content, articles etc. -

-
- -

- To ask questions, coordinate contribution and join community - calls. -

-
- -

- To keep up with our updates and important news. -

-
+
+ {joinActions.map(({ Svg, label, href, className, description }) => ( + +

{description}

+
+ ))}