How muradyanhayk/anush-center works
This is a React educational-center site: visitors browse a home page, navigate to lessons, and can open a lesson detail route. The lesson catalog is initialized in App from a local service function and rendered as cards. Header and drawer share navigation items, with App owning drawer visibility. The excerpts show routing and component composition, but not a working card-selection handoff; CardList expects a callback that App does not pass. The service-worker module is present but explicitly unregistered at startup.
Main entry points: App.jsx App router · Header.jsx Header · Items.jsx Navigation links · CardList.jsx Lesson catalog
Components 16
Application and routes
- App router
src/components/app/App.jsx - Home page
src/components/home-page/HomePage.jsx - About route
src/components/app/App.jsx - Contact route
src/components/app/App.jsx - Service worker control
src/serviceWorker.js - React entry point
src/index.js
Navigation interface
- Header
src/components/header/Header.jsx - Navigation links
src/components/items/Items.jsx - Drawer toggle
src/components/drawer-toggle-button/DrawerToggleButton.jsx - Side drawer
src/components/side-drawer/SideDrawer.jsx - Drawer backdrop
src/components/back-drop/BackDrop.jsx
Lesson browsing
- Lesson catalog
src/components/card-list/CardList.jsx - Lesson card
src/components/card/Card.jsx - Lesson detail
src/components/card-page/CardPage.jsx - Lesson data
src/service/service.js
Other components
- Visitor
Connections 17
- Visitor → App router: opens
- React entry point → App router: renders
src/index.js - App router → Lesson data: loads
src/components/app/App.jsx - App router → Header: renders
src/components/app/App.jsx - App router → Home page: routes to
src/components/app/App.jsx - App router → Lesson catalog: routes to
src/components/app/App.jsx - App router → Lesson detail: routes to
src/components/app/App.jsx - App router → About route: routes to
src/components/app/App.jsx - App router → Contact route: routes to
src/components/app/App.jsx - App router → Side drawer: renders and controls
src/components/app/App.jsx - App router → Drawer backdrop: renders when open
src/components/app/App.jsx - Header → Drawer toggle: renders
src/components/header/Header.jsx - Header → Navigation links: renders
src/components/header/Header.jsx - Side drawer → Navigation links: renders
src/components/side-drawer/SideDrawer.jsx - Navigation links → Lesson catalog: links to lessons
src/components/items/Items.jsx - Lesson catalog → Lesson card: renders
src/components/card-list/CardList.jsx - React entry point → Service worker control: unregisters
src/index.js