feat: redesign web menu layout, add header cover banner & dynamic header layout, refine mobile inputs and theme selector

This commit is contained in:
AyrisAI
2026-08-20 15:07:13 +03:00
parent 6fb91c94ff
commit 0836fc8539
17 changed files with 311 additions and 553 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export default async function DemoMenuPage({ searchParams }: PageProps) {
restaurant={DEMO_RESTAURANT}
categories={DEMO_CATEGORIES}
initialThemeKey={theme}
allowThemeSwitching={true}
allowThemeSwitching={false}
/>
);
}
+3 -2
View File
@@ -74,7 +74,7 @@ export default async function PublicMenuPage({ params, searchParams }: PageProps
let restaurant: any = null;
const { data: bySlug } = await supabase
.from("restaurants")
.select("id, name, slug, logo_url, phone, address")
.select("id, name, slug, logo_url, cover_url, phone, address")
.eq("slug", slug)
.maybeSingle();
@@ -84,7 +84,7 @@ export default async function PublicMenuPage({ params, searchParams }: PageProps
// 2. Try finding restaurant by custom domain hostname
const { data: domainRow } = await supabase
.from("domains")
.select("restaurant_id, restaurants(id, name, slug, logo_url, phone, address)")
.select("restaurant_id, restaurants(id, name, slug, logo_url, cover_url, phone, address)")
.eq("hostname", slug)
.maybeSingle();
@@ -144,6 +144,7 @@ export default async function PublicMenuPage({ params, searchParams }: PageProps
name: restaurant.name,
slug: restaurant.slug,
logo_url: restaurant.logo_url,
cover_url: restaurant.cover_url,
phone: restaurant.phone,
address: restaurant.address,
};