Skip to content

Conversation

@dhanavadh
Copy link
Contributor

Summary

  • Created Event Pages with mocked api in /lib/eventAPI.ts which you can config the state of the event status
  • Used dynamic routes for handling events. The path will be /firstdate/events/[eventId]/

Example

You can change state of the event in /lib/eventAPI.ts.

const mockData: Record<EventType, EventStatus> = {
    'firstdate': { isRegistered, isLate: false, isComingSoon: false },
    'rpkm': { isRegistered, isLate: false, isComingSoon: false },
    'freshmen-night': { isRegistered, isLate: false, isComingSoon: false },
    'cu-fest': { isRegistered, isLate: false, isComingSoon: true },
    'personality-game': { isRegistered, isLate: false, isComingSoon: true },
  };

Preview

Not Registered Loading Completed Coming Soon
localhost_4321_firstdate_events_firstdate_(iPhone XR) localhost_4321_firstdate_events_firstdate__registered=true(iPhone XR) localhost_4321_firstdate_events_firstdate_(iPhone XR) (1) localhost_4321_firstdate_events_cu-fest_(iPhone XR)

Reference

For the sequence or user's flow, please see Figma

- Added event page for all events
- Added mockedAPI for testing state
- Added confetti for successful registration
- the component in each page will be fixed later
-Added layout and details mockup for rpkm events
- Changed to dynamic routes for events `/firstdate/events/[eventId]/`
- Added state for mocked API
- Added personality game mock api
- You can config API in `/lib/eventAPI.ts` @getEventStatus
@dhanavadh dhanavadh requested review from MasterIceZ and neennera July 11, 2025 13:11
Copy link
Member

@MasterIceZ MasterIceZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm kub

@dhanavadh dhanavadh merged commit da7676b into dev Jul 12, 2025
7 checks passed
@dhanavadh dhanavadh deleted the feat/firstdate/event branch July 12, 2025 08:42
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

Successfully merging this pull request may close these issues.

2 participants