From ea15ec96fdd0310bb147cfdc659def0fca4167f7 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Tue, 31 Oct 2023 23:04:19 +0500 Subject: [PATCH] feat: Revamp newsletter --- src/app.jsx | 6 +- src/devhub/components/island/hero.jsx | 2 +- src/devhub/components/organism/NewsLetter.jsx | 346 +++++++++--------- src/devhub/page/{about.jsx => mission.jsx} | 0 4 files changed, 187 insertions(+), 167 deletions(-) rename src/devhub/page/{about.jsx => mission.jsx} (100%) diff --git a/src/app.jsx b/src/app.jsx index a01ac3086..05a278d80 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -120,11 +120,11 @@ function Page() { /> ); } - // ?page=about - case "about": { + // ?page=mission + case "mission": { return ( ); diff --git a/src/devhub/components/island/hero.jsx b/src/devhub/components/island/hero.jsx index fab626f4a..37239456e 100644 --- a/src/devhub/components/island/hero.jsx +++ b/src/devhub/components/island/hero.jsx @@ -176,7 +176,7 @@ return ( to={href({ widgetSrc: "${REPL_DEVHUB}/widget/app", params: { - page: "about", + page: "mission", }, })} > diff --git a/src/devhub/components/organism/NewsLetter.jsx b/src/devhub/components/organism/NewsLetter.jsx index f961712cc..c15ca339f 100644 --- a/src/devhub/components/organism/NewsLetter.jsx +++ b/src/devhub/components/organism/NewsLetter.jsx @@ -1,167 +1,187 @@ const page = props.page; -const small = page === "communities" || page === "community" || page === "feed"; +const imageLink = + "https://ipfs.near.social/ipfs/bafkreiatybj6g6i4b4azcu3zoutlcxobrzpg3k4taazhkyd7sk5tuwmb5q"; -return ( -