UoaWDCC / uasc-web

Project with the University of Auckland Snowsports Club Website & Booking System. Established in 2023.
https://uasc.co.nz
6 stars 2 forks source link

772 frontend create component to render all events #809

Closed bcho892 closed 1 week ago

bcho892 commented 2 weeks ago

Event Page (User View)

Created most logic for displaying the events, test by checking for any bad behaviour on the /events route.

Detailed View

image

Sign up area

image

Preview events for upcoming and current

[!NOTE] Upcoming events are sorted ascending (so closest to "now"), a past event is defined as the end date elapsing or a day passing from the start date if no end date is given

image

Past Events

image

github-actions[bot] commented 2 weeks ago

Visit the preview URL for this PR (updated for commit 47b706a):

https://uasc-ceebc--pr809-772-frontend-create-w1hag0gk.web.app

(expires Mon, 28 Oct 2024 00:03:05 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 36296ceaed1d43e92e7d5e81a72a7bd987560bfa

bcho892 commented 1 week ago

Also wondering, could we have the events instead being on the same page as /events, but use /events/{id} instead? Just thought it'd make sharing easier

Can probably use a query param (i.e /events?id={id}), as that's the only way with static export

bcho892 commented 1 week ago

One last pick as this is highly unlikely but still possible, is there any default asset that we can use in place if no event cover Thought it would make the website look more "professional"

https://placehold.co/600x400?text=UASC+Event

jeffplays2005 commented 1 week ago

One last pick as this is highly unlikely but still possible, is there any default asset that we can use in place if no event cover Thought it would make the website look more "professional"

https://placehold.co/600x400?text=UASC+Event

I tried running this locally although the client doesn't seem to allow for svgs/xml coming from external sources. I believe this is probably

image image
bcho892 commented 1 week ago

You should check the preview link which has the latest changes