How elab-development/iteh26 works
This is a flashcard-deck browsing interface: users reach the home page, browse decks, and narrow them by subject or name; the browser renders matching deck cards. The sampled UI uses mock data rather than the database. The database connection and user schema are present, but no sampled application path connects them to browsing. The README is a generic Next.js template and documents no additional product capabilities; relationships are limited to those visible in excerpts or the source index.
Main entry points: DeckBrowser.tsx Deck browser · Sidebar.tsx Search and filters · types.ts Deck and subject types · page.tsx Home page
Components 10
App entry
- Home page
src/app/page.tsx
Deck browsing
- Deck browser
src/components/DeckBrowser.tsx - Search and filters
src/components/Sidebar.tsx - Subject filter button
src/components/FilterBtn.tsx - Deck card
src/components/Card.tsx
Data and persistence
- Mock decks and subjects
src/mock/data.ts - Deck and subject types
src/shared/types.ts - Postgres client
src/db/index.ts - User table schema
src/db/schema.ts
Other components
- Visitor
Connections 9
- Visitor → Home page: opens app
- Home page → Deck browser: renders
src/app/page.tsx - Deck browser → Mock decks and subjects: loads mock data
src/components/DeckBrowser.tsx - Deck browser → Search and filters: renders filters
src/components/DeckBrowser.tsx - Deck browser → Deck card: renders decks
src/components/DeckBrowser.tsx - Search and filters → Subject filter button: renders buttons
src/components/Sidebar.tsx - Deck browser → Deck and subject types: uses types
src/components/DeckBrowser.tsx - Search and filters → Deck and subject types: uses types
src/components/Sidebar.tsx - Deck card → Deck and subject types: uses types
src/components/Card.tsx