import React, { useEffect, useState } from "react"; import { useTranslate } from "@portal/hooks"; import moment from "moment"; export const frontmatter = { seo: { title: "Community", description: "The XRP Ledger (XRPL) is a community-driven public blockchain. Here’s how you can get involved.", }, }; const amaImage = require("../static/img/events/AMAs.png") const hackathon = require("../static/img/events/Hackathons.png") const conference = require("../static/img/events/Conference.png") const zone = require("../static/img/events/XRPLZone.png") const findNearestUpcomingEvent = (events) => { let nearestEvent = null; let nearestDateDiff = Infinity; events.forEach((event) => { const eventStartDate = moment(event.start_date, "MMMM DD, YYYY"); const currentDate = moment(); const diff = eventStartDate.diff(currentDate, "days"); if (diff >= 0 && diff < nearestDateDiff) { nearestEvent = event; nearestDateDiff = diff; } }); return { nearestEvent, nearestDateDiff }; }; const events = [ { name: "New Horizon: Innovate Without Limits: New Horizons Await", description: "Join our EVM-compatible chain launch for a chance to win $50,000 in prizes! Unleash your creativity in DeFi and NFTs, with judging criteria focused on novelty, impact, and community engagement.", type: "hackathon", link: "https://newhorizon.devpost.com/", location: "Virtual", date: "October 19, 2023 - December 22, 2023", image: hackathon, end_date: "December 22, 2023", start_date: "October 19, 2023", }, { name: "XRPL Community Report Launch Party", description: "Celebrate the XRPL Community Report launch at 7pm! Join blockchain enthusiasts, connect with experts, and discover opportunities in the XRP Ledger ecosystem. Limited space available, so register now for a night of celebration and networking!", type: "meetup", link: "https://www.eventbrite.fr/e/billets-xrpl-community-report-launch-party-753788370307", location: "Paris, France", date: "November 28, 7pm - 9pm", image: require("../static/img/events/paris.png"), end_date: "November 28, 2023", start_date: "November 28, 2023", }, // { // name: "XRPL Toronto Meetup Community - Celebrate with Us!", // description: // "To connect the blockchain community, showcase campus ambassador projects, and celebrate the year's progress with a holiday theme.", // type: "meetup", // link: "https://www.meetup.com/xrpl-toronto-community-meetup/events/294766059", // location: "Downtown, Toronto", // date: "December 7th, 6pm - 9pm", // image: require("../static/img/events/event-meetup-toronto@2x.jpg"), // end_date: "December 7, 2023", // start_date: "December 7, 2023", // }, { name: "XRPL Grants Info Session: Decentralized Exchange (DEX) Focused", description: "Watch the recorded information session and Q&A on applying to XRPL Grants Wave 7. This session will provide a general overview of the XRPL Grants application for Wave 7, with a focus on Decentralized Exchange (DEX) projects.", type: "info-session", link: "https://www.youtube.com/watch?v=BbGu0QC5WEE", location: "Virtual - Zoom", date: "September 06, 2023", image: require("../static/img/events/InfoSessions.png"), end_date: "September 06, 2023", start_date: "September 06, 2023", }, { name: "APEX 2024: The XRPL Developer Summit", description: "Apex XRPL Developer Summit is the annual event where developers, contributors, and thought leaders come together to learn, build, share, network, and celebrate all things XRP Ledger.", type: "conference", link: "http://apexdevsummit.com", location: "Amsterdam", date: "June 11 - 13, 2024", image: conference, end_date: "June 13, 2024", start_date: "June 11, 2024", }, { name: "XRPL Developers Reddit AMA: Real World Assets", description: "Join us for a live chat on Reddit and learn more about how developers are building real world assets with confidence on the XRP Ledger.", type: "ama", link: "https://xrplresources.org/rwa-ama?utm_source=web&utm_medium=web&utm_campaign=bwc", location: "Virtual - Reddit", date: "October 17, 2023", image: amaImage, end_date: "October 17, 2023", start_date: "October 17, 2023", }, { name: "Paris Blockchain Week", description: "Paris Blockchain Week is Europe's biggest blockchain & digital assets event that covers all aspects of blockchain technology.", type: "conference", link: "https://www.parisblockchainweek.com/", location: "Paris, France", date: "April 9 - 12, 2024", image: conference, end_date: "April 12, 2024", start_date: "April 12, 2024", }, { name: "Consensus", description: "Join us at Consensus! This event is the world's largest, longest-running and most influential gathering that brings together all sides of the cryptocurrency, blockchain and Web3 community.", type: "conference", link: "https://consensus.coindesk.com/?utm_campaign=&utm_content=c24&utm_medium=sponsored&utm_source=XRPLEventsPage%20&utm_term=organic", location: "Austin, Texas", date: "May 29 - June 1, 2024", image: conference, end_date: "June 1, 2024", start_date: "June 1, 2024", }, { name: "XRP Ledger Zone ETHDenver", description: "XRPL Zone: your all-in-one location for creating and collaborating on XRP Ledger (XRPL) projects. Details coming soon!", type: "zone", link: "http://xrplzone-ethdenver.splashthat.com", location: "Denver, Colorado", date: "February 27, 2024", image: zone, end_date: "February 27, 2024", start_date: "February 27, 2024", }, { name: "XRPL Developers Discord AMA: Apex 2024", description: "Join the DevRel team at Ripple to learn more about APEX 2024.", type: "ama", link: "https://discord.gg/gszzRTxV?event=1215341725825110089", location: "XRPL Developers Discord", date: "March 13, 2024 13:00 EST", image: amaImage, start_date: "March 13, 2024", end_date: "March 13, 2024", }, ]; const { nearestDateDiff, nearestEvent } = findNearestUpcomingEvent(events); const XrplEventsAndCarouselSection = ({ events }) => { const { translate } = useTranslate(); const [currentIndex, setCurrentIndex] = useState(1); const updateCarousel = () => { const prevEvent = events[currentIndex - 1] || null; const currentEvent = events[currentIndex]; const nextEvent = events[currentIndex + 1] || null; return { prevEvent, currentEvent, nextEvent, }; }; const handlePrev = () => { if (currentIndex > 0) { setCurrentIndex(currentIndex - 1); } }; const handleNext = () => { if (currentIndex < events.length - 1) { setCurrentIndex(currentIndex + 1); } }; const { prevEvent, currentEvent, nextEvent } = updateCarousel(); return ( <>
{translate("XRPL Events")}

{translate("Check out global events hosted")}{" "}
{translate("by the XRPL community")}

{translate( "Meet the XRPL community at meetups, hackathons, blockchain conferences, and more across global regions." )}

{translate("View All Events")}

{translate("UPCOMING EVENT")}

{nearestDateDiff}
{translate("days")}
{translate(nearestEvent.name)}

{nearestEvent.date}

{nearestEvent.location}

{translate("View All Events")}
Left Event Image
Featured Event Image currentEvent && window.open(currentEvent.link, "_blank") } />
{currentEvent ? currentEvent.name : ""}
{currentEvent ? currentEvent.location : ""}
{currentEvent ? currentEvent.date : ""}
Right Event Image
); }; const CommunityPage: React.FC = () => { const { translate } = useTranslate(); return (
{/* Community Heading Section */}
People sitting at a conference Person speaking at a conference Person sitting and speaking People chatting Person speaking at Apex
Down Arrow

{translate("A Global Blockchain")}
{translate("Community of ")} Builders
{translate("and Innovators")}

{translate("XRPL Community")}
{/* Community Table Section */}
{translate("Join the Conversation")}

{translate("Hot Topics Happening Now")}

discord icon {translate( "AMA with Edge Wallet: Learn more about Edge Wallet and how they are building on the XRP Ledger." )}
twitter icon {translate( "Clawback: A newly proposed feature that adds to the XRP Ledger's token asset control capabilities." )}
youtube icon {translate( "APEX 2023: View keynote sessions from the annual developer summit where developers, contributors, and thought leaders come together to learn, build, and celebrate all things XRP Ledger." )}
xrpl icon {translate( "Deep Dive into XRPL DeFi Course: Learn about the inner workings of decentralized finance including safety and security, auto-bridging, pathfinding, liquidity pools, and more." )}
{/* XRPL Events Carousel Section */} {/* Community Funding Section */}
{translate("Get Funding")}
{translate("funding been awarded")}
$ 13 M+
{translate("teams awarded globally")}
120+
{translate("countries represented")}
28+
{translate("XRPL Developer Funding")}

{translate("Funding Opportunities for Blockchain Businesses")}

{translate( "If you're a software developer or team looking to build your next blockchain business on the XRP Ledger (XRPL), numerous funding opportunities like grants and hackathons await your innovation." )}

{translate("Get Funding")}
{/* Community Spotlight Wrapper */}
{translate("XRPL Community Spotlight")}

{translate( "Showcase your blockchain project, application, or product" )}

{translate( "Get featured on the Developer Reflections blog or Ecosystem page, and amplify your innovation within the blockchain community." )}

{translate("Submit Your Project")}
Blockdaemon
Blockdaemon

{translate( "Your go-to independent blockchain infrastructure provider, offering secure and scalable blockchain services, including wallets, nodes, staking, protocols, and integrations for developers and institutions alike." )}

{translate("View Project")}
XRPCafe
XRPCafe

{translate( "A premier NFT marketplace dedicated to fostering mass adoption of the XRP Ledger." )}

{translate("View Project")}
{/* Bottom Cards Section */}
Top Left Image
{translate("Contribute to Consensus")}
{translate("Run an XRP Ledger network node")}

{translate( "Thank you for your interest in contributing to XRPL.org." )}

Bottom Right Image
{translate("XRPL Careers")}
{translate( "Discover your next career opportunity in the XRPL community" )}

{translate( "Teams across the XRPL community are looking for talented individuals to help build their next innovation." )}

Top Right Image
{translate("Contribute to XRPL.org")}
{translate("A Community-Driven Resource for All Things XRPL.org")}

{translate( "Contribute to XRPL.org, the go-to resource for XRP Ledger. This open-source portal welcomes contributions from anyone for suggested changes." )}

{" "}
); }; export default CommunityPage;