kacky-code / kacky-eventpage-frontend

Frontend of the Kacky Eventpage.
https://kacky.gg
9 stars 9 forks source link

Index Page needs more Phases #54

Open dremerb opened 11 months ago

dremerb commented 11 months ago

The the moment the Index page has 3 phases. https://api.kacky.gg/eventstatus either signals {"status": "over"}, {..., "status": "post"} or {..., "status": "active"}. over should yield a page with general information or any other generic landing page.
active shows the dashboard while the event is running.
post shows a user's number of finishes and plastic/bronze/silver/gold/kacky role.

Proposal: pre or countdown status that starts one month/two weeks before the event starts and shows a countdown, as well as event specific information.

Garlikdev commented 7 months ago

I can see another problem with this, and also that #57 . We check for eventstatus on page load, but never again, so even if we render a page for all phases (it's done in my fork) when the countdown is over or whatever happens to eventstatus, page is not being reloaded to proper one. That also means i can't implement proper dev mode status change #61 which wouldn't be possible to override with constant eventstatus check. Maybe dev mode shouldn't fetch for eventstatus at all and just have it hardcoded.