diff --git a/devcon/cms/pages/road_to_devcon.mdx b/devcon/cms/pages/road_to_devcon.mdx index 03025ff6a..fb37cd03d 100644 --- a/devcon/cms/pages/road_to_devcon.mdx +++ b/devcon/cms/pages/road_to_devcon.mdx @@ -1,9 +1,9 @@ --- journey: - section_one: "Hey there, I'm Deva, the Devcon unicorn. Since the dawn of Devcon I have been a guiding light to the wonderstruck wanderers of Ethereum's vast universe, supporting them to find their tribe and\_ \_ \_ \_ \_ \_ \_ community.\n\nAnd now, the Road to Devcon calls again, inviting a diverse array of mavericks, just like you.\n" - section_two: "## Why Devcon is for You\n\nDevcon is the Ethereum conference for developers, thinkers, and makers. You’ll meet the smartest and kindest people in the Ethereum ecosystem IRL, and gain insight into a unique culture that is challenging\_to fully understand just online.\n\nAt Devcon, we explore Ethereum together through fiery dialogues, workshops, and peer-to-peer\_ \_ \_ \_ \_ \_interactions. It’s where you are welcomed by a tribe that nurtures your growth, and where you build new\_relationships and networks.\n" - section_three: "## What is the Road to Devcon?\n\nThe Road to Devcon (RTD) is a series of Ethereum events and educational initiatives leading up to\_ \_ \_ Devcon, organized by the active local communities in Southeast Asia.\n\nExplorers like you are shaping the road together, diving into workshops and talks, empowered by\_ \_ \_ \_ \_ Ethereum’s promises and the motivation to bring this innovation to local communities, creating\_ \_ \_ \_ \_ \_ \_ opportunities to learn and connect.\n" - section_four: "## Become a leader: Organize an event or start a community\n\nIf you're in SEA, community-driven, and passionate about Ethereum's positive impact, we're here to\_ \_ \_ \_ \_support you! This is your call to adventure, to be part of something bigger, something wilder.\n\nImagine organizing events within your community to showcase Ethereum, or starting a new grassroots\_ \_ \_ \_community through meetups and other educational initiatives focused on Ethereum.\n\nIf a fire is ignited within you, now is the time to apply for the RTD grants and be a part of building\_ \_ \_ \_ \_ \_ \_ \_ our empowered, decentralized future. \U0001F984✨\n" + section_one: "#### Hey there, I'm Deva, the Devcon unicorn. Since the dawn of Devcon I have been a guiding light to the wonderstruck wanderers of Ethereum's vast universe, supporting them to find their tribe and\_community.\n\nAnd now, the Road to Devcon calls again, inviting a diverse array of mavericks, just like you.\n" + section_two: "## Why Devcon is for You\n\nDevcon is the Ethereum conference for developers, thinkers, and makers. You’ll meet the smartest and kindest people in the Ethereum ecosystem IRL, and gain insight into a unique culture that is challenging\_to fully understand just online.\n\nAt Devcon, we explore Ethereum together through fiery dialogues, workshops, and peer-to-peer\_interactions. It’s where you are welcomed by a tribe that nurtures your growth, and where you build new\_relationships and networks.\n" + section_three: "## What is the Road to Devcon?\n\nThe Road to Devcon (RTD) is a series of Ethereum events and educational initiatives leading up to\_Devcon, organized by the active local communities in Southeast Asia.\n\nExplorers like you are shaping the road together, diving into workshops and talks, empowered by Ethereum’s promises and the motivation to bring this innovation to local communities, creating\_opportunities to learn and connect.\n" + section_four: "## Become a leader: Organize an event or start a community\n\nIf you're in SEA, community-driven, and passionate about Ethereum's positive impact, we're here to\_support you! This is your call to adventure, to be part of something bigger, something wilder.\n\nImagine organizing events within your community to showcase Ethereum, or starting a new grassroots\_community through meetups and other educational initiatives focused on Ethereum.\n\nIf a fire is ignited within you, now is the time to apply for the RTD grants and be a part of building our empowered, decentralized future. \U0001F984✨\n\n\n" events_table: "The Road to Devcon (RTD) is a series of Ethereum events and educational initiatives leading up to Devcon,\_organized by the local communities in and near Southeast Asia.\n" _template: road_to_devcon --- diff --git a/devcon/src/pages/road-to-devcon.tsx b/devcon/src/pages/road-to-devcon.tsx index 02145987a..fac09d191 100644 --- a/devcon/src/pages/road-to-devcon.tsx +++ b/devcon/src/pages/road-to-devcon.tsx @@ -280,7 +280,7 @@ const useHorizontalParallax = (onChange: (progress: number) => void) => { } const Hero = (props: any) => { - const { controlsRef, sectionRefs, goToSection } = props + const { controlsRef, sectionRefs, goToSection, pages } = props useWindowWidth('window-width') @@ -323,7 +323,7 @@ const Hero = (props: any) => {
-
+
{/* Desktop version first slide */}
@@ -335,14 +335,11 @@ const Hero = (props: any) => { className="z-1 max-w-[150px] md:max-w-[220px] mb-4" /> Southeast Asia -

- Hey there, I'm Deva, the Devcon unicorn. Since the dawn of Devcon I have been a guiding light to the - wonderstruck wanderers of Ethereum's vast universe, supporting them to find their tribe and - community. -

-

- And now, the Road to Devcon calls again, inviting a diverse array of mavericks, just like you. -

+ +
+ +
+

{' '} goToSection(1)}> @@ -404,13 +401,8 @@ const Hero = (props: any) => { /> Southeast Asia

-

- Hey there, I'm Deva, the Devcon unicorn. Since the dawn of Devcon I have been a guiding light to the - wonderstruck wanderers of Ethereum's vast universe, supporting them to find their tribe and community. -

-

- And now, the Road to Devcon calls again, inviting a diverse array of mavericks, just like you. -

+ +

Follow me, and join the journey. 🦄✨

@@ -435,17 +427,7 @@ const Hero = (props: any) => {
-

Why Devcon is for You

-

- Devcon is the Ethereum conference for developers, thinkers, and makers. You’ll meet the smartest and - kindest people in the Ethereum ecosystem IRL, and gain insight into a unique culture that is challenging - to fully understand just online. -

-

- At Devcon, we explore Ethereum together through fiery dialogues, workshops, and peer-to-peer - interactions. It’s where you are welcomed by a tribe that nurtures your growth, and where you build new - relationships and networks. -

+

Explore{' '} @@ -490,17 +472,8 @@ const Hero = (props: any) => {

-

What is the Road to Devcon?

+ -

- The Road to Devcon (RTD) is a series of Ethereum events and educational initiatives leading up to - Devcon, organized by the active local communities in Southeast Asia. -

-

- Explorers like you are shaping the road together, diving into workshops and talks, empowered by - Ethereum’s promises and the motivation to bring this innovation to local communities, creating - opportunities to learn and connect. -

Find the event that vibes with you @@ -542,28 +515,7 @@ const Hero = (props: any) => {

-

- Become a leader: Organize an event or start a community -

- -

- If you're in SEA, community-driven, and passionate about Ethereum's positive impact, we're here to - support you! This is your call to adventure, to be part of something bigger, something wilder. -

-

- Imagine organizing events within your community to showcase Ethereum, or starting a new grassroots - community through meetups and other educational initiatives focused on Ethereum. -

-

- If a fire is ignited within you, now is the time to apply for the RTD grants and be a part of building - our empowered, decentralized future. 🦄✨ -

- - - - +
@@ -866,6 +818,7 @@ export default pageHOC(function RoadToDevcon(props: any) { sectionRefs={sections} showDragIndicator={showDragIndicator} goToSection={goToSection} + pages={pages} /> diff --git a/lib/components/tina-cms/RichText.tsx b/lib/components/tina-cms/RichText.tsx index e8b1c6faa..8e22ec4fc 100644 --- a/lib/components/tina-cms/RichText.tsx +++ b/lib/components/tina-cms/RichText.tsx @@ -18,6 +18,8 @@ const TwoColumns = (data: any) => { }; const Buttons = (data: any) => { + if (!data.Button) return null; + return (
{data.Button.map(({ text, url }: any) => { @@ -57,7 +59,7 @@ export default ({ content }: { content: TinaMarkdownContent }) => { // p: ({ children }: any) => { // return
{children}
; // }, - // Different font sizes don't really make semantic sense as headers - we normalize all markdown headers to paragraphs, and will add header functionality separately + // Different font sizes don't really make semantic sense as headers - we normalize all markdown headers to paragraphs (so it's really just a size picker) h1: ({ children }: any) => { return (

@@ -81,23 +83,17 @@ export default ({ content }: { content: TinaMarkdownContent }) => { }, h4: ({ children }: any) => { return ( -

- {children} -

+

{children}

); }, h5: ({ children }: any) => { return ( -

- {children} -

+

{children}

); }, h6: ({ children }: any) => { return ( -

- {children} -

+

{children}

); }, }}