Skip to content

Commit 10f0bfc

Browse files
authored
Merge pull request #2695 from XRPLF/events-updates-07/23/24-2
adds new events to events and community page
2 parents 5c9c101 + 68fdd97 commit 10f0bfc

File tree

2 files changed

+59
-11
lines changed

2 files changed

+59
-11
lines changed

community/events.page.tsx

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const conference = require("../static/img/events/Conference.png")
99
const zone = require("../static/img/events/XRPLZone.png")
1010
const calls = require("../static/img/events/CommunityCalls.png")
1111
const brazil = require("../static/img/events/event-meetup-brazil.png")
12+
const korea = require("../static/img/events/SouthKoreaMeetup.png")
1213
export const frontmatter = {
1314
seo: {
1415
title: "Events",
@@ -476,7 +477,7 @@ const events = [
476477
link: "https://lu.ma/xrplxccess",
477478
location: "South Korea - JBK Tower",
478479
date: "September 06, 2023",
479-
image: require("../static/img/events/SouthKoreaMeetup.png"),
480+
image: korea,
480481
end_date: "September 06, 2023",
481482
},
482483
{
@@ -719,14 +720,36 @@ const events = [
719720
{
720721
name: "XRPL Meetup Blockchain Rio",
721722
description:
722-
"Get ready to kick off Blockchain Rio with a bang at the XRP Ledger Dev Meetup! ​Hosted by the the XRP Ledger team, this warm-up event is the perfect chance for devs and builders to connect, share ideas, and get hyped for the main event. Expect a night filled with great conversations, delicious drinks, and the vibrant energy of Rio de Janeiro. Don't miss out on this fantastic opportunity to network and have a blast with fellow tech enthusiasts. See you there!",
723+
"Kick off Blockchain Rio with the XRP Ledger Dev Meetup, a warm-up event hosted by the XRP Ledger community. Join fellow developers and builders for a night of great conversations, delicious drinks, and the vibrant energy of Rio de Janeiro. Don't miss this fantastic opportunity to network and have a blast with fellow tech enthusiasts!",
723724
type: "meetup",
724725
link: "https://lu.ma/4uxpkd11",
725726
location: "Rio de Janeiro",
726727
date: "July 23, 2024",
727728
image: brazil,
728729
end_date: "July 23, 2024",
729730
},
731+
{
732+
name: "XRPL Zone Seoul",
733+
description:
734+
"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!",
735+
type: "zone",
736+
link: "https://ripple.swoogo.com/xrpl-zone-seoul",
737+
location: "Seongdong-su, Seoul",
738+
date: "September 4, 2024",
739+
image: zone,
740+
end_date: "September 4, 2024",
741+
},
742+
{
743+
name: "XRP Community After Hours",
744+
description:
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.",
746+
type: "meetup",
747+
link: "https://lu.ma/mbg067j3",
748+
location: "Seongdong-su, Seoul",
749+
date: "September 4, 2024",
750+
image: korea,
751+
end_date: "September 4, 2024",
752+
},
730753
];
731754

732755
export default function Events() {
@@ -756,30 +779,30 @@ export default function Events() {
756779

757780
const filteredUpcoming = useMemo(() => {
758781
return upcoming.filter(
759-
(event) => upcomingFilters[event.type.split("-")[0]]
782+
(event) => upcomingFilters[event.type.split("-")[0]] !== false
760783
);
761784
}, [upcoming, upcomingFilters]);
762-
785+
763786
const filteredPast = useMemo(() => {
764-
return past.filter((event) => pastFilters[event.type.split("-")[0]]);
787+
return past.filter((event) => pastFilters[event.type.split("-")[0]] !== false);
765788
}, [past, pastFilters]);
766-
789+
767790
const handleUpcomingFilterChange = (event) => {
768791
const { name, checked } = event.target;
769792
setUpcomingFilters((prevFilters) => ({
770793
...prevFilters,
771-
[name.replace("-upcoming", "")]: checked,
794+
[name.split("-")[0]]: checked,
772795
}));
773796
};
774-
797+
775798
const handlePastFilterChange = (event) => {
776799
const { name, checked } = event.target;
777800
setPastFilters((prevFilters) => ({
778801
...prevFilters,
779-
[name.replace("-past", "")]: checked,
802+
[name.split("-")[0]]: checked,
780803
}));
781804
};
782-
805+
783806
return (
784807
<div className="landing page-events">
785808
<div>

community/index.page.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const hackathon = require("../static/img/events/Hackathons.png");
1515
const conference = require("../static/img/events/Conference.png");
1616
const zone = require("../static/img/events/XRPLZone.png");
1717
const brazil = require("../static/img/events/event-meetup-brazil.png");
18+
const korea = require("../static/img/events/SouthKoreaMeetup.png")
1819
const findNearestUpcomingEvent = (events) => {
1920
let nearestEvent = null;
2021
let nearestDateDiff = Infinity;
@@ -178,12 +179,36 @@ const events = [
178179
start_date: "July 23, 2024",
179180
end_date: "July 23, 2024",
180181
},
182+
{
183+
name: "XRPL Zone Seoul",
184+
description:
185+
"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!",
186+
type: "zone",
187+
link: "https://ripple.swoogo.com/xrpl-zone-seoul",
188+
location: "Seongdong-su, Seoul",
189+
date: "September 4, 2024",
190+
image: zone,
191+
start_date: "September 4, 2024",
192+
end_date: "September 4, 2024",
193+
},
194+
{
195+
name: "XRP Community After Hours",
196+
description:
197+
"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.",
198+
type: "meetup",
199+
link: "https://lu.ma/mbg067j3",
200+
location: "Seongdong-su, Seoul",
201+
date: "September 4, 2024",
202+
image: korea,
203+
start_date: "September 4, 2024",
204+
end_date: "September 4, 2024",
205+
},
181206
];
182207
const { nearestDateDiff, nearestEvent } = findNearestUpcomingEvent(events);
183208
const XrplEventsAndCarouselSection = ({ events }) => {
184209
const { useTranslate } = useThemeHooks();
185210
const { translate } = useTranslate();
186-
const [currentIndex, setCurrentIndex] = useState(7);
211+
const [currentIndex, setCurrentIndex] = useState(11);
187212

188213
const updateCarousel = () => {
189214
const prevEvent = events[currentIndex - 1] || null;

0 commit comments

Comments
 (0)