How bunyim-kong/pinky-studio works
Pinky Studio is a mock-data React skincare storefront. Shoppers browse curated collections, search/filter and inspect product details, then add items to a shared cart; account-gated demo checkout records local orders for account history. State persists through browser localStorage; the README confirms there is no real payment or customer-data backend. Edges reflect imports and explicit calls in the excerpts or SOURCE INDEX; unsampled account, cart, login, and informational page internals are represented by their exact page paths, with only documented or indexed links asserted.
Main entry points: App.jsx Route dispatcher · StoreContext.jsx Store state · products.js Mock catalogue · Layout.jsx Shared layout
Components 22
Product discovery
- Home collections
src/pages/HomePage.jsx - Search and filters
src/pages/ShopPage.jsx - Product details
src/pages/ProductPage.jsx - Mock catalogue
src/data/products.js - Product grid
src/components/ProductGrid.jsx - Product card
src/components/ProductCard.jsx - Brand and support pages
src/pages/InfoPages.jsx
Cart and checkout
- Cart screen
src/pages/CartPage.jsx - Demo checkout
src/pages/CheckoutPage.jsx
Account and orders
- Login screen
src/pages/LoginPage.jsx - Account history
src/pages/AccountPage.jsx
Shared storefront services
- Store state
src/context/StoreContext.jsx - Browser storage
src/services/storage.js - Formatting helpers
src/utils/format.js
Application shell
- Route dispatcher
src/App.jsx - Navigation and search
src/components/Header.jsx - Shared layout
src/components/Layout.jsx - Notice display
src/components/Toast.jsx - Store footer
src/components/Footer.jsx - Scroll reset
src/components/ScrollToTop.jsx - React entry and providers
src/main.jsx
Other components
- Shopper
Connections 37
- Shopper → Route dispatcher: opens storefront
- Route dispatcher → Home collections: routes to
src/App.jsx - Route dispatcher → Search and filters: routes to
src/App.jsx - Route dispatcher → Product details: routes to
src/App.jsx - Route dispatcher → Cart screen: routes to
src/App.jsx - Route dispatcher → Demo checkout: routes to
src/App.jsx - Route dispatcher → Login screen: routes to
src/App.jsx - Route dispatcher → Account history: routes to
src/App.jsx - Route dispatcher → Brand and support pages: routes to
src/App.jsx - Home collections → Mock catalogue: reads collections
src/pages/HomePage.jsx - Home collections → Product grid: renders
src/pages/HomePage.jsx - Search and filters → Mock catalogue: filters and sorts
src/pages/ShopPage.jsx - Search and filters → Product grid: renders results
src/pages/ShopPage.jsx - Product details → Mock catalogue: looks up product
src/pages/ProductPage.jsx - Product details → Store state: adds item
src/pages/ProductPage.jsx - Product details → Product grid: renders recommendations
src/pages/ProductPage.jsx - Product grid → Product card: renders items
src/components/ProductGrid.jsx - Product card → Store state: adds to cart
src/components/ProductCard.jsx - Cart screen → Store state: reads and updates
src/pages/CartPage.jsx - Demo checkout → Store state: submits order
src/pages/CheckoutPage.jsx - Demo checkout → Formatting helpers: formats totals
src/pages/CheckoutPage.jsx - Store state → Mock catalogue: resolves cart products
src/context/StoreContext.jsx - Store state → Browser storage: reads and writes
src/context/StoreContext.jsx - Login screen → Store state: authenticates demo user
src/pages/LoginPage.jsx - Account history → Store state: reads orders
src/pages/AccountPage.jsx - Account history → Formatting helpers: formats values
src/pages/AccountPage.jsx - Brand and support pages → Mock catalogue: reads catalogue
src/pages/InfoPages.jsx - Brand and support pages → Formatting helpers: formats values
src/pages/InfoPages.jsx - Navigation and search → Store state: reads account and cart
src/components/Header.jsx - Navigation and search → Formatting helpers: formats count
src/components/Header.jsx - Shared layout → Navigation and search: renders
src/components/Layout.jsx - Shared layout → Store footer: renders
src/components/Layout.jsx - Shared layout → Scroll reset: renders
src/components/Layout.jsx - Shared layout → Notice display: renders
src/components/Layout.jsx - Notice display → Store state: reads notice
src/components/Toast.jsx - React entry and providers → Route dispatcher: mounts
src/main.jsx - React entry and providers → Store state: provides shared state
src/main.jsx