How lokeshbagade07/yung-dsa-website works
This repository contains two artist-facing web experiences: a Next.js artist site with discography, tour information and a mock merchandise cart, and a separate React editorial/style experience with a Three.js avatar. The main shopper flow is browsing merchandise, adding a selected product and size to shared cart state, then reviewing that cart in a drawer. A small Python endpoint accepts validated style-interaction receipts and writes private objects to Vercel Blob. Source excerpts support the cart and receipt flows; several frontend capabilities are visible only in the tree or index.
Main entry points: CartContext.tsx Cart state · layout.tsx Site shell · mockData.ts Artist data · page.tsx Merch catalog
Components 24
Artist Site
- Site shell
app/layout.tsx - Artist home
app/page.tsx - Discography
app/dsa/page.tsx - Tour dates
app/admin/page.tsx - Artist data
lib/mockData.ts - Particle backdrop
components/ThreeBackground.tsx - Navigation
components/Navbar.tsx - Footer
components/Footer.tsx - Bento sections
components/BentoGrid.tsx - Tilt card
components/TiltCard.tsx
Merchandise Cart
- Merch catalog
app/merch/page.tsx - Product detail
app/merch/[id]/page.tsx - Cart state
context/CartContext.tsx - Cart drawer
components/CartDrawer.tsx
Editorial And Style
- Editorial home
frontend/src/App.js - Editorial content
frontend/src/content.js - 3D fan sculpture
frontend/public/style/avatar.js - Style experiences
frontend/public/style - Guide metrics
frontend/public/guides/static-metrics.js
Activity Receipt
- Fit activity API
frontend/api/fit_activity.py - Vercel Blob
- Activity client
api/fit_activity.py - Backend server
backend/server.py
Other components
- Site visitor
Connections 23
- Site shell → Navigation: renders
app/layout.tsx - Site shell → Footer: renders
app/layout.tsx - Site shell → Cart drawer: renders
app/layout.tsx - Site shell → Cart state: provides
app/layout.tsx - Discography → Artist data: reads albums
app/dsa/page.tsx - Tour dates → Artist data: reads tour data
app/admin/page.tsx - Discography → Particle backdrop: renders
app/dsa/page.tsx - Tour dates → Particle backdrop: renders
app/admin/page.tsx - Merch catalog → Artist data: reads products
app/merch/page.tsx - Product detail → Artist data: reads products
app/merch/[id]/page.tsx - Merch catalog → Cart state: adds items
app/merch/page.tsx - Product detail → Cart state: adds items
app/merch/[id]/page.tsx - Cart drawer → Cart state: reads and updates
components/CartDrawer.tsx - Navigation → Cart state: reads cart
components/Navbar.tsx - Bento sections → Tilt card: renders
components/BentoGrid.tsx - Bento sections → Cart state: uses cart
components/BentoGrid.tsx - Editorial home → Editorial content: reads content
frontend/src/App.js - Site visitor → Artist home: browses
- Site visitor → Merch catalog: browses
- Site visitor → Editorial home: browses
- Style experiences → 3D fan sculpture: uses sculpture
frontend/public/style/studio.js - Fit activity API → Vercel Blob: writes receipts
frontend/api/fit_activity.py - Activity client → Fit activity API: references
api/fit_activity.py