From 4ce3c04845fb58fbfa473b5037422cb0edd3ec0e Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Sun, 27 Oct 2024 20:45:54 +0100 Subject: [PATCH 01/17] feat: update explore page -- page size, layout, art, typeface --- index.html | 2 +- public/ipfs-404.html | 2 +- src/assets/images/blueprintTexture.svg | 1 + src/assets/locales/en/common.json | 14 ++++--- src/components/ctaCard/data.ts | 7 +++- src/components/ctaCard/index.tsx | 14 +++---- src/components/daoCard/index.tsx | 2 +- src/containers/carousel/index.tsx | 3 +- src/containers/daoExplorer/daoExplorer.tsx | 8 +--- src/containers/hero/index.tsx | 45 +++++----------------- src/pages/explore.tsx | 4 +- src/pages/notFound.tsx | 2 +- src/utils/paths.ts | 2 +- 13 files changed, 40 insertions(+), 66 deletions(-) create mode 100644 src/assets/images/blueprintTexture.svg diff --git a/index.html b/index.html index 619e09137..25fcd21a9 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ diff --git a/public/ipfs-404.html b/public/ipfs-404.html index 9311d743d..d4eab7579 100644 --- a/public/ipfs-404.html +++ b/public/ipfs-404.html @@ -29,7 +29,7 @@ diff --git a/src/assets/images/blueprintTexture.svg b/src/assets/images/blueprintTexture.svg new file mode 100644 index 000000000..4f5f73b60 --- /dev/null +++ b/src/assets/images/blueprintTexture.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/locales/en/common.json b/src/assets/locales/en/common.json index bbead2169..4c9b2f1a4 100644 --- a/src/assets/locales/en/common.json +++ b/src/assets/locales/en/common.json @@ -1010,8 +1010,8 @@ }, "explore": { "hero": { - "title": "Explore the DAO World", - "subtitle1": "Build your DAO, explore communities, and find inspiration for your project all in one place." + "title": "Governed on Aragon", + "subtitle1": "Explore the organizations using our modular governance stack to secure their onchain governance." }, "explorer": { "title": "Explore DAOs", @@ -1038,6 +1038,10 @@ "linkLabel": "Learn about DAOs", "linkURL": "https://aragon.org/education-portal" }, + "build": { + "linkLabel": "Build faster", + "linkURL": "https://docs.aragon.org" + }, "toggleFilter": { "Favourites": "Following", "allDAOs": "All DAOs ", @@ -1134,13 +1138,13 @@ }, "learn": { "title": "Learn about DAOs", - "description": "Find inspiration and learn about DAOs in our education portal designed for builders at every stage of the journey.", + "description": "Explore and learn through our “How-to Guides”, DAO Education, Educational Articles and more!", "actionLabel": "Learn about DAOs" }, "build": { "title": "Build faster", - "description": "Use our governance plugins to build a DAO, dApp, or anything you can imagine on the Aragon OSx protocol.", - "actionLabel": "Coming soon" + "description": "Build something something on open-source infrastructure with governance plugins.", + "actionLabel": "Build custom DAO" }, "404": { "titleLine1": "Oh no,", diff --git a/src/components/ctaCard/data.ts b/src/components/ctaCard/data.ts index 4596c829e..83b2bd791 100644 --- a/src/components/ctaCard/data.ts +++ b/src/components/ctaCard/data.ts @@ -14,6 +14,7 @@ const CTACards = [ imgSrc: createDaoImg, subtitle: i18n.t('cta.create.description'), title: i18n.t('cta.create.title'), + isPrimary: true, }, { actionAvailable: true, @@ -22,14 +23,16 @@ const CTACards = [ imgSrc: learnImg, subtitle: i18n.t('cta.learn.description'), title: i18n.t('cta.learn.title'), + isPrimary: false, }, { - actionAvailable: false, + actionAvailable: true, actionLabel: i18n.t('cta.build.actionLabel'), - path: '', + path: i18n.t('explore.build.linkURL'), imgSrc: buildFaster, subtitle: i18n.t('cta.build.description'), title: i18n.t('cta.build.title'), + isPrimary: false, }, ]; diff --git a/src/components/ctaCard/index.tsx b/src/components/ctaCard/index.tsx index 0724c4899..3acf6e5df 100644 --- a/src/components/ctaCard/index.tsx +++ b/src/components/ctaCard/index.tsx @@ -13,6 +13,7 @@ type Props = { onClick: (path: string) => void; subtitle: string; title: string; + isPrimary: boolean; }; const CTACard: React.FC = props => { @@ -27,10 +28,10 @@ const CTACard: React.FC = props => { ) : ( ) : ( ) : ( ) : (