How ishantrivedi468-lang/king-kohli works
Virat The King is a React/TypeScript fan-tribute website. Visitors enter through the home page, explore career milestones and statistics, then navigate to focused pages for records, trophies, and relationships; the gallery provides a separate photo-browsing experience. Route modules are the main domain layer, with shared site components and data manifests supporting presentation. The home-page wiring and several shared components are sampled; unsampled route internals are represented by their paths and documented purpose, without guessing their data flow.
Main entry points: router.tsx Router · index.tsx Home · trophies.tsx Trophies · __root.tsx Root layout
Components 22
Site navigation
- Router
src/router.tsx - Root layout
src/routes/__root.tsx
Career and legacy
- Home
src/routes/index.tsx - Career timeline
src/routes/career.tsx - Career statistics
src/routes/stats.tsx - Records
src/routes/records.tsx - Greatness
src/routes/greatness.tsx - Trophies
src/routes/trophies.tsx
Relationships and gallery
- Mahirat
src/routes/mahirat.tsx - Virushka
src/routes/virushka.tsx - Rohirat
src/routes/rohirat.tsx - Photo gallery
src/routes/gallery.tsx
Shared presentation
- Site components
src/components/site/Bits.tsx - Navigation
src/components/site/Nav.tsx - Photo frames
src/components/site/PhotoFrame.tsx - Lightbox
src/components/site/Lightbox.tsx - Story content
src/data/content.ts - Statistics data
src/data/stats.ts - Media mapping
src/data/media.ts - Photo manifest
src/data/photos.ts
Other components
- Visitor
- Wikimedia Commons
Connections 22
- Visitor → Router: opens site
- Router → Root layout: renders layout
- Root layout → Navigation: displays navigation
- Navigation → Router: links routes
- Router → Home: dispatches route
- Router → Career timeline: dispatches route
- Router → Career statistics: dispatches route
- Router → Records: dispatches route
- Router → Greatness: dispatches route
- Router → Trophies: dispatches route
- Router → Mahirat: dispatches route
- Router → Virushka: dispatches route
- Router → Rohirat: dispatches route
- Router → Photo gallery: dispatches route
- Home → Story content: reads milestones
- Home → Statistics data: reads statistics
- Home → Site components: renders sections
- Trophies → Media mapping: selects photos
- Trophies → Photo frames: renders photos
- Media mapping → Photo manifest: maps photos
- Photo manifest → Wikimedia Commons: references images
- Photo gallery → Lightbox: opens images