icssc / icssc-website

Website for the ICS Student Council
https://studentcouncil.ics.uci.edu
MIT License
9 stars 2 forks source link

Refactor Events Page #87

Closed KevinWu098 closed 10 months ago

KevinWu098 commented 1 year ago
{
    "current": [
        {
            "src":"/assets/img/events/event_icsscfair.jpg",
            "title":"ICSSC at AIFs",
            "time":"Monday, September 25th, 2023",
            "location": "Aldrich Park 11AM -4 PM",
            "desc": "💻 Interested in Computer Science? Want to get involved in the ICS community here at UCI? 🧑‍💻Come talk to the Information and Computer Science Student Council at AIF this Monday, September 25th at AIF from 11 am to 4 pm! Meet our board members, learn about new opportunities 👀, and learn about upcoming events 📅!"
        }
    ],

    "past": [
        {
            "src":"/assets/img/events/event_microtalk.png",
            "title":"ICSSC's Micro Talks",
            "time":"Wednesday, May 10th, 2023",
            "location": "ICS 428 7-8 PM",
            "desc": "ICSSC Events Committee ran out of ideas! 🫵 So you’re the next event! Steal the stage (aka front of ICS 428) with a 1-2 minute microtalk on anything you want: your hopes, dreams, passions, among us victories, or a random topic from our wheel 🎡"
        }
    ],

Currently, events.json is split into current and past; it's accessed with EventsData.past.map() and EventsData["current"].map(), but this requires manual updating from current -> past. We can clean this up by filtering based on date.

Additionally, some TLC on events.js would be solid!