Commit Graph
6 Commits
Author SHA1 Message Date
Collina SystemsandClaude Opus 4.8 58a71d0bef Apply full frontend redesign (Montserrat, red accent, glass + dock UI)
Fonts switched to Montserrat (UI) + Merriweather (landing wordmark). Macro
protein standard color updated to #dc2626; primary actions hardcoded red.
New globals.css primitives: ai-smoke gradient buttons, seg-btn, sticky
cat-bar, editor dock-*, macro shimmer, delivery-timer pulses, liquid-btn,
aurora, editable-num.

- Public: landing (video bg + red CTA), PublicMenu (segmented toggle +
  "Preguntar a Claude" + sticky category bar w/ scroll-spy + Order/Waiter/
  Split FABs), DishCard flip, MacrosBack shimmer, BrandHeader, SplitPanel,
  AiConsultant.
- Editor: bottom dock navigation, EditorLogin video background, BrandTab,
  CatalogTab (+SectionTitleEditor), VersionHistory, OrdersTab, ProductEditor.
- Admin: AdminLogin, AdminPanel.
- Add landing/editor background videos under public/videos.
- ES/EN i18n keys added; FRONTEND.md updated; design mockups included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 14:03:06 -06:00
Jorem Juárez b30430a1ea Premium minimalist landing page (brand + single CTA)
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.
2026-06-15 20:36:00 -06:00
Jorem Juárez 6cda59387c Public menu UX fixes: brand header, FABs, consultant add/carousel, modal safe-area
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.
2026-06-15 18:01:07 -06:00
Jorem Juárez 244adaee30 Orders persistence/expiration, cart pairings, and brand header
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.
2026-06-15 17:25:35 -06:00
Jorem Juárez d71ede3d00 Edge-to-edge mobile layout with safe-area insets
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.
2026-06-15 13:46:27 -06:00
Jorem Juárez 5fb9c7a145 Initial build: Menú inteligente platform
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.
2026-06-13 19:33:00 -06:00