|
| 1 | +import React from 'react'; |
| 2 | +import Layout from '@theme/Layout'; |
| 3 | +import Link from '@docusaurus/Link'; |
| 4 | +import pastEventsData from '../past-events.json'; |
| 5 | +import styles from './styles.module.css'; |
| 6 | + |
| 7 | +type PastEvent = { |
| 8 | + date: string; |
| 9 | + year: string; |
| 10 | + title: string; |
| 11 | + description: string; |
| 12 | + type: string; |
| 13 | + location: string; |
| 14 | + action: string; |
| 15 | + href: string; |
| 16 | +}; |
| 17 | + |
| 18 | +const pastEvents = pastEventsData.pastEvents as PastEvent[]; |
| 19 | + |
| 20 | +export default function CommunityEvents(): React.JSX.Element { |
| 21 | + return ( |
| 22 | + <Layout |
| 23 | + title='Past Events' |
| 24 | + description='Browse past OpenChoreo community events, talks, meetups, and recordings.' |
| 25 | + > |
| 26 | + <main className={styles.page}> |
| 27 | + <section className={styles.hero}> |
| 28 | + <div className={styles.container}> |
| 29 | + <Link className={styles.backLink} to='/community'> |
| 30 | + Back to Community |
| 31 | + </Link> |
| 32 | + |
| 33 | + <h1>Past Events</h1> |
| 34 | + <p> |
| 35 | + Explore OpenChoreo community calls, conference sessions, meetups, |
| 36 | + and recordings from previous events. |
| 37 | + </p> |
| 38 | + </div> |
| 39 | + </section> |
| 40 | + |
| 41 | + <section className={styles.section}> |
| 42 | + <div className={styles.container}> |
| 43 | + <div className={styles.eventList}> |
| 44 | + {pastEvents.map((event) => ( |
| 45 | + <article className={styles.eventCard} key={event.title}> |
| 46 | + <div className={styles.eventDate}> |
| 47 | + <span>{event.date}</span> |
| 48 | + <strong>{event.year}</strong> |
| 49 | + </div> |
| 50 | + |
| 51 | + <div className={styles.eventContent}> |
| 52 | + <div className={styles.eventMeta}> |
| 53 | + <span>{event.type}</span> |
| 54 | + <span>{event.location}</span> |
| 55 | + </div> |
| 56 | + |
| 57 | + <h2>{event.title}</h2> |
| 58 | + <p>{event.description}</p> |
| 59 | + </div> |
| 60 | + |
| 61 | + <Link |
| 62 | + className='button button--primary button--sm' |
| 63 | + to={event.href} |
| 64 | + > |
| 65 | + {event.action} |
| 66 | + </Link> |
| 67 | + </article> |
| 68 | + ))} |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </section> |
| 72 | + </main> |
| 73 | + </Layout> |
| 74 | + ); |
| 75 | +} |
0 commit comments