update type to enum and change css -> tailwindcss syntax + some ui change

This commit is contained in:
Minh Vo
2025-12-29 02:37:29 -05:00
parent 6ce42e7d36
commit 3e74ac4bcb
6 changed files with 116 additions and 105 deletions

View File

@@ -9,18 +9,28 @@ export type EventPost = {
time: string;
location: string;
thumbnail: string;
category: string;
category: EventCategory;
links: LinkType[];
};
export type Category = 'allEvents' | 'academic' | 'professional' | 'social' | 'technical';
export enum EventCategory {
ALL_EVENTS = 'allEvents',
ACADEMIC = 'academic',
PROFESSIONAL = 'professional',
SOCIAL = 'social',
TECHNICAL = 'technical'
};
export type LinkType = {
title: string;
kind: EventLinkKind;
url: string;
};
export type EventLinkKind = 'payment' | 'registration' | 'general';
export enum EventLinkKind {
PAYMENT = 'payment',
REGISTRATION = 'registration',
GENERAL = 'general'
};
export type FAQ = {
question: string;