The Events page gives GradGather users a central place to browse alumni gatherings, workshops, and community activities. Events are displayed as Bootstrap cards — each with a cover image, a title, a short description, and a “Go to Dashboard” action button. The page also exposes a JavaScript API for dynamically appending new event cards at runtime, making it straightforward to extend the listing without modifying the server-rendered HTML.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/meenalsingh0/GradGather/llms.txt
Use this file to discover all available pages before exploring further.
Accessing Events
The events page is served from a single Express route that renders theevents.hbs template:
| Method | Path | Description |
|---|---|---|
| GET | /events | Events listing with navigation tabs |
Event Navigation Tabs
The events page uses a Bootstrap 4 navbar as a tab bar across the top of the page. The tabs let users filter the event list by category:| Tab | Status | Description |
|---|---|---|
| All Events | Active | Shows all available events (default view) |
| Upcoming Events | Enabled | Filter for events that have not yet occurred |
| Attended Events | Enabled | Filter for events the user has already attended |
| Host an Event | Disabled | Placeholder — event hosting not yet implemented |
Event Cards
The.event-panel container holds one Bootstrap card per event. Five events are rendered server-side in events.hbs, each referencing a static image from the public/images/events/ directory:
| Event | Image File |
|---|---|
| Event 1 | public/images/events/event1.jpeg |
| Event 2 | public/images/events/event2.jpeg |
| Event 3 | public/images/events/event3.jpeg |
| Event 4 | public/images/events/event4.jpeg |
| Event 5 | public/images/events/event5.jpeg |
Adding Events Dynamically
TheaddEventCard(event) JavaScript function lets you inject additional event cards into the .event-panel at runtime — for example, after fetching new events from an API. The function accepts a plain event object and builds the full Bootstrap card structure programmatically:
Event Object Fields
URL or relative path to the event’s cover image. Example:
./images/event6.jpeg.Display title for the event card. Example:
"Event 6".Short description of the event shown in the card body.
The
href value for the “Go to Dashboard” button. Use "#" for a placeholder or supply a full path.