diff --git a/snippets/home.jsx b/snippets/home.jsx deleted file mode 100644 index 6e2e41286..000000000 --- a/snippets/home.jsx +++ /dev/null @@ -1,541 +0,0 @@ -export const CeloHero = ({ - title = "Build for the Real World on Celo", - subtitle = "Build your first app on Celo. No coding experience required.", - ctaText = "Start building", - ctaHref = "/build/mcp/celo-mcp", - imgLight = "/img/homepage/celo_docs_hero_light.png", - imgDark = "/img/homepage/celo_docs_hero_dark.png", -}) => { - return ( -
-
- {/* LEFT: copy (won't overflow) */} -
-

{title}

- - - {ctaText} - - - - - -

{subtitle}

-
- - {/* RIGHT: artwork (strictly fits inside) */} -
- {/* Light image */} - Celo hero - {/* Dark image */} - Celo hero (dark) -
-
-
- ); -}; - -export const CeloUseCases = ({ - title = "Celo is Scaling Ethereum With Real World Use Cases", - items = [ - { - heading: "Learn about Celo", - ctaText: "Explore Docs", - href: "/build", - img: "/img/homepage/illustration-1.png", - external: true, - }, - { - heading: "Fund your Project", - ctaText: "Learn more", - href: "/build/fund-your-project", - img: "/img/homepage/illustration-2.png", - external: true, - }, - ], -}) => { - return ( -
- {/* Title */} -
-

{title}

-
- - {/* Cards */} -
- {items.map((item, i) => ( - - {/* Left copy */} -
-
{item.heading}
- -
- {item.ctaText} - - - -
-
- - {/* Right graphic */} -
- -
-
- ))} -
-
- ); -}; - -export const CeloDiscoverGrid = ({ - title = "Discover What You Can Build on Celo", - items = [ - { - label: "Build with Celo MCP Servers", - desc: "Vibe Code your first Celo dApp with Celo MCP Servers", - href: "build/build-with-ai/mcp/index", - external: true, - }, - { - label: "Build on MiniPay", - desc: "Create a mobile-first Mini App", - href: "/build/build-on-minipay/overview", - external: true, - }, - { - label: "Build with AI", - desc: "Launch agents for an onchain economy", - href: "/build/build-with-ai/overview", - external: true, - }, - { - label: "Build with Celo Composer", - desc: "Quickstart your dApp", - href: "/build/quickstart", - external: true, - }, - { - label: "Build with Farcaster", - desc: "Create Farcaster MiniApps on Celo", - href: "https://github.com/celo-org/celo-farcaster-frames/issues", - external: true, - }, - { - label: "Build with DeFi", - desc: "Build with DeFi protocols, stablecoins and for FX", - href: "/build/build-with-defi", - external: true, - }, - { - label: "Build with Mento", - desc: "Use local stablecoins", - href: "https://www.mento.org/", - external: true, - }, - { - label: "Get Funding", - desc: "Get funding for your project", - href: "/build/fund-your-project", - external: true, - }, - ], -}) => { - return ( -
-
-

{title}

- -
- {items.map((item, idx) => ( - - {item.label} - - {item.desc} - - {/* Arrow */} - - - - - ))} -
-
-
- ); -}; - -export const CeloDeveloperResources = ({ - title = "Explore Developer Tools & Resources", - columns = [ - { - heading: "Understanding Celo", - links: [ - { - label: "What is Celo?", - desc: "Discover how Celo L2 is scaling real world use cases on Ethereum", - href: "/about-celo", - icon: "img/homepage/icons/WhatIsCelo_White.svg", - }, - { - label: "Architecture", - desc: "Overview of our stack and core contracts", - href: "/build/cel2-architecture", - icon: "img/homepage/icons/Architechture_White.svg", - }, - { - label: "Whitepapers", - desc: "Dive in to understand our protocol and social impact", - href: "https://celo.org/papers", - external: true, - icon: "img/homepage/icons/Whitepapers_White.svg", - }, - { - label: "Protocol", - desc: "Learn about our protocol and its relationship to Ethereum", - href: "/about-celo/protocol", - icon: "img/homepage/icons/Protocol_White.svg", - }, - ], - }, - { - heading: "Build with Celo", - links: [ - { - label: "Quickstart", - desc: "Build & Deploy your dApps in under 5 minutes", - href: "/build/quickstart", - icon: "img/homepage/icons/CLI_White.svg", - }, - { - label: "Tutorials", - desc: "Explore Celo Tutorials", - href: "/build", - icon: "img/homepage/icons/NewToWeb3_White.svg", - }, - { - label: "Integrate", - desc: "Connect Celo to your application", - href: "/tooling/nodes/overview", - icon: "img/homepage/icons/ContractKit_White.svg", - }, - ], - }, - { - heading: "Developer Tools", - links: [ - { - label: "Faucet", - desc: "Explore Contractkit usage and features", - href: "https://faucet.celo.org", - external: true, - icon: "img/homepage/icons/CeloComposer_White.svg", - }, - { - label: "Explorer", - desc: "Explore transactions on Celo", - href: "/developer/explorers/overview", - icon: "img/homepage/icons/Oracle_White.svg", - }, - { - label: "Bridge", - desc: "Bridge Assets across chains", - href: "/about-celo/bridged-tokens/bridges", - icon: "img/homepage/icons/Rainbow_White.svg", - }, - { - label: "Deploy", - desc: "Deploy your contract on Celo", - href: "/developer/deploy", - icon: "img/homepage/icons/Migration_White.svg", - }, - ], - }, - { - heading: "Grow Your Project", - links: [ - { - label: "Get Funding", - desc: "Discover grant opportunities in the Celo ecosystem.", - href: "/build/fund-your-project", - icon: "img/homepage/icons/Validator_White.svg", - }, - { - label: "Distribution", - desc: "Get more awareness about your project.", - href: "/build/launch-checklist", - icon: "img/homepage/icons/Node_White.svg", - }, - ], - }, - ], -}) => { - const CardLink = ({ href, external, icon, label, desc }) => ( - - -
-

- {label} -

-

- {desc} -

-
-
- ); - - return ( -
-
- {/* Title */} -

{title}

- - {/* Columns */} -
- {columns.map((col, i) => ( -
-
{col.heading}
- -
- {col.links.map((l, j) => ( - - ))} -
-
- ))} -
-
-
- ); -}; - -export const CeloBuilderEcosystem = ({ - heading = "Join the Celo Builder Ecosystem", - subheading = "Discover the many ways to connect with our growing community of developers", - items = [ - { - title: "Join the Newsletter", - desc: "Stay updated on the latest news, grants, and opportunities.", - href: "https://embeds.beehiiv.com/eeadfef4-2f0c-45ce-801c-b920827d5cd2", - external: true, - icon: "img/homepage/ambassador.svg", - }, - { - title: "Connect with the Community", - desc: "Join our Discord", - href: "https://discord.com/invite/celo", - external: true, - icon: "img/homepage/connect.svg", - }, - { - title: "Bring Your Ideas to Life", - desc: "Sign up for upcoming hackathons and workshops", - href: "https://luma.com/user/usr-QJkvU5EML2BJeYc", - external: true, - icon: "img/homepage/contribute.svg", - }, - { - title: "Make your Voice Heard", - desc: "Vote on Governance Proposals", - href: "/about-celo/protocol/governance/voting-in-governance", - external: false, - icon: "img/homepage/connect.svg", - }, - { - title: "Get Daily Updates", - desc: "Follow our CeloDev on X", - href: "https://x.com/CeloDevs", - external: true, - icon: "img/homepage/ambassador.svg", - }, - ], -}) => { - const EcosystemCard = ({ href, external, icon, title, desc }) => ( - - -
-

{title}

-

{desc}

-
-
- ); - return ( -
-
-

{heading}

-

{subheading}

- -
- {items.map((it, i) => ( - - ))} -
-
-
- ); -};