diff --git a/community/events.page.tsx b/community/events.page.tsx index cf89cefbb9..19757a043d 100644 --- a/community/events.page.tsx +++ b/community/events.page.tsx @@ -10,7 +10,13 @@ export const frontmatter = { "Find the XRPL Community around the world and join these events to see what's happening.", }, }; - +export const sortEvents = (arr, asc = true) => { + return arr.sort((a, b) => { + const dateA = moment(a.end_date, "MMMM D, YYYY"); + const dateB = moment(b.end_date, "MMMM D, YYYY"); + return asc ? dateB.diff(dateA) : dateA.diff(dateB); // Returns a negative value if dateA is before dateB, positive if after, and 0 if the same + }); +}; function categorizeDates(arr) { const past = []; const upcoming = []; @@ -27,7 +33,7 @@ function categorizeDates(arr) { } }); - return { past, upcoming }; + return { past: sortEvents(past), upcoming: sortEvents(upcoming, false) }; } const events = [ @@ -584,19 +590,19 @@ const events = [ { 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.", + "To connect the blockchain community, showcase campus ambassador projects, and celebrate the new year.", type: "meetup", link: "https://www.meetup.com/xrpl-toronto-community-meetup/events/294766059", location: "Downtown, Toronto", date: "TBD", image: require("../static/img/events/event-meetup-toronto@2x.jpg"), - end_date: "January 31, 2024", + end_date: "January 31, 2025", // putting a far future date so it remains in upcoming events until a date is confirmed }, { 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!", + "Smart Contracts, Smarter XRP Ledger! Be the first to learn and build on the upcoming XRP Ledger integration with EVM at ETHDenver!", type: "zone", link: "http://xrplzone-ethdenver.splashthat.com", location: "Denver, Colorado", @@ -616,7 +622,7 @@ const events = [ image: require("../static/img/events/Conference.png"), end_date: "April 12, 2024", }, - + { name: "EasyA Hackathon", description: @@ -736,13 +742,13 @@ export default function Events() {

- {translate("The XRPL Developer Summit")} + {translate("XRP Ledger Apex")}

{translate("Save the Date")}

{translate( - "Apex is back and headed to Amsterdam. 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." + "XRP Ledger Apex 2024 is the official global community summit that unites developers, innovators, businesses, and investors who are building the future of finance on the XRP Ledger blockchain." )}

@@ -755,7 +761,7 @@ export default function Events() { {translate("Learn More")} diff --git a/community/index.page.tsx b/community/index.page.tsx index 62dda810fb..cc6a31661e 100644 --- a/community/index.page.tsx +++ b/community/index.page.tsx @@ -53,18 +53,18 @@ const events = [ 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 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: diff --git a/static/img/events/event-hero3@2x.png b/static/img/events/event-hero3@2x.png index bcbefbc924..44dd7fe0af 100644 Binary files a/static/img/events/event-hero3@2x.png and b/static/img/events/event-hero3@2x.png differ