Frontend

3.1 UI Components

The UI system is built using shadcn/ui, a component library based on Radix UI primitives, and is heavily styled using Tailwind CSS, SCSS modules, and global CSS variables.

3.1.1 Component Libraries Used

3.1.2 Component Structure & Organization

UI components are structured within the src/components/ directory under several subfolders:

src/components/
├── common/           # Shared cross-page components (e.g., headers, footers)
├── modals/           # All modal components (e.g., AuthModal, ConfirmModal)
├── originalGames/    # Custom components for each in-house game
├── pages/            # Page-level components specific to certain routes
└── ui/               # Core UI components (buttons, inputs, etc.)
    

Breakdown by Folder:

common/

modals/

originalGames/

pages/

ui/

Each component is typically styled with a mix of Tailwind utility classes and SCSS modules where needed.

3.1.3 Theming & Styling

3.1.4 Responsiveness

3.1.5 Animations & Transitions