Skip to content

Commit d3bae37

Browse files
authored
Merge pull request #2698 from XRPLF/rm-apex-2
2 parents dc433b7 + de7cec8 commit d3bae37

File tree

3 files changed

+77
-47
lines changed

3 files changed

+77
-47
lines changed

community/events.page.tsx

Lines changed: 77 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React, { useState, useMemo } from "react";
2-
import { useThemeHooks } from '@redocly/theme/core/hooks';
2+
import { useThemeHooks } from "@redocly/theme/core/hooks";
33
const moment = require("moment");
4-
const amaImage = require("../static/img/events/AMAs.png")
5-
const hackathon = require("../static/img/events/Hackathons.png")
6-
const sanDiego = require("../static/img/events/event-meetup-san-diego@2x.jpg")
7-
const miami = require("../static/img/events/event-meetup-miami@2x.jpg")
8-
const conference = require("../static/img/events/Conference.png")
9-
const zone = require("../static/img/events/XRPLZone.png")
10-
const calls = require("../static/img/events/CommunityCalls.png")
11-
const brazil = require("../static/img/events/event-meetup-brazil.png")
12-
const korea = require("../static/img/events/SouthKoreaMeetup.png")
4+
const amaImage = require("../static/img/events/AMAs.png");
5+
const hackathon = require("../static/img/events/Hackathons.png");
6+
const sanDiego = require("../static/img/events/event-meetup-san-diego@2x.jpg");
7+
const miami = require("../static/img/events/event-meetup-miami@2x.jpg");
8+
const conference = require("../static/img/events/Conference.png");
9+
const zone = require("../static/img/events/XRPLZone.png");
10+
const calls = require("../static/img/events/CommunityCalls.png");
11+
const brazil = require("../static/img/events/event-meetup-brazil.png");
12+
const korea = require("../static/img/events/SouthKoreaMeetup.png");
1313
const infoSession = require("../static/img/events/InfoSessions.png");
1414
export const frontmatter = {
1515
seo: {
@@ -463,7 +463,7 @@ const events = [
463463
name: "XRPL Grants Info Session: Financial Inclusion Focused",
464464
description:
465465
"Join us for a live 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 Financial Inclusion projects.",
466-
type: "info-session",
466+
type: "info",
467467
link: "https://www.youtube.com/watch?v=TgLaAXTZY7Q",
468468
location: "Virtual - Zoom",
469469
date: "September 05, 2023",
@@ -485,7 +485,7 @@ const events = [
485485
name: "XRPL Grants Info Session: Decentralized Exchange (DEX) Focused",
486486
description:
487487
"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.",
488-
type: "info-session",
488+
type: "info",
489489
link: "https://www.youtube.com/watch?v=BbGu0QC5WEE",
490490
location: "Virtual - Zoom",
491491
date: "September 06, 2023",
@@ -640,7 +640,6 @@ const events = [
640640
image: conference,
641641
end_date: "June 1, 2024",
642642
},
643-
644643
{
645644
name: "Permissionless",
646645
description:
@@ -743,7 +742,7 @@ const events = [
743742
{
744743
name: "XRP Community After Hours",
745744
description:
746-
"Celebrate with the XRP Community during Korea Blockchain Week! Dont miss this opportunity to mingle with the vibrant XRP community, visionary XRPL developers, trailblazing innovators, and influential investors.",
745+
"Celebrate with the XRP Community during Korea Blockchain Week! Don't miss this opportunity to mingle with the vibrant XRP community, visionary XRPL developers, trailblazing innovators, and influential investors.",
747746
type: "meetup",
748747
link: "https://lu.ma/mbg067j3",
749748
location: "Seongdong-su, Seoul",
@@ -755,17 +754,28 @@ const events = [
755754
name: "XRPL Builder Office Hours",
756755
description:
757756
"XRPL Builder Office Hours is an open forum hosted monthly by Developer Advocates to answer technical and business questions from community members.",
758-
type: "info-session",
757+
type: "info",
759758
link: "https://ripple.zoom.us/meeting/register/tJMscOCsrDoiHNUN6hZLpFVR69OcfG9rXtIA#/registration",
760759
location: "Virtual - Zoom",
761760
date: "August 23, 2024",
762761
image: infoSession,
763762
end_date: "August 23, 2024",
764763
},
764+
{
765+
name: "APEX 2024: The XRPL Developer Summit",
766+
description:
767+
"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.",
768+
type: "conference",
769+
link: "https://www.youtube.com/playlist?list=PLl-QsmXvjodqeHPgq1UrKVcRPoNJe12Wv",
770+
location: "Amsterdam",
771+
date: "June 11 - 13, 2024",
772+
image: conference,
773+
end_date: "June 13, 2024",
774+
},
765775
];
766776

767777
export default function Events() {
768-
const { useTranslate} = useThemeHooks();
778+
const { useTranslate } = useThemeHooks();
769779
const { translate } = useTranslate();
770780
const { past, upcoming } = useMemo(() => categorizeDates(events), []);
771781

@@ -775,8 +785,8 @@ export default function Events() {
775785
hackathon: true,
776786
ama: true,
777787
cc: true,
778-
zone: true,
779-
"info-session": true,
788+
zone: true,
789+
"info": true,
780790
});
781791

782792
const [pastFilters, setPastFilters] = useState({
@@ -786,32 +796,34 @@ export default function Events() {
786796
ama: true,
787797
cc: true,
788798
zone: true,
789-
"info-session": true,
799+
"info": true,
790800
});
791801

792802
const filteredUpcoming = useMemo(() => {
793803
return upcoming.filter(
794804
(event) => upcomingFilters[event.type.split("-")[0]] !== false
795805
);
796806
}, [upcoming, upcomingFilters]);
797-
807+
798808
const filteredPast = useMemo(() => {
799-
return past.filter((event) => pastFilters[event.type.split("-")[0]] !== false);
809+
return past.filter(
810+
(event) => pastFilters[event.type.split("-")[0]] !== false
811+
);
800812
}, [past, pastFilters]);
801-
813+
802814
const handleUpcomingFilterChange = (event) => {
803815
const { name, checked } = event.target;
804816
setUpcomingFilters((prevFilters) => ({
805817
...prevFilters,
806-
[name.split("-")[0]]: checked,
818+
[name.replace("-upcoming", "")]: checked,
807819
}));
808820
};
809821

810822
const handlePastFilterChange = (event) => {
811823
const { name, checked } = event.target;
812824
setPastFilters((prevFilters) => ({
813825
...prevFilters,
814-
[name.split("-")[0]]: checked,
826+
[name.replace("-past", "")]: checked,
815827
}));
816828
};
817829

@@ -847,26 +859,26 @@ export default function Events() {
847859
<div className="pt-5 pr-2 col">
848860
<div className="d-flex flex-column-reverse">
849861
<h2 className="mb-8 h4 h2-sm">
850-
{translate("XRP Ledger Apex")}
862+
{translate("XRPL Zone Seoul")}
851863
</h2>
852864
<h6 className="mb-3 eyebrow">{translate("Save the Date")}</h6>
853865
</div>
854866
<p className="mb-4">
855867
{translate(
856-
"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."
868+
"Join us at XRPL Zone Seoul where developers, corporates, fintechs, banks, VCs, academia, and the XRP community come together under one roof for the biggest XRPL event in South Korea!"
857869
)}
858870
</p>
859871
<div className=" my-3 event-small-gray">
860-
Location: Amsterdam
872+
Location: Seongdong-su, Seoul
861873
</div>
862874
<div className="py-2 my-3 event-small-gray">
863-
Date: June 11-13, 2024
875+
September 4th, 2024
864876
</div>
865877
<div className="d-lg-block">
866878
<a
867879
className="btn btn-primary btn-arrow-out"
868880
target="_blank"
869-
href="https://register.xrpledgerapex.com/2024/?utm_source=xrplorg&utm_medium=web&utm_campaign=events"
881+
href="https://ripple.swoogo.com/xrpl-zone-seoul"
870882
>
871883
{translate("Register Now")}
872884
</a>
@@ -897,7 +909,9 @@ export default function Events() {
897909
checked={upcomingFilters.conference}
898910
onChange={handleUpcomingFilterChange}
899911
/>
900-
<label htmlFor="conference-upcoming">{translate("Conference")}</label>
912+
<label htmlFor="conference-upcoming">
913+
{translate("Conference")}
914+
</label>
901915
</div>
902916
<div className="form-check form-check-inline">
903917
<input
@@ -921,7 +935,9 @@ export default function Events() {
921935
checked={upcomingFilters.hackathon}
922936
onChange={handleUpcomingFilterChange}
923937
/>
924-
<label htmlFor="hackathon-upcoming">{translate("Hackathons")}</label>
938+
<label htmlFor="hackathon-upcoming">
939+
{translate("Hackathons")}
940+
</label>
925941
</div>
926942
<div className="form-check form-check-inline">
927943
<input
@@ -945,7 +961,9 @@ export default function Events() {
945961
checked={upcomingFilters.cc}
946962
onChange={handleUpcomingFilterChange}
947963
/>
948-
<label htmlFor="cc-upcoming">{translate("Community Calls")}</label>
964+
<label htmlFor="cc-upcoming">
965+
{translate("Community Calls")}
966+
</label>
949967
</div>
950968
<div className="form-check form-check-inline">
951969
<input
@@ -961,19 +979,21 @@ export default function Events() {
961979
</div>
962980
<div className="form-check form-check-inline">
963981
<input
964-
defaultValue="info-session"
965-
id="info-session-upcoming"
966-
name="info-session-upcoming"
982+
defaultValue="info"
983+
id="info-upcoming"
984+
name="info-upcoming"
967985
type="checkbox"
968986
className="events-filter"
969-
checked={upcomingFilters["info-session"]}
987+
checked={upcomingFilters["info"]}
970988
onChange={handleUpcomingFilterChange}
971989
/>
972-
<label htmlFor="info-session-upcoming">{translate("Info Session")}</label>
990+
<label htmlFor="info-upcoming">
991+
{translate("Info Session")}
992+
</label>
973993
</div>
974994
</div>
975995
</div>
976-
{/* # Available Types - conference, hackathon, ama, cc, zone, meetup, info-session */}
996+
{/* # Available Types - conference, hackathon, ama, cc, zone, meetup, info */}
977997
<div className="mt-2 row row-cols-1 row-cols-lg-3 card-deck">
978998
{filteredUpcoming.map((event, i) => (
979999
<a
@@ -989,7 +1009,9 @@ export default function Events() {
9891009
background: `url(${event.image}) no-repeat`,
9901010
}}
9911011
>
992-
<div className="event-card-title">{translate(event.name)}</div>
1012+
<div className="event-card-title">
1013+
{translate(event.name)}
1014+
</div>
9931015
</div>
9941016
<div className="event-card-body">
9951017
<p>{translate(event.description)}</p>
@@ -1025,7 +1047,9 @@ export default function Events() {
10251047
checked={pastFilters.conference}
10261048
onChange={handlePastFilterChange}
10271049
/>
1028-
<label htmlFor="conference-past">{translate("Conference")}</label>
1050+
<label htmlFor="conference-past">
1051+
{translate("Conference")}
1052+
</label>
10291053
</div>
10301054
<div className="form-check form-check-inline">
10311055
<input
@@ -1049,7 +1073,9 @@ export default function Events() {
10491073
checked={pastFilters.hackathon}
10501074
onChange={handlePastFilterChange}
10511075
/>
1052-
<label htmlFor="hackathon-past">{translate("Hackathons")}</label>
1076+
<label htmlFor="hackathon-past">
1077+
{translate("Hackathons")}
1078+
</label>
10531079
</div>
10541080
<div className="form-check form-check-inline">
10551081
<input
@@ -1089,15 +1115,17 @@ export default function Events() {
10891115
</div>
10901116
<div className="form-check form-check-inline">
10911117
<input
1092-
defaultValue="info-session"
1093-
id="info-session-past"
1094-
name="info-session-past"
1118+
defaultValue="info"
1119+
id="info-past"
1120+
name="info-past"
10951121
type="checkbox"
10961122
className="events-filter"
1097-
checked={pastFilters["info-session"]}
1123+
checked={pastFilters["info"]}
10981124
onChange={handlePastFilterChange}
10991125
/>
1100-
<label htmlFor="info-session-past">{translate("Info Session")}</label>
1126+
<label htmlFor="info-past">
1127+
{translate("Info Session")}
1128+
</label>
11011129
</div>
11021130
</div>
11031131
</div>
@@ -1115,7 +1143,9 @@ export default function Events() {
11151143
background: `url(${event.image}) no-repeat`,
11161144
}}
11171145
>
1118-
<div className="event-card-title">{translate(event.name)}</div>
1146+
<div className="event-card-title">
1147+
{translate(event.name)}
1148+
</div>
11191149
</div>
11201150
<div className="event-card-body">
11211151
<p>{translate(event.description)}</p>

static/img/events/event-hero2@2x.png

-1.1 MB
Binary file not shown.

static/img/events/event-hero3@2x.png

-990 KB
Loading

0 commit comments

Comments
 (0)