diff --git a/src/assets/heroes/roadmap-hub-hero.jpg b/src/assets/heroes/roadmap-hub-hero.jpg new file mode 100644 index 00000000000..a77d0fa4017 Binary files /dev/null and b/src/assets/heroes/roadmap-hub-hero.jpg differ diff --git a/src/content/roadmap/index.md b/src/content/roadmap/index.md index d14e725c2e7..c32faad7c0f 100644 --- a/src/content/roadmap/index.md +++ b/src/content/roadmap/index.md @@ -3,7 +3,7 @@ title: Ethereum roadmap description: The path to more scalability, security and sustainability for Ethereum. lang: en template: roadmap -image: ../../assets/roadmap/roadmap-main.png +image: ../../assets/heroes/roadmap-hub-hero.jpg alt: "Ethereum roadmap" summaryPoints: buttons: diff --git a/src/pages/developers/index.tsx b/src/pages/developers/index.tsx index 3ad11d62d35..726c5322f2d 100644 --- a/src/pages/developers/index.tsx +++ b/src/pages/developers/index.tsx @@ -5,7 +5,6 @@ import { Box, chakra, Flex, - Image, SimpleGrid, TextProps, useColorModeValue, @@ -38,55 +37,6 @@ const Page = (props: ChildOnlyProp) => ( /> ) -const HeroContainer = (props: ChildOnlyProp) => ( - -) - -const HeroCopyContainer = (props: ChildOnlyProp) => ( - -) - -const HeroCopy = (props: ChildOnlyProp) => ( - -) - -const H1 = (props: ChildOnlyProp) => ( - -) - const GrayContainer = (props: ChildOnlyProp) => ( ( const MonoSubtitle = (props: ChildOnlyProp) => -const Hero = (props: ChildOnlyProp) => ( - -) - const StyledCardContainer = (props: ChildOnlyProp) => ( ) diff --git a/src/templates/roadmap.tsx b/src/templates/roadmap.tsx index 2de7de48eaf..e6775c04532 100644 --- a/src/templates/roadmap.tsx +++ b/src/templates/roadmap.tsx @@ -44,6 +44,7 @@ import Text from "../components/OldText" import GlossaryTooltip from "../components/Glossary/GlossaryTooltip" import MdLink from "../components/MdLink" import LeftNavBar from "../components/LeftNavBar" +import { HubHero } from "../components/Hero" import { Page, ContentContainer, @@ -143,11 +144,16 @@ const components = { } const RoadmapPage = ({ - data: { pageData: mdx }, + data: { pageData: mdx, heroImage }, location, }: PageProps) => { // TODO: Replace with direct token implementation after UI migration is completed const lgBp = useToken("breakpoints", "lg") + const parsedPathname = location.pathname + .split("/") + .filter((item) => item !== "") + .slice(1) + .join("/") if (!mdx?.frontmatter) throw new Error( @@ -213,58 +219,67 @@ const RoadmapPage = ({ return ( - - - - - {mdx.frontmatter.title} - {mdx.frontmatter.description} - {mdx?.frontmatter?.buttons && ( - // FIXME: remove the `ul` override once removed the corresponding - // global styles in `src/@chakra-ui/gatsby-plugin/styles.ts` - - {mdx.frontmatter.buttons.map((button, idx) => { - if (button?.to) { + {parsedPathname === "roadmap" ? ( + + ) : ( + + + + + {mdx.frontmatter.title} + {mdx.frontmatter.description} + {mdx?.frontmatter?.buttons && ( + // FIXME: remove the `ul` override once removed the corresponding + // global styles in `src/@chakra-ui/gatsby-plugin/styles.ts` + + {mdx.frontmatter.buttons.map((button, idx) => { + if (button?.to) { + return ( + + + {button.label} + + + ) + } return ( - - {button.label} - + {button?.label} + ) - } - return ( - - - - ) - })} - - )} - + )} + + + - - - - + + + )}