How hamzaui34/modern-restaurant-web-platform works
Royal Ember is a restaurant website with customer-facing discovery, ordering, and reservation flows, plus staff and admin portals. The ordering path runs from menu browsing through a persistent cart and checkout; reservations are stored in browser localStorage. Staff authentication delegates to staff-domain logic, while the README describes staff operations and admin management/analytics. The project tree, README, and sampled files support these boundaries; several portal implementations were not sampled, so uncertain links are omitted or marked unverified.
Main entry points: app/page.tsx Restaurant showcase · StaffAuthProvider.tsx Staff authentication · useCart.ts Cart state · menu/page.tsx Browse menu
Components 34
Customer experience
- Restaurant showcase
app/page.tsx - Hero section
components/home/HeroSection.tsx - Signature dishes
components/home/SignatureDishes.tsx - Testimonials
components/home/Testimonials.tsx - Location section
components/home/LocationSection.tsx - Contact form
app/contact/page.tsx
Ordering and bookings
- Browse menu
app/menu/page.tsx - Category filters
components/menu/CategoryFilter.tsx - Menu grid
components/menu/MenuGrid.tsx - Cart state
lib/useCart.ts - Shopping cart
app/cart/page.tsx - Checkout
app/checkout/page.tsx - Order confirmation
app/order-confirmation/page.tsx - Reservation booking
app/reservations/page.tsx - Browser localStorage
Staff portal
- Staff login
app/staff/login/page.tsx - Staff authentication
components/staff/StaffAuthProvider.tsx - Staff records and roles
components/staff/staffTypes.ts - Staff dashboard
app/staff/dashboard/page.tsx - Staff management
app/staff/admin/page.tsx - Staff profile
app/staff/profile/page.tsx - Staff portal shell
components/staff/StaffLayout.tsx
Admin operations
- Admin login
app/admin/login/page.tsx - Admin authentication
components/admin/AdminAuthProvider.tsx - Order management
app/admin/orders/page.tsx - Reservation management
app/admin/reservations/page.tsx - Menu management
app/admin/menu/page.tsx - Analytics dashboard
components/admin/StatsDashboard.tsx - Metric card
components/admin/StatsCard.tsx
Shared presentation
- Site navigation
components/layout/Header.tsx - Site footer
components/layout/Footer.tsx
Other components
- Customer
- Staff member
- Restaurant administrator
Connections 33
- Customer → Restaurant showcase: visits
README.md - Restaurant showcase → Hero section: renders
app/page.tsx - Restaurant showcase → Signature dishes: renders
app/page.tsx - Restaurant showcase → Testimonials: renders
app/page.tsx - Restaurant showcase → Location section: renders
app/page.tsx - Customer → Browse menu: browses
README.md - Browse menu → Category filters: renders
app/menu/page.tsx - Browse menu → Menu grid: renders
app/menu/page.tsx - Menu grid → Cart state: adds items
components/menu/MenuGrid.tsx - Customer → Shopping cart: reviews cart
README.md - Shopping cart → Cart state: reads and updates
app/cart/page.tsx - Customer → Checkout: checks out
README.md - Checkout → Cart state: reads cart
app/checkout/page.tsx - Checkout → Order confirmation: completes order
- Cart state → Browser localStorage: persists cart
lib/useCart.ts - Customer → Reservation booking: books table
README.md - Reservation booking → Browser localStorage: saves booking
app/reservations/page.tsx - Customer → Contact form: sends inquiry
README.md - Staff member → Staff login: signs in
README.md - Staff login → Staff authentication: uses
app/staff/login/page.tsx - Staff authentication → Staff records and roles: authenticates through
components/staff/StaffAuthProvider.tsx - Staff dashboard → Staff authentication: uses
app/staff/dashboard/page.tsx - Staff management → Staff authentication: uses
app/staff/admin/page.tsx - Staff profile → Staff authentication: uses
app/staff/profile/page.tsx - Staff member → Staff dashboard: views overview
README.md - Staff member → Staff management: manages staff
README.md - Staff member → Staff profile: updates profile
README.md - Restaurant administrator → Admin login: signs in
- Restaurant administrator → Order management: manages orders
README.md - Restaurant administrator → Reservation management: manages bookings
README.md - Restaurant administrator → Menu management: manages menu
README.md - Restaurant administrator → Analytics dashboard: views analytics
README.md - Analytics dashboard → Metric card: renders metrics
components/admin/StatsDashboard.tsx