This is an automated email from the ASF dual-hosted git repository. guangning pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push: new 347d54cd4136 [feat] add summit events 2024 display (#786) 347d54cd4136 is described below commit 347d54cd4136453dfd559b3c6fd56019b4aa266a Author: Li Li <urf...@apache.org> AuthorDate: Thu Feb 8 15:12:14 2024 +0800 [feat] add summit events 2024 display (#786) * [feat] summit events 2024 display Signed-off-by: lili <l...@streamnative.io> * Update date --- data/events.ts | 271 +++++++++++++----------- src/components/pages/EventsPage/Cards/Cards.tsx | 8 +- 2 files changed, 153 insertions(+), 126 deletions(-) diff --git a/data/events.ts b/data/events.ts index 084bedc74221..24065e8a1af2 100644 --- a/data/events.ts +++ b/data/events.ts @@ -21,129 +21,150 @@ export type Resource = { }; export const resources: Record<Category, Resource[]> = { - events: [ - { - title: 'Pulsar Summit Europe 2023', - description: '', - link: 'https://streamnative.io/blog/pulsar-virtual-summit-europe-2023-on-demand-videos-available-now', - displayDate: '23 May 2023', - startDate: '2023-05-23' // year-month-day - }, - { - title: 'Pulsar Summit San Francisco 2022', - description: '', - link: 'https://pulsar-summit.org/event/san-francisco-2022', - displayDate: '18 Aug 2022', - startDate: '2022-08-18' // year-month-day - }, - { - title: 'Pulsar Summit Europe 2021 ', - description: '', - link: 'https://pulsar-summit.org/en/event/europe-2021', - displayDate: '6 Oct 2021', - startDate: '2021-10-06' // year-month-day - }, - { - title: 'Pulsar Summit Asia 2021', - description: '', - link: 'https://pulsar-summit.org/en/event/asia-2021', - displayDate: '20-21 November 2021', - startDate: '2021-11-20' // year-month-day - }, - { - title: 'Pulsar Summit North America 2021', - description: '', - link: 'https://pulsar-summit.org/en/event/north-america-2021', - displayDate: '16-17 June 2021', - startDate: '2021-06-16' // year-month-day - }, - { - title: 'Pulsar Summit Asia 2020', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjHlRb-dzjwYdETkVlyCJOq', - displayDate: '28-29 November 2020', - startDate: '2021-11-28' // year-month-day - }, - { - title: 'Pulsar Summit Virtual Conference 2020', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-', - displayDate: '17-18 June 2020', - startDate: '2021-06-17' // year-month-day - }, - { - title: 'ApacheCon @Home', - description: '', - link: 'https://www.youtube.com/watch?v=iIABx20uvmw&list=PLU2OcwpQkYCy_awEe5xwlxGTk5UieA37m', - displayDate: '29 June 2020', - startDate: '2020-06-29' // year-month-day - }, - { - title: 'Pulsar Summit Virtual Conference ', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-', - displayDate: '9 September 2020', - startDate: '2020-09-09' // year-month-day - } - ], - meetups: [ - { - title: 'NorCal Apache Pulsar Neighborhood Meetup Group', - description: '', - link: 'https://www.meetup.com/nor-cal-apache-pulsar-meetup-group/', - }, - { - title: 'Netherlands Apache Pulsar Meetup Group', - description: '', - link: 'https://www.meetup.com/netherlands-apache-pulsar-meetup/' - }, - { - title: 'SoCal Apache Pulsar Neighborhood Meetup Group', - description: '', - link: 'https://www.meetup.com/socal-apache-pulsar-meetup-group/' - }, - { - title: 'New York City Apache Pulsar Meetup', - description: '', - link: 'https://www.meetup.com/new-york-city-apache-pulsar-meetup/' - }, - { - title: 'Beijing Apache PulsarĀ® Meetup by StreamNative', - description: '', - link: 'https://www.meetup.com/beijing-apache-pulsar-meetup-by-streamnative/' - }, - { - title: 'SF Bay Area Apache Pulsar Meetup', - description: '', - link: 'https://www.meetup.com/SF-Bay-Area-Apache-Pulsar-Meetup/' - }, - { - title: 'Japan Pulsar User Group', - description: '', - link: 'https://japan-pulsar-user-group.connpass.com/' - }, - ], - playlists: [ - { - title: 'Pulsar Summit Europe 2021', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWh7zes7mNeTUCr2iU-2C1jB', - }, - { - title: 'Pulsar Summit North America 2021', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjyezVodJHcp8GSypvGuc1C' - }, - { - title: 'Pulsar Summit Asia 2020', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjHlRb-dzjwYdETkVlyCJOq' - }, - { - title: 'Pulsar North America 2020', - description: '', - link: 'https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-' - }, - ] - } + events: [ + { + title: "Pulsar Summit Europe 2024", + description: "", + link: "https://pulsar-summit.org/", + displayDate: "14 May 2024", + startDate: "2024-05-14", // year-month-day + }, + { + title: "Pulsar Summit North America 2024", + description: "Comming soon", + link: "", + displayDate: "October 29th, 2024", + startDate: "2024-10-29", // year-month-day + }, + { + title: "Pulsar Summit Asia 2024", + description: "Comming soon", + link: "", + displayDate: "November 22nd, 2024", + startDate: "2024-11-22", // year-month-day + }, + { + title: "Pulsar Summit Europe 2023", + description: "", + link: "https://streamnative.io/blog/pulsar-virtual-summit-europe-2023-on-demand-videos-available-now", + displayDate: "23 May 2023", + startDate: "2023-05-23", // year-month-day + }, + { + title: "Pulsar Summit San Francisco 2022", + description: "", + link: "https://pulsar-summit.org/event/san-francisco-2022", + displayDate: "18 Aug 2022", + startDate: "2022-08-18", // year-month-day + }, + { + title: "Pulsar Summit Europe 2021 ", + description: "", + link: "https://pulsar-summit.org/en/event/europe-2021", + displayDate: "6 Oct 2021", + startDate: "2021-10-06", // year-month-day + }, + { + title: "Pulsar Summit Asia 2021", + description: "", + link: "https://pulsar-summit.org/en/event/asia-2021", + displayDate: "20-21 November 2021", + startDate: "2021-11-20", // year-month-day + }, + { + title: "Pulsar Summit North America 2021", + description: "", + link: "https://pulsar-summit.org/en/event/north-america-2021", + displayDate: "16-17 June 2021", + startDate: "2021-06-16", // year-month-day + }, + { + title: "Pulsar Summit Asia 2020", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjHlRb-dzjwYdETkVlyCJOq", + displayDate: "28-29 November 2020", + startDate: "2021-11-28", // year-month-day + }, + { + title: "Pulsar Summit Virtual Conference 2020", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-", + displayDate: "17-18 June 2020", + startDate: "2021-06-17", // year-month-day + }, + { + title: "ApacheCon @Home", + description: "", + link: "https://www.youtube.com/watch?v=iIABx20uvmw&list=PLU2OcwpQkYCy_awEe5xwlxGTk5UieA37m", + displayDate: "29 June 2020", + startDate: "2020-06-29", // year-month-day + }, + { + title: "Pulsar Summit Virtual Conference ", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-", + displayDate: "9 September 2020", + startDate: "2020-09-09", // year-month-day + }, + ], + meetups: [ + { + title: "NorCal Apache Pulsar Neighborhood Meetup Group", + description: "", + link: "https://www.meetup.com/nor-cal-apache-pulsar-meetup-group/", + }, + { + title: "Netherlands Apache Pulsar Meetup Group", + description: "", + link: "https://www.meetup.com/netherlands-apache-pulsar-meetup/", + }, + { + title: "SoCal Apache Pulsar Neighborhood Meetup Group", + description: "", + link: "https://www.meetup.com/socal-apache-pulsar-meetup-group/", + }, + { + title: "New York City Apache Pulsar Meetup", + description: "", + link: "https://www.meetup.com/new-york-city-apache-pulsar-meetup/", + }, + { + title: "Beijing Apache PulsarĀ® Meetup by StreamNative", + description: "", + link: "https://www.meetup.com/beijing-apache-pulsar-meetup-by-streamnative/", + }, + { + title: "SF Bay Area Apache Pulsar Meetup", + description: "", + link: "https://www.meetup.com/SF-Bay-Area-Apache-Pulsar-Meetup/", + }, + { + title: "Japan Pulsar User Group", + description: "", + link: "https://japan-pulsar-user-group.connpass.com/", + }, + ], + playlists: [ + { + title: "Pulsar Summit Europe 2021", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWh7zes7mNeTUCr2iU-2C1jB", + }, + { + title: "Pulsar Summit North America 2021", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjyezVodJHcp8GSypvGuc1C", + }, + { + title: "Pulsar Summit Asia 2020", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjHlRb-dzjwYdETkVlyCJOq", + }, + { + title: "Pulsar North America 2020", + description: "", + link: "https://www.youtube.com/playlist?list=PLqRma1oIkcWjVlPfaWlf3VO9W-XWsF_4-", + }, + ], +}; diff --git a/src/components/pages/EventsPage/Cards/Cards.tsx b/src/components/pages/EventsPage/Cards/Cards.tsx index 90b551f85cfb..05cde8611f8d 100644 --- a/src/components/pages/EventsPage/Cards/Cards.tsx +++ b/src/components/pages/EventsPage/Cards/Cards.tsx @@ -9,7 +9,13 @@ const Card: React.FC<data.Resource> = (props) => { <h3><a href={props.link}>{props.title}</a></h3> {props.displayDate && <p>{props.displayDate}</p>} {props.description && <p>{props.description}</p>} - <a href={props.link} target="_blank">Learn more</a> + {props.link ? ( + <a href={props.link} target="_blank"> + Learn more + </a> + ) : ( + <></> + )} </div> ); };