How tarick7/toom-website works
TOOM’s Next.js site presents its Lebanese restaurant and catering services, with visitors moving from the home page into either offering. The catering path includes describing an event, submitting a quote request, validating it server-side, and persisting the lead locally. Restaurant information, menu items, event types, and gallery data are maintained as Git-managed content. The README documents delivery-platform links and the gallery capability; only sampled source is used to show their wiring. Quote persistence is local JSON, not a CRM integration.
Main entry points: restaurant/page.tsx Restaurant page · app/page.tsx Home · DevisForm.tsx Quote form · traiteur/page.tsx Catering page
Components 15
Site discovery
- Home
app/page.tsx - About
app/a-propos/page.tsx - Event gallery
app/realisations/page.tsx - Legal & privacy
app/mentions-legales/page.tsx
Restaurant
- Restaurant page
app/restaurant/page.tsx
Catering
- Catering page
app/traiteur/page.tsx - Quote page
app/traiteur/devis/page.tsx - Quote form
components/DevisForm.tsx - Quote endpoint
app/api/devis/route.ts - Local lead file
Managed content
- Menu data
lib/menu.ts - Site content
lib/content.ts - Event types & gallery data
lib/event-types.ts
Other components
- Visitor
- Delivery platforms
Connections 18
- Visitor → Home: opens site
- Home → Restaurant page: links to
- Home → Catering page: links to
- Visitor → About: opens page
- Visitor → Event gallery: opens page
- Visitor → Legal & privacy: opens page
- Visitor → Restaurant page: opens page
- Restaurant page → Menu data: reads menu
- Restaurant page → Site content: reads details
- Restaurant page → Delivery platforms: links out
- Visitor → Catering page: opens page
- Catering page → Quote page: links to
- Visitor → Quote page: opens page
- Quote page → Quote form: renders form
- Quote form → Event types & gallery data: reads event types
- Quote form → Quote endpoint: posts form
- Quote endpoint → Local lead file: reads and writes
- Event gallery → Event types & gallery data: reads gallery data