How adam0912098/restaurant works
This is a browser-based restaurant website, with a restaurant menu, cart and checkout, table reservations, and supporting visitor features. The principal workflow is browsing and filtering dishes, adding selections to a cart, then opening checkout. Reservations and local admin views form separate domain stages. The available excerpts show these behaviors implemented together in script.js; index.html, styles.css, and the unsampled portions of the script were not inspected, so the graph omits uncertain wiring and details.
Main entry points: script.js Smooth scrolling · index.html Restaurant page
Components 18
Visitor experience
- Restaurant page
index.html - Smooth scrolling
script.js - Theme controls
script.js - Language display
script.js - Accessible modals
script.js
Menu and ordering
- Menu browsing
script.js - Dish favorites
script.js - Cart
script.js - Checkout dialog
script.js
Restaurant operations
- Reservation booking
script.js - Admin views
script.js
Site support
- Toast notifications
script.js - Newsletter signup
script.js - Review carousel
script.js - Browser storage
Other components
- Visitor
- GSAP / ScrollTrigger
- Lenis
Connections 19
- Visitor → Restaurant page: uses
- Restaurant page → Smooth scrolling: initializes
script.js - Smooth scrolling → GSAP / ScrollTrigger: registers plugin
script.js - Smooth scrolling → Lenis: configures scrolling
script.js - Lenis → GSAP / ScrollTrigger: updates ticker
- Visitor → Menu browsing: filters menu
script.js - Menu browsing → Menu browsing: rerenders
script.js - Visitor → Dish favorites: toggles
script.js - Dish favorites → Browser storage: persists favorites
script.js - Visitor → Cart: updates quantities
script.js - Cart → Checkout dialog: opens dialog
script.js - Visitor → Reservation booking: books a table
script.js - Reservation booking → Browser storage: reads reservations
script.js - Visitor → Admin views: opens views
script.js - Admin views → Browser storage: reads reservations
script.js - Visitor → Newsletter signup: submits signup
script.js - Newsletter signup → Toast notifications: shows confirmation
script.js - Dish favorites → Toast notifications: shows feedback
script.js - Visitor → Review carousel: selects review
script.js