Replaces the generic card at / with a single-screen, centered brand moment:
- Brand animation: 'SmartMenu' rises in as the protagonist (bold sans, Smart in
ink + Menu in terracotta), then a delicate Fraunces-italic 'by Collina'
signature fades in surrounded by soft twinkling SVG sparkles (Magic-UI style),
over a slow radial brand glow. Pure CSS keyframes + inline SVG — no animation
libs, no extra deps; stays light (first thing a prospect loads).
- Single sales CTA 'Solicita una demo' → /demo placeholder (flow designed later).
- Easter egg: the admin panel has no visible button; tapping the 'by Collina'
signature navigates to /admin (discreet <a aria-label=Collina href=/admin>).
- Accessible: prefers-reduced-motion shows the final state (no sequence, sparkles
static). Responsive mobile→desktop. Uses the existing warm Collina palette.
Verified: build passes; / returns 200 with the wordmark, sparkles, demo CTA, and
the Collina→/admin link; reduced-motion CSS present in the bundle.
B1 brand header: shorter banner (h-36), avatar centered over the banner's lower
edge (z-10, no clipping/layout push), and a compact name-only header when neither
banner nor logo is set (no giant gray gradient block). Banner stays edge-to-edge
behind the island when an image exists.
B2 FABs: reorganized into an ordered bottom-right vertical stack that never
overlaps each other or covers dish names/prices; the global 'more' button is now a
distinct ⋯ (was a '+', which clashed with the per-dish add '+'). Container
padding-bottom raised (pb-48) so the last dish is never hidden behind the FABs.
B3 consultant add-to-cart: each recommendation (direct and complement) resolves to
a real product by name and shows an 'Agregar' button that adds to the shared cart
(badge updates) — only when orders are enabled.
B4 consultant carousel: reuses SuggestionCarousel at the bottom of the consultant,
contextual to the cart, only when orders are on and pairings exist.
B5 safe-area: new .safe-modal padding (top+bottom env insets) on the consultant and
cart sheets so content clears the island and gesture bar; layout unchanged.
Suggestion computation + name resolution lifted into PublicMenu and shared by the
cart and consultant (no duplicated logic). No new i18n keys. Build passes; public
page renders in both header modes with no runtime errors.
BLOCK 1 — Orders persistence + expiration:
- New GET /api/[slug]/orders loads active orders from PostgreSQL on mount, so the
dashboard survives reloads (SSE only carries live events); it also prunes
completed orders older than the retention window on read (no cron)
- Restaurant.orderRetentionHours (default 24, migration 0007) + editor control in
the Orders tab; settings PATCH accepts it
BLOCK 2 — Smart cart pairings (precomputed, zero tokens at runtime):
- Restaurant.pairings JSON (migration 0008) stores { productId: [productId] }
- Optional 'Generate smart suggestions' checkbox in the publish modal; on publish,
one cheap Haiku call analyzes the snapshot and stores validated complements
(lib/pairings.ts, reuses parseLenientJson). AI failure never breaks publishing
- pairings read live and exposed via the public menu; cart shows an auto-rotating,
swipeable SuggestionCarousel of complements for what's in the cart (excluding
items already added), each with Add — only when orders are on and pairings exist
BLOCK 3 — Brand header:
- Restaurant.bannerImage, profileImage, socialLinks (migration 0009)
- New editor Brand tab: upload banner + circular logo (reuses /upload), social
links with common-platform suggestions and basic URL validation; saved via settings
- Public BrandHeader: full-bleed banner (edge-to-edge behind the island, safe-area
aware), circular logo avatar, name, and clickable social icons (lucide-react).
Graceful fallbacks (palette gradient banner, initial avatar) — no broken images.
Images are language-independent
All read live (no republish needed). i18n es/en at parity; glassmorphism,
mobile-first and safe areas preserved. Adds lucide-react.
Verified: build passes; 9 migrations apply; orders persist + prune on read;
publish survives missing API key; pairings + brand exposed via /menu.
The public menu (and editor) left a non-matching rectangular gap around the
iPhone notch / dynamic island. Make the glassmorphism background go edge-to-edge
while keeping interactive content clear of the unsafe regions.
- viewport-fit=cover so the layout uses the full screen incl. behind the island
- Safe-area utility classes (globals.css) built on env(safe-area-inset-*); they
resolve to 0 on devices without insets, preserving previous spacing
- Public menu: header padding-top, sticky section tabs offset, and floating
action buttons (Ask AI / +) respect top/bottom insets
- Editor: header padding-top and bottom tab bar respect top/bottom insets
Verified: build passes; all safe-area classes survive Tailwind purge; rendered
meta tag emits viewport-fit=cover.
Multi-tenant digital menu platform (Collina Systems): public QR menu with
glassmorphism + 3D macro flip cards, mobile-first editor with draft/publish
versioning (5-version history + restore), AI consultant & translation (Claude
Haiku), realtime orders via SSE, configurable palette, QR generation, superadmin
panel, and Docker/Coolify infra.