Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add status icons to approved, ongoing and finished contests on the contests page #57

Open
dmint789 opened this issue Oct 13, 2024 · 0 comments

Comments

@dmint789
Copy link
Collaborator

The contests page should make it clear what status each contest has currently. This can be done in the form of an icon in front of the date, same as on the WCA website.

  • For approved contests (contest.state === ContestState.Approved), use the hourglass-start Font Awesome icon
  • For ongoing contests, use the hourglass-half icon. This status should be determined using the same logic as on line 26 in client/app/competitions/[id]/page.tsx (that logic should be moved into a new getIsContestOngoing() function in client/helpers/utilityFunctions.ts).
  • For finished contests (contest.state === ContestState.Finished), use the hourglass-start icon rotated 180 degrees, because the hourglass-end icon requires the premium version of Font Awesome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant