SmOS platform home and SmOS_CC module
Browse filesFiles changed (20)
- DockerfileAdded+19
- README.md+93-10
- STREAMLIT.mdAdded+25
- app.pyAdded+475
- index.html+91
- modules/SmOS_CC/app.jsAdded+648
- modules/SmOS_CC/assets/logo-c.svgAdded
- modules/SmOS_CC/checkout.htmlAdded+102
- modules/SmOS_CC/index.htmlAdded+114
- modules/SmOS_CC/menu-data.jsAdded+232
- modules/SmOS_CC/order.htmlAdded+101
- modules/SmOS_CC/path.htmlAdded+90
- modules/SmOS_CC/payments-config.jsAdded+34
- modules/SmOS_CC/styles.cssAdded+930
- requirements.txtAdded+5
- site.jsAdded+14
- static/index.htmlAdded+214
- streamlit_app.pyAdded+46
- streamlit_static.pyAdded+494
- styles.cssAdded+298
12345678910111213141516171819FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ SMOS_DATA_DIR=/data
WORKDIR /app
COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .COPY static ./static
RUN mkdir -p /data
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]12345678910---title: SMOSemoji: 🐨colorFrom: purplecolorTo: pinksdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293# SmOSAI powered online ordering system, customisable for restaurants and other merchants.SmOS is a modular restaurant tech stack: a shared platform core plus merchant-specific modules. Each module can own branding, menu, fulfilment modes (delivery, collection, sit-in), and ordering UX — including browse-the-menu and natural-language “I know what I want” flows.## Explore modules| Module | Merchant | Description ||--------|----------|-------------|| **SmOS_CC** | The Corner Cafe (Dalkeith) | Custom ordering experience — service mode, menu browse, AI dish matching |## Local```bash# Platform + modules (static)python3 -m http.server 8877# Home: http://127.0.0.1:8877/# SmOS_CC: http://127.0.0.1:8877/modules/SmOS_CC/# Optional: FastAPI voice / kitchen layer (legacy core on port 7860)python -m venv .venv && source .venv/bin/activatepip install -r requirements.txtuvicorn app:app --reload --port 7860```## Layout```textindex.html Platform homestyles.css / site.js Platform chrome (Explore modules)modules/SmOS_CC/ Corner Cafe customisationstatic/ Legacy voice + kitchen UI (served by FastAPI)app.py API + WebSocket kitchen workflow```## Remotes<<<<<<< HEAD- GitHub: https://github.com/2000pd3rvr/SMOS- Hugging Face Space: https://huggingface.co/spaces/0001AMA/SMOS=======## Docker```bashdocker build -t smos .docker run --rm -p 7860:7860 -v smos-data:/data smos```## Integrating into a restaurant systemThe application exposes JSON endpoints under `/api`:- `POST /api/translate` — translate guest or staff text- `POST /api/orders` — submit an order- `GET /api/orders?language=en` — retrieve translated orders- `PATCH /api/orders/{id}` — update an order's workflow status- `GET /api/image` — create a food visualisation URL- `WS /ws` — receive live order eventsFastAPI's interactive API documentation is available at `/docs`.## Production notesThis release is a deployable MVP. Before handling real payments or sensitivecustomer data, add staff authentication, role-based access, a managed database,rate limiting, audit logs, menu/POS integration, and explicit allergyconfirmation. Browser voice recognition varies by browser and operating system.Food images are illustrative and may not match the kitchen's final presentation.## Versioning and deploymentSMOS uses semantic versions. Every subsequent deployment must increment theversion in `app.py` and this README (for example `v0.1.1`, then `v0.1.2`) andreceive a matching Git tag.## Profiles- **WordPress:** https://deborahakuokominka.wordpress.com/- **about.me:** https://about.me/deborah_akuoko_minka_ama- **ORCID:** https://orcid.org/0009-0008-6219-154X- **GitHub:** https://github.com/2000pd3rvr- **GitLab:** https://gitlab.com/2000pd3rvr- **GitHub Pages hub:** https://2000pd3rvr.github.io/ama-profile/- **Streamlit apps hub:** https://streamlit-apps-hub.streamlit.app/- **Render live apps:** https://deborahakuokominka.wordpress.com/#render-apps- **Google Scholar:** https://scholar.google.co.uk/citations?hl=en&user=ab0EyjYAAAAJ## WordPress articles- [Spatial vs. time-resolved images](https://deborahakuokominka.wordpress.com/2026/08/22/spatial-vs-time-resolved-images-2/)- [Time-of-flight sensors guide](https://deborahakuokominka.wordpress.com/2026/08/22/time-of-flight-sensors-guide/)>>>>>>> 2057bab1518fe50e0c797eb0386b6ab305b9afac
12345678910111213141516171819202122232425# Deploying SMOS on Streamlit Community Cloud (GitLab → GitHub)
**Source of truth:** GitLab [2000pd3rvr/SMOS](https://gitlab.com/2000pd3rvr/SMOS) Streamlit Community Cloud pulls from the **GitHub mirror** ([2000pd3rvr/SMOS](https://github.com/2000pd3rvr/SMOS)) because Streamlit does not deploy directly from GitLab.
## Workflow
1. Push changes to GitLab `main` first.2. Run this script (or sync the mirror) so GitHub matches GitLab.3. Streamlit redeploys automatically from GitHub.
## Streamlit app settings
- **Repository:** `2000pd3rvr/SMOS`- **Branch:** `main`- **Main file:** `streamlit_app.py`- **URL:** https://smos.streamlit.app/
## Links
- Live app: https://smos.streamlit.app/- GitLab source: https://gitlab.com/2000pd3rvr/SMOS- GitHub mirror: https://github.com/2000pd3rvr/SMOS- Apps hub: https://streamlit-apps-hub.streamlit.app/- Hugging Face: https://huggingface.co/spaces/0001AMA/SMOS123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475from __future__ import annotations
import asyncioimport jsonimport osimport reimport sqlite3import unicodedataimport uuidfrom contextlib import asynccontextmanagerfrom datetime import datetime, timezonefrom pathlib import Pathfrom typing import Literalfrom urllib.parse import quote
from deep_translator import GoogleTranslator, MyMemoryTranslatorfrom fastapi import FastAPI, HTTPException, Query, WebSocket, WebSocketDisconnectfrom fastapi.responses import FileResponsefrom fastapi.staticfiles import StaticFilesfrom langdetect import DetectorFactory, LangDetectException, detectfrom pydantic import BaseModel, Field
VERSION = "0.1.5"DetectorFactory.seed = 0ROOT = Path(__file__).resolve().parentDATA_DIR = Path(os.getenv("SMOS_DATA_DIR", ROOT / "data"))DB_PATH = DATA_DIR / "smos.db"
LANGUAGES = [ {"code": "en", "name": "English", "locale": "en-GB"}, {"code": "tr", "name": "Türkçe · Turkish — optimised", "locale": "tr-TR"}, {"code": "ar", "name": "العربية · Arabic", "locale": "ar-SA"}, {"code": "bn", "name": "বাংলা · Bengali", "locale": "bn-BD"}, {"code": "zh-CN", "name": "中文 · Chinese", "locale": "zh-CN"}, {"code": "cs", "name": "Čeština · Czech", "locale": "cs-CZ"}, {"code": "da", "name": "Dansk · Danish", "locale": "da-DK"}, {"code": "nl", "name": "Nederlands · Dutch", "locale": "nl-NL"}, {"code": "fi", "name": "Suomi · Finnish", "locale": "fi-FI"}, {"code": "fr", "name": "Français · French", "locale": "fr-FR"}, {"code": "de", "name": "Deutsch · German", "locale": "de-DE"}, {"code": "el", "name": "Ελληνικά · Greek", "locale": "el-GR"}, {"code": "hi", "name": "हिन्दी · Hindi", "locale": "hi-IN"}, {"code": "hu", "name": "Magyar · Hungarian", "locale": "hu-HU"}, {"code": "id", "name": "Bahasa Indonesia", "locale": "id-ID"}, {"code": "it", "name": "Italiano · Italian", "locale": "it-IT"}, {"code": "ja", "name": "日本語 · Japanese", "locale": "ja-JP"}, {"code": "ko", "name": "한국어 · Korean", "locale": "ko-KR"}, {"code": "ms", "name": "Bahasa Melayu · Malay", "locale": "ms-MY"}, {"code": "no", "name": "Norsk · Norwegian", "locale": "nb-NO"}, {"code": "pl", "name": "Polski · Polish", "locale": "pl-PL"}, {"code": "pt", "name": "Português · Portuguese", "locale": "pt-PT"}, {"code": "ro", "name": "Română · Romanian", "locale": "ro-RO"}, {"code": "ru", "name": "Русский · Russian", "locale": "ru-RU"}, {"code": "es", "name": "Español · Spanish", "locale": "es-ES"}, {"code": "sw", "name": "Kiswahili · Swahili", "locale": "sw-KE"}, {"code": "sv", "name": "Svenska · Swedish", "locale": "sv-SE"}, {"code": "ta", "name": "தமிழ் · Tamil", "locale": "ta-IN"}, {"code": "th", "name": "ไทย · Thai", "locale": "th-TH"}, {"code": "uk", "name": "Українська · Ukrainian", "locale": "uk-UA"}, {"code": "ur", "name": "اردو · Urdu", "locale": "ur-PK"}, {"code": "vi", "name": "Tiếng Việt · Vietnamese", "locale": "vi-VN"},]LANGUAGE_CODES = {item["code"] for item in LANGUAGES}STATUSES = {"new", "accepted", "preparing", "ready", "served", "cancelled"}
TURKISH_SAFETY_TERMS = { ("tr", "en"): { "alerjim var": ("I have an allergy", ("allergy", "allergic")), "glütensiz": ("gluten-free", ("gluten-free", "without gluten")), "laktozsuz": ("lactose-free", ("lactose-free", "without lactose")), "süt ürünü olmasın": ("no dairy", ("no dairy", "dairy-free", "without dairy")), "fıstık alerjisi": ("peanut allergy", ("peanut allergy", "allergic to peanuts")), "fıstık alerjim var": ("peanut allergy", ("peanut allergy", "allergic to peanuts")), "fıstığa alerjim var": ("peanut allergy", ("peanut allergy", "allergic to peanuts")), "kuruyemiş alerjisi": ("nut allergy", ("nut allergy", "allergic to nuts")), "kuruyemişe alerjim var": ("nut allergy", ("nut allergy", "allergic to nuts")), "domuz eti olmasın": ("no pork", ("no pork", "without pork")), "soğansız": ("no onion", ("no onion", "without onion", "onion-free")), "sarımsaksız": ("no garlic", ("no garlic", "without garlic", "garlic-free")), "acısız": ("not spicy", ("not spicy", "non-spicy", "without spice")), }, ("en", "tr"): { "i have an allergy": ("alerjim var", ("alerjim var", "alerjim bulunuyor")), "gluten-free": ("glütensiz", ("glütensiz", "glutensiz")), "lactose-free": ("laktozsuz", ("laktozsuz",)), "no dairy": ("süt ürünü olmasın", ("süt ürünü olmasın", "süt ürünsüz")), "peanut allergy": ( "fıstık alerjisi", ("fıstık alerjisi", "fıstığa alerjim var", "yer fıstığına alerjim var"), ), "nut allergy": ("kuruyemiş alerjisi", ("kuruyemiş alerjisi",)), "no pork": ("domuz eti olmasın", ("domuz eti olmasın", "domuz etsiz")), "no onion": ("soğansız", ("soğansız", "soğan olmasın")), "no garlic": ("sarımsaksız", ("sarımsaksız", "sarımsak olmasın")), "not spicy": ("acısız", ("acısız", "acı olmasın", "baharatlı değil")), },}
def utc_now() -> str: return datetime.now(timezone.utc).isoformat()
def connect() -> sqlite3.Connection: connection = sqlite3.connect(DB_PATH) connection.row_factory = sqlite3.Row return connection
def initialise_database() -> None: DATA_DIR.mkdir(parents=True, exist_ok=True) with connect() as db: db.execute( """ CREATE TABLE IF NOT EXISTS orders ( id TEXT PRIMARY KEY, order_number INTEGER NOT NULL, customer_name TEXT NOT NULL, table_number TEXT NOT NULL, original_text TEXT NOT NULL, original_language TEXT NOT NULL, kitchen_text TEXT NOT NULL, status TEXT NOT NULL, created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) """ ) db.execute( """ CREATE TABLE IF NOT EXISTS translations ( order_id TEXT NOT NULL, language TEXT NOT NULL, text TEXT NOT NULL, PRIMARY KEY (order_id, language) ) """ )
def normalise_translation_input(text: str, source: str) -> str: normalised = unicodedata.normalize("NFC", text).replace("’", "'").replace("`", "'") normalised = " ".join(normalised.split()) if source == "tr": # Preserve dotted/dotless Turkish characters instead of ASCII-folding them. normalised = normalised.replace("İ", "İ") return normalised
def infer_source_language(text: str, requested: str = "auto") -> str: if requested in LANGUAGE_CODES: return requested lowered = unicodedata.normalize("NFC", text).casefold() turkish_markers = ( "ç", "ğ", "ı", "ö", "ş", "ü", " istiyorum", " olsun", " olmasın", " lütfen", ) if any(marker in lowered for marker in turkish_markers): return "tr" try: detected = detect(text) aliases = {"zh-cn": "zh-CN", "zh-tw": "zh-CN"} detected = aliases.get(detected, detected) if detected in LANGUAGE_CODES: return detected except LangDetectException: pass return "auto"
def preserve_turkish_safety_terms( source_text: str, translated_text: str, source: str, target: str) -> str: terms = TURKISH_SAFETY_TERMS.get((source, target), {}) source_lower = source_text.casefold() translated_lower = translated_text.casefold() missing: list[str] = [] for phrase, (canonical, accepted) in terms.items(): source_has_phrase = re.search( rf"(?<!\w){re.escape(phrase)}(?!\w)", source_lower, flags=re.UNICODE ) translation_has_term = any( re.search( rf"(?<!\w){re.escape(term.casefold())}(?!\w)", translated_lower, flags=re.UNICODE, ) for term in accepted ) if source_has_phrase and not translation_has_term: missing.append(canonical) if not missing: return translated_text label = "Order note" if target == "en" else "Sipariş notu" return f"{translated_text} — {label}: {', '.join(missing)}"
def correct_turkish_restaurant_context( source_text: str, translated_text: str, source: str, target: str) -> str: if source == "tr" and target == "en" and "acısız" in source_text.casefold(): # Generic translators can read "acı" as pain; on a food order it means spice/heat. translated_text = re.sub( r"\b(?:without\s+pain|no\s+pain|pain[\s-]?free|painless)\b", "not spicy", translated_text, flags=re.IGNORECASE, ) return translated_text
def google_translate(text: str, source: str, target: str) -> str: if not text.strip() or source == target: return text source = infer_source_language(text, source) source_code = "auto" if source not in LANGUAGE_CODES else source normalised = normalise_translation_input(text, source) try: translated = GoogleTranslator(source=source_code, target=target).translate(normalised) except Exception: try: memory_codes = { "en": "en-GB", "tr": "tr-TR", } translated = MyMemoryTranslator( source=memory_codes.get(source, source), target=memory_codes.get(target, target), ).translate(normalised) except Exception as exc: raise HTTPException( status_code=503, detail="Translation is temporarily unavailable. Please retry.", ) from exc if {source, target} == {"en", "tr"}: translated = correct_turkish_restaurant_context(normalised, translated, source, target) translated = preserve_turkish_safety_terms(normalised, translated, source, target) return translated
async def translate(text: str, source: str, target: str) -> str: return await asyncio.to_thread(google_translate, text, source, target)
class ConnectionManager: def __init__(self) -> None: self.connections: list[WebSocket] = []
async def connect(self, websocket: WebSocket) -> None: await websocket.accept() self.connections.append(websocket)
def disconnect(self, websocket: WebSocket) -> None: if websocket in self.connections: self.connections.remove(websocket)
async def broadcast(self, event: dict) -> None: stale: list[WebSocket] = [] for connection in self.connections: try: await connection.send_json(event) except Exception: stale.append(connection) for connection in stale: self.disconnect(connection)
manager = ConnectionManager()
class TranslationRequest(BaseModel): text: str = Field(min_length=1, max_length=1500) source: str = "auto" target: str
class OrderCreate(BaseModel): customer_name: str = Field(default="Guest", min_length=1, max_length=80) table_number: str = Field( default_factory=lambda: f"AUTO-{uuid.uuid4().hex[:6].upper()}", min_length=1, max_length=30, ) order_text: str = Field(min_length=2, max_length=1500) language: str = "auto"
class OrderStatusUpdate(BaseModel): status: Literal["new", "accepted", "preparing", "ready", "served", "cancelled"]
def row_to_dict(row: sqlite3.Row) -> dict: return dict(row)
@asynccontextmanagerasync def lifespan(_: FastAPI): initialise_database() yield
app = FastAPI(title="SmOS · AI powered online ordering", version=VERSION, lifespan=lifespan)app.mount("/static", StaticFiles(directory=ROOT / "static"), name="static")app.mount("/modules", StaticFiles(directory=ROOT / "modules", html=True), name="modules")
@app.get("/")async def home() -> FileResponse: platform = ROOT / "index.html" if platform.exists(): return FileResponse(platform) return FileResponse(ROOT / "static" / "index.html")
@app.get("/styles.css")async def platform_styles() -> FileResponse: return FileResponse(ROOT / "styles.css")
@app.get("/site.js")async def platform_site_js() -> FileResponse: return FileResponse(ROOT / "site.js")
@app.get("/guest")async def legacy_guest() -> FileResponse: return FileResponse(ROOT / "static" / "index.html")
@app.get("/api/config")async def config() -> dict: return {"name": "SMOS", "version": VERSION, "languages": LANGUAGES}
@app.get("/api/health")async def health() -> dict: return {"status": "ok", "version": VERSION}
@app.post("/api/translate")async def translate_text(payload: TranslationRequest) -> dict: if payload.target not in LANGUAGE_CODES: raise HTTPException(status_code=400, detail="Unsupported target language.") detected_source = infer_source_language(payload.text, payload.source) translated = await translate(payload.text, detected_source, payload.target) return {"translated_text": translated, "source": detected_source, "target": payload.target}
@app.post("/api/orders", status_code=201)async def create_order(payload: OrderCreate) -> dict: if payload.language != "auto" and payload.language not in LANGUAGE_CODES: raise HTTPException(status_code=400, detail="Unsupported order language.")
detected_language = infer_source_language(payload.order_text, payload.language) kitchen_text = await translate(payload.order_text, detected_language, "en") order_id = str(uuid.uuid4()) now = utc_now() with connect() as db: number = db.execute("SELECT COALESCE(MAX(order_number), 100) + 1 FROM orders").fetchone()[0] db.execute( """ INSERT INTO orders ( id, order_number, customer_name, table_number, original_text, original_language, kitchen_text, status, created_at, updated_at ) VALUES (?, ?, ?, ?, ?, ?, ?, 'new', ?, ?) """, ( order_id, number, payload.customer_name.strip(), payload.table_number.strip(), payload.order_text.strip(), detected_language, kitchen_text, now, now, ), ) row = db.execute("SELECT * FROM orders WHERE id = ?", (order_id,)).fetchone() order = row_to_dict(row) await manager.broadcast({"type": "order.created", "order": order}) return order
@app.get("/api/orders")async def list_orders( language: str = Query(default="en"), include_closed: bool = Query(default=True),) -> list[dict]: if language not in LANGUAGE_CODES: raise HTTPException(status_code=400, detail="Unsupported display language.") sql = "SELECT * FROM orders" params: tuple = () if not include_closed: sql += " WHERE status NOT IN (?, ?)" params = ("served", "cancelled") sql += " ORDER BY created_at DESC LIMIT 100" with connect() as db: rows = db.execute(sql, params).fetchall()
orders = [row_to_dict(row) for row in rows] for order in orders: if language == "en": order["display_text"] = order["kitchen_text"] continue with connect() as db: cached = db.execute( "SELECT text FROM translations WHERE order_id = ? AND language = ?", (order["id"], language), ).fetchone() if cached: order["display_text"] = cached["text"] else: translated = await translate(order["kitchen_text"], "en", language) order["display_text"] = translated with connect() as db: db.execute( "INSERT OR REPLACE INTO translations (order_id, language, text) VALUES (?, ?, ?)", (order["id"], language, translated), ) return orders
@app.patch("/api/orders/{order_id}")async def update_order(order_id: str, payload: OrderStatusUpdate) -> dict: if payload.status not in STATUSES: raise HTTPException(status_code=400, detail="Invalid status.") now = utc_now() with connect() as db: cursor = db.execute( "UPDATE orders SET status = ?, updated_at = ? WHERE id = ?", (payload.status, now, order_id), ) if cursor.rowcount == 0: raise HTTPException(status_code=404, detail="Order not found.") row = db.execute("SELECT * FROM orders WHERE id = ?", (order_id,)).fetchone() order = row_to_dict(row) await manager.broadcast({"type": "order.updated", "order": order}) return order
@app.get("/api/image")async def image_url( description: str = Query(min_length=2, max_length=500), language: str = Query(default="en"),) -> dict: english_description = await translate(description, language, "en") prompt = ( "professional appetizing restaurant food photography, plated dish, " f"{english_description}, warm natural light, realistic, no text, no logo" ) url = ( f"https://image.pollinations.ai/prompt/{quote(prompt, safe='')}" "?width=768&height=512&nologo=true&enhance=true" ) return {"url": url, "prompt": english_description}
@app.websocket("/ws")async def websocket_endpoint(websocket: WebSocket) -> None: await manager.connect(websocket) try: while True: message = await websocket.receive_text() if message == "ping": await websocket.send_text(json.dumps({"type": "pong"})) except WebSocketDisconnect: manager.disconnect(websocket)1234163 unmodified lines16816917017117217317417517617732 unmodified lines210211212213214<!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8">163 unmodified lines</div></div></section></section></main><footer class="site-footer"><div class="container footer-wrap"><span>SMOS <b id="version"></b> · Smart Food Ordering System</span><span>Voice availability depends on browser support. Please confirm allergies with staff.</span>32 unmodified lines</template><script src="/static/app.js?v=0.1.5" defer></script></body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586163 unmodified lines25025125225325425525625725825926026126226326426526626732 unmodified lines300301302303304305<!DOCTYPE html><<<<<<< HEAD<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"><meta name="description" content="SmOS — AI powered online ordering system, customisable for restaurants and other merchants."><title>SmOS · AI powered online ordering</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet"><link rel="stylesheet" href="styles.css"></head><body><div class="bg-grid" aria-hidden="true"></div><header class="site-header"><a class="logo" href="index.html">SmOS</a><nav class="site-nav" aria-label="Primary"><details class="nav-modules"><summary>Explore modules</summary><ul><li><a href="modules/SmOS_CC/"><span class="mod-id">SmOS_CC</span><span class="mod-name">Corner Cafe</span></a></li></ul></details><a href="#what">What it does</a></nav></header><main><section class="hero"><p class="eyebrow">Restaurant & merchant tech</p><h1>AI powered online ordering,<br><em>built per merchant.</em></h1><p class="lede">SmOS is a customisable ordering system for restaurants and other merchants.One platform core. Merchant modules that own branding, menu, fulfilment, and how guests place orders.</p><div class="hero-actions"><a class="btn btn-primary" href="modules/SmOS_CC/">Open SmOS_CC</a><a class="btn btn-ghost" href="#modules">Explore modules</a></div></section><section id="what" class="section"><h2>What SmOS does</h2><div class="feature-grid"><article><h3>Service modes</h3><p>Delivery, collection, or sitting in — each merchant module configures what guests can choose.</p></article><article><h3>Two ways to order</h3><p>Browse a structured menu, or say what you want in plain language. SmOS matches dishes to the kitchen list.</p></article><article><h3>Merchant modules</h3><p>Every venue gets a named customisation (e.g. SmOS_CC) with its own menu, copy, and fulfilment rules — without bloating the public website.</p></article><article><h3>Extensible core</h3><p>Shared platform chrome and APIs; voice, kitchen dashboards, and payments plug in as the stack grows.</p></article></div></section><section id="modules" class="section"><h2>Explore modules</h2><p class="section-lead">Merchant-specific customisations of the SmOS system.</p><ul class="module-list"><li><a class="module-card" href="modules/SmOS_CC/"><span class="module-card__id">SmOS_CC</span><span class="module-card__title">The Corner Cafe</span><span class="module-card__meta">Dalkeith · delivery, collection, sit-in · menu + AI match</span></a></li></ul>=======<html lang="en" data-theme="dark"><head><meta charset="UTF-8">163 unmodified lines</div></div></section>>>>>>>> 2057bab1518fe50e0c797eb0386b6ab305b9afac</section></main><footer class="site-footer"><<<<<<< HEAD<span>SmOS</span><span class="muted">AI powered online ordering · customisable for merchants</span></footer><script src="site.js" defer></script>=======<div class="container footer-wrap"><span>SMOS <b id="version"></b> · Smart Food Ordering System</span><span>Voice availability depends on browser support. Please confirm allergies with staff.</span>32 unmodified lines</template><script src="/static/app.js?v=0.1.5" defer></script>>>>>>>> 2057bab1518fe50e0c797eb0386b6ab305b9afac</body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648(function () { const THEME_KEY = "corner-cafe-theme"; const SERVICE_KEY = "corner-cafe-order-service"; const MODE_KEY = "corner-cafe-order-mode"; const CART_KEY = "corner-cafe-cart";
const serviceLabels = { delivery: "Delivery", collection: "Collection", "sitting-in": "Sitting in", };
const modeLabels = { menu: "Browse menu", know: "I know what I want", };
const root = document.documentElement; const metaTheme = document.getElementById("meta-theme-color"); const toggle = document.querySelector("[data-theme-toggle]");
const applyTheme = (theme) => { const next = theme === "light" ? "light" : "dark"; root.setAttribute("data-theme", next); if (metaTheme) metaTheme.setAttribute("content", next === "light" ? "#f6f3ee" : "#070707"); if (toggle) { toggle.setAttribute( "aria-label", next === "light" ? "Switch to dark theme" : "Switch to light theme" ); } };
try { applyTheme(localStorage.getItem(THEME_KEY) || "dark"); } catch (e) { applyTheme("dark"); }
toggle?.addEventListener("click", () => { const next = root.getAttribute("data-theme") === "light" ? "dark" : "light"; applyTheme(next); try { localStorage.setItem(THEME_KEY, next); } catch (e) { /* ignore */ } });
const params = new URLSearchParams(window.location.search);
const money = (n) => `£${Number(n).toFixed(2)}`; const priceText = (item) => item.priceDisplay || money(item.price);
const readCart = () => { try { const raw = sessionStorage.getItem(CART_KEY); const parsed = raw ? JSON.parse(raw) : []; return Array.isArray(parsed) ? parsed : []; } catch (e) { return []; } };
const writeCart = (next) => { try { sessionStorage.setItem(CART_KEY, JSON.stringify(next)); } catch (e) { /* ignore */ } };
let cart = readCart(); let menuRenderList = null;
const cartCount = () => cart.reduce((n, line) => n + line.qty, 0); const cartTotal = () => cart.reduce((n, line) => n + line.qty * line.price, 0); const qtyOf = (id) => cart.find((line) => line.id === id)?.qty || 0;
const setQty = (item, qty) => { const next = Math.max(0, Math.floor(qty)); const idx = cart.findIndex((line) => line.id === item.id); if (next <= 0) { if (idx >= 0) cart.splice(idx, 1); } else if (idx >= 0) { cart[idx].qty = next; } else { cart.push({ id: item.id, name: item.name, price: item.price, qty: next }); } writeCart(cart); renderCartChrome(); if (typeof menuRenderList === "function") menuRenderList(); };
const addToCart = (item) => setQty(item, qtyOf(item.id) + 1); const removeOne = (item) => setQty(item, qtyOf(item.id) - 1);
const clearCart = () => { cart = []; writeCart(cart); renderCartChrome(); if (typeof menuRenderList === "function") menuRenderList(); };
const qtyControlsHtml = (item, qty) => { if (qty <= 0) { return `<button type="button" class="qty-add" data-add="${item.id}" aria-label="Add ${item.name}">Add</button>`; } return ` <div class="qty-stepper" role="group" aria-label="Quantity for ${item.name}"> <button type="button" class="qty-btn" data-dec="${item.id}" aria-label="Remove one">−</button> <span class="qty-val" aria-live="polite">${qty}</span> <button type="button" class="qty-btn" data-inc="${item.id}" aria-label="Add one">+</button> </div> `; };
const bindQtyControls = (rootEl, findItem) => { rootEl.querySelectorAll("[data-add]").forEach((btn) => { btn.addEventListener("click", (e) => { e.stopPropagation(); const item = findItem(btn.getAttribute("data-add")); if (item) addToCart(item); }); }); rootEl.querySelectorAll("[data-inc]").forEach((btn) => { btn.addEventListener("click", (e) => { e.stopPropagation(); const item = findItem(btn.getAttribute("data-inc")); if (item) addToCart(item); }); }); rootEl.querySelectorAll("[data-dec]").forEach((btn) => { btn.addEventListener("click", (e) => { e.stopPropagation(); const item = findItem(btn.getAttribute("data-dec")); if (item) removeOne(item); }); }); };
const renderCartChrome = () => { const bar = document.querySelector("[data-cart-bar]"); const countEl = document.querySelector("[data-cart-count]"); const totalEl = document.querySelector("[data-cart-total]"); const linesEl = document.querySelector("[data-cart-lines]"); const dialogTotal = document.querySelector("[data-cart-dialog-total]"); if (!bar) return;
const count = cartCount(); if (countEl) countEl.textContent = count === 1 ? "1 item" : `${count} items`; if (totalEl) totalEl.textContent = money(cartTotal()); if (dialogTotal) dialogTotal.textContent = money(cartTotal()); bar.hidden = count === 0;
if (linesEl) { linesEl.innerHTML = ""; const menu = window.CornerCafeMenu || []; cart.forEach((line) => { const item = menu.find((m) => m.id === line.id) || line; const li = document.createElement("li"); li.className = "cart-line cart-line--edit"; li.innerHTML = ` <span class="cart-line__copy"> <span class="cart-line__name">${line.name}</span> <span class="cart-line__price">${money(line.qty * line.price)}</span> </span> ${qtyControlsHtml(item, line.qty)} `; bindQtyControls(li, (id) => menu.find((m) => m.id === id) || (id === line.id ? line : null)); linesEl.appendChild(li); }); } };
document.querySelector("[data-cart-review]")?.addEventListener("click", () => { document.querySelector("[data-cart-dialog]")?.showModal(); });
document.querySelector("[data-cart-clear]")?.addEventListener("click", () => { clearCart(); document.querySelector("[data-cart-dialog]")?.close(); });
const goCheckout = () => { if (cartCount() <= 0) return; const service = params.get("service") || sessionStorage.getItem(SERVICE_KEY) || ""; const mode = params.get("mode") || sessionStorage.getItem(MODE_KEY) || "menu"; if (!serviceLabels[service]) { window.location.replace("./"); return; } document.querySelector("[data-cart-dialog]")?.close(); window.location.href = `checkout.html?service=${encodeURIComponent(service)}&mode=${encodeURIComponent(mode)}`; };
document.querySelectorAll("[data-cart-checkout]").forEach((btn) => { btn.addEventListener("click", (e) => { e.preventDefault(); goCheckout(); }); });
const pathLinks = document.querySelectorAll("[data-path-link]"); if (pathLinks.length) { const service = params.get("service") || ""; if (!serviceLabels[service]) { window.location.replace("./"); return; } try { sessionStorage.setItem(SERVICE_KEY, service); } catch (e) { /* ignore */ }
const serviceEl = document.querySelector("[data-order-service]"); if (serviceEl) serviceEl.textContent = serviceLabels[service];
pathLinks.forEach((link) => { const mode = link.getAttribute("data-mode"); link.href = `order.html?service=${encodeURIComponent(service)}&mode=${encodeURIComponent(mode)}`; }); }
const serviceEl = document.querySelector("[data-order-service]"); const modeEl = document.querySelector("[data-order-mode]"); const panelMenu = document.querySelector("[data-panel-menu]"); const panelKnow = document.querySelector("[data-panel-know]");
if (serviceEl && (panelMenu || panelKnow)) { const service = params.get("service") || ""; const mode = params.get("mode") || "";
if (!serviceLabels[service]) { window.location.replace("./"); return; } if (!modeLabels[mode]) { window.location.replace(`path.html?service=${encodeURIComponent(service)}`); return; }
try { sessionStorage.setItem(SERVICE_KEY, service); sessionStorage.setItem(MODE_KEY, mode); } catch (e) { /* ignore */ }
serviceEl.textContent = serviceLabels[service]; if (modeEl) modeEl.textContent = modeLabels[mode];
const back = document.querySelector("[data-back-path]"); if (back) back.href = `path.html?service=${encodeURIComponent(service)}`;
const heading = document.querySelector("[data-order-heading]"); const lead = document.querySelector("[data-order-lead]");
if (mode === "menu") { if (heading) heading.textContent = "Menu"; if (lead) lead.textContent = "Add dishes to your basket. Change quantities anytime."; if (panelMenu) panelMenu.hidden = false; if (panelKnow) panelKnow.hidden = true; initMenuPanel(); } else { if (heading) heading.textContent = "What would you like?"; if (lead) lead.textContent = "Describe your order — we’ll match dishes from the menu."; if (panelMenu) panelMenu.hidden = true; if (panelKnow) panelKnow.hidden = false; initKnowPanel(); }
renderCartChrome(); }
function initMenuPanel() { const menu = window.CornerCafeMenu || []; const filters = document.querySelector("[data-menu-filters]"); const list = document.querySelector("[data-menu-list]"); if (!filters || !list) return;
const sections = ["Breakfast", "Lunch", "Tea", "Drinks", "Indian", "Kebab", "Pizza"].filter((s) => menu.some((item) => item.section === s) ); let active = sections[0] || "Breakfast";
const findItem = (id) => menu.find((m) => m.id === id);
const renderFilters = () => { filters.innerHTML = ""; sections.forEach((section) => { const btn = document.createElement("button"); btn.type = "button"; btn.className = "menu-filter" + (section === active ? " is-active" : ""); btn.textContent = section; btn.setAttribute("role", "tab"); btn.setAttribute("aria-selected", section === active ? "true" : "false"); btn.addEventListener("click", () => { active = section; renderFilters(); renderList(); }); filters.appendChild(btn); }); };
const renderList = () => { list.innerHTML = ""; const items = menu.filter((item) => item.section === active); let lastGroup = ""; items.forEach((item) => { const group = item.group || ""; if (group && group !== lastGroup) { const h = document.createElement("h3"); h.className = "menu-group"; h.textContent = group; list.appendChild(h); lastGroup = group; } const row = document.createElement("div"); row.className = "menu-item" + (qtyOf(item.id) > 0 ? " is-in-basket" : ""); const qty = qtyOf(item.id); row.innerHTML = ` <span class="menu-item__copy"> <span class="menu-item__name">${item.name}</span> ${item.desc ? `<span class="menu-item__desc">${item.desc}</span>` : ""} </span> <span class="menu-item__actions"> <span class="menu-item__price">${priceText(item)}</span> ${qtyControlsHtml(item, qty)} </span> `; bindQtyControls(row, findItem); list.appendChild(row); }); };
menuRenderList = renderList; renderFilters(); renderList(); }
function tokenize(text) { return String(text || "") .toLowerCase() .replace(/[^a-z0-9\s&']/g, " ") .split(/\s+/) .filter((t) => t.length > 1 && !["and", "the", "with", "for", "please", "want", "like", "some", "a", "an", "of", "my", "me"].includes(t)); }
function scoreItem(item, tokens) { const hay = `${item.name} ${item.desc} ${(item.tags || []).join(" ")}`.toLowerCase(); let score = 0; tokens.forEach((token) => { if (hay.includes(token)) score += token.length > 4 ? 3 : 2; (item.tags || []).forEach((tag) => { if (tag === token) score += 4; else if (tag.startsWith(token) || token.startsWith(tag)) score += 2; }); if (item.name.toLowerCase().includes(token)) score += 2; }); return score; }
function matchOrder(query) { const menu = window.CornerCafeMenu || []; const tokens = tokenize(query); if (!tokens.length) return [];
const chunks = String(query) .split(/,| and |&|\+| then | also /i) .map((c) => c.trim()) .filter(Boolean);
const results = []; const used = new Set();
const pushBest = (chunkTokens) => { let best = null; let bestScore = 0; menu.forEach((item) => { if (used.has(item.id)) return; const s = scoreItem(item, chunkTokens); if (s > bestScore) { bestScore = s; best = item; } }); if (best && bestScore >= 3) { used.add(best.id); results.push({ item: best, score: bestScore }); } };
if (chunks.length > 1) { chunks.forEach((chunk) => pushBest(tokenize(chunk))); }
if (!results.length) { menu .map((item) => ({ item, score: scoreItem(item, tokens) })) .filter((r) => r.score >= 3) .sort((a, b) => b.score - a.score) .slice(0, 8) .forEach((r) => results.push(r)); }
return results; }
function initKnowPanel() { const form = document.querySelector("[data-know-form]"); const results = document.querySelector("[data-know-results]"); if (!form || !results) return;
const findItem = (id) => (window.CornerCafeMenu || []).find((m) => m.id === id);
const renderMatches = (matches) => { results.hidden = false; results.innerHTML = ""; const status = document.createElement("p"); status.className = "know-status";
if (!matches.length) { status.textContent = "No clear match — try a dish name from the menu."; results.appendChild(status); return; }
status.textContent = `${matches.length} match${matches.length === 1 ? "" : "es"}`; results.appendChild(status);
const list = document.createElement("div"); list.className = "know-match-list"; matches.forEach(({ item }) => { const row = document.createElement("div"); row.className = "know-match"; const qty = qtyOf(item.id); row.innerHTML = ` <span class="know-match__copy"> <span class="know-match__name">${item.name}</span> <span class="know-match__meta">${item.section}${item.desc ? ` · ${item.desc}` : ""} · ${priceText(item)}</span> </span> ${qtyControlsHtml(item, qty)} `; bindQtyControls(row, findItem); list.appendChild(row); }); results.appendChild(list); };
form.addEventListener("submit", (event) => { event.preventDefault(); const input = form.querySelector("[name=want]"); const query = (input?.value || "").trim(); renderMatches(matchOrder(query)); }); }
function orderReference() { const cfg = window.SmOS_CC_Payments || {}; const prefix = cfg.referencePrefix || "CC"; let ref = ""; try { ref = sessionStorage.getItem("corner-cafe-pay-ref") || ""; } catch (e) { /* ignore */ } if (!ref) { const stamp = Date.now().toString(36).toUpperCase().slice(-6); const rand = Math.floor(Math.random() * 90 + 10); ref = `${prefix}-${stamp}${rand}`; try { sessionStorage.setItem("corner-cafe-pay-ref", ref); } catch (e) { /* ignore */ } } return ref; }
function initCheckout() { const rootEl = document.querySelector("[data-checkout]"); if (!rootEl) return;
const service = params.get("service") || ""; const mode = params.get("mode") || "menu"; if (!serviceLabels[service] || cartCount() <= 0) { window.location.replace(serviceLabels[service] ? `order.html?service=${encodeURIComponent(service)}&mode=${encodeURIComponent(mode)}` : "./"); return; }
try { sessionStorage.setItem(SERVICE_KEY, service); sessionStorage.setItem(MODE_KEY, mode); } catch (e) { /* ignore */ }
const serviceEl = document.querySelector("[data-order-service]"); if (serviceEl) serviceEl.textContent = serviceLabels[service];
const back = document.querySelector("[data-back-order]"); if (back) back.href = `order.html?service=${encodeURIComponent(service)}&mode=${encodeURIComponent(mode)}`;
const addressField = document.querySelector("[data-field-address]"); if (addressField) { addressField.hidden = service !== "delivery"; const ta = addressField.querySelector("textarea"); if (ta) ta.required = service === "delivery"; }
const linesEl = document.querySelector("[data-checkout-lines]"); const totalEl = document.querySelector("[data-checkout-total]"); const refEl = document.querySelector("[data-checkout-ref]"); const ref = orderReference(); if (refEl) refEl.textContent = ref; if (totalEl) totalEl.textContent = money(cartTotal()); if (linesEl) { linesEl.innerHTML = ""; cart.forEach((line) => { const li = document.createElement("li"); li.className = "checkout-line"; li.innerHTML = `<span>${line.qty}× ${line.name}</span><span>${money(line.qty * line.price)}</span>`; linesEl.appendChild(li); }); }
const cfg = window.SmOS_CC_Payments || { options: [] }; const optionsRoot = document.querySelector("[data-pay-options]"); const detailEl = document.querySelector("[data-pay-detail]"); const placeBtn = document.querySelector("[data-place-order]"); let selectedPay = null;
const available = (cfg.options || []).filter((opt) => (opt.availableFor || []).includes(service) );
const bankBlock = (amount, payRef) => ` <dl class="pay-bank"> <div><dt>Payee</dt><dd>${cfg.payeeName || cfg.businessName || "The Corner Cafe"}</dd></div> <div><dt>Sort code</dt><dd>${cfg.sortCode || "—"}</dd></div> <div><dt>Account number</dt><dd>${cfg.accountNumber || "—"}</dd></div> <div><dt>Amount</dt><dd>${money(amount)}</dd></div> <div><dt>Reference</dt><dd><strong>${payRef}</strong></dd></div> </dl> <p class="pay-hint">Transfer the exact total and use this reference so the cafe can match your payment.</p> `;
const showDetail = (opt) => { if (!detailEl) return; detailEl.hidden = false; if (opt.id === "bank-transfer") { detailEl.innerHTML = `<p class="pay-detail__summary">${opt.summary}</p>${bankBlock(cartTotal(), ref)}`; } else { detailEl.innerHTML = `<p class="pay-detail__summary">${opt.summary}</p>`; } };
if (optionsRoot) { optionsRoot.innerHTML = ""; available.forEach((opt, idx) => { const label = document.createElement("label"); label.className = "pay-option"; label.innerHTML = ` <input type="radio" name="pay" value="${opt.id}" ${idx === 0 ? "checked" : ""}> <span class="pay-option__body"> <span class="pay-option__name">${opt.name}</span> <span class="pay-option__fee">${opt.feeNote}</span> </span> `; const input = label.querySelector("input"); input.addEventListener("change", () => { if (!input.checked) return; selectedPay = opt; showDetail(opt); if (placeBtn) placeBtn.disabled = false; }); optionsRoot.appendChild(label); });
if (available[0]) { selectedPay = available[0]; showDetail(available[0]); if (placeBtn) placeBtn.disabled = false; } }
document.querySelector("[data-checkout-form]")?.addEventListener("submit", (event) => { event.preventDefault(); if (!selectedPay || cartCount() <= 0) return; const form = event.target; const data = new FormData(form); const order = { ref, service, mode, payment: selectedPay.id, paymentName: selectedPay.name, total: cartTotal(), items: cart.slice(), name: String(data.get("name") || "").trim(), phone: String(data.get("phone") || "").trim(), address: String(data.get("address") || "").trim(), notes: String(data.get("notes") || "").trim(), placedAt: new Date().toISOString(), };
try { const history = JSON.parse(sessionStorage.getItem("corner-cafe-orders") || "[]"); history.unshift(order); sessionStorage.setItem("corner-cafe-orders", JSON.stringify(history.slice(0, 20))); sessionStorage.removeItem("corner-cafe-pay-ref"); } catch (e) { /* ignore */ }
clearCart();
rootEl.querySelectorAll("[data-checkout-hide-on-done]").forEach((el) => { el.hidden = true; });
const done = document.querySelector("[data-checkout-done]"); const lead = document.querySelector("[data-done-lead]"); const donePay = document.querySelector("[data-done-pay]"); if (done) done.hidden = false; if (lead) { lead.textContent = `Thanks ${order.name}. Order ${order.ref} · ${serviceLabels[service]} · ${money(order.total)} · ${selectedPay.name}.`; } if (donePay) { if (selectedPay.id === "bank-transfer") { donePay.innerHTML = `<p class="pay-detail__summary">Complete your bank transfer now so the kitchen can prepare your order.</p>${bankBlock(order.total, order.ref)}`; } else if (selectedPay.id === "cash-collection") { donePay.innerHTML = `<p class="pay-detail__summary">Bring ${money(order.total)} in cash when you collect. Quote reference <strong>${order.ref}</strong>.</p>`; } else { donePay.innerHTML = `<p class="pay-detail__summary">Pay ${money(order.total)} at the cafe. Quote reference <strong>${order.ref}</strong>.</p>`; } }
const heroLead = document.querySelector(".app-hero__lead"); if (heroLead) heroLead.textContent = "Use the payment reference below when you pay."; }); }
initCheckout();})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta id="meta-theme-color" name="theme-color" content="#070707"> <script> (function () { try { var k = "corner-cafe-theme"; var t = localStorage.getItem(k); var th = t === "light" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", th); var meta = document.getElementById("meta-theme-color"); if (meta) meta.setAttribute("content", th === "light" ? "#f6f3ee" : "#070707"); } catch (e) { document.documentElement.setAttribute("data-theme", "dark"); } })(); </script> <title>Corner Cafe | Checkout</title> <link rel="icon" type="image/svg+xml" href="assets/logo-c.svg"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap"> <link rel="stylesheet" href="styles.css?v=6"></head><body> <div class="app-shell"> <header class="app-header"> <a class="app-back" data-back-order href="order.html">← Back to order</a> <button type="button" class="theme-toggle" data-theme-toggle aria-label="Switch theme" title="Theme"> <svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <circle cx="12" cy="12" r="4"/> <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/> </svg> <svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/> </svg> </button> </header>
<main class="app-main" data-checkout> <div class="app-hero"> <p class="app-hero__eyebrow"><span data-order-service>Order</span> · Checkout</p> <h1 class="app-hero__title">Checkout</h1> <p class="app-hero__lead">Pay the cafe directly — no marketplace commission on this order.</p> </div>
<section class="checkout-block" data-checkout-hide-on-done> <h2 class="checkout-heading">Order summary</h2> <ul class="checkout-lines" data-checkout-lines></ul> <p class="checkout-total">Total <strong data-checkout-total>£0.00</strong></p> <p class="checkout-ref">Payment reference <strong data-checkout-ref>—</strong></p> </section>
<section class="checkout-block" data-checkout-hide-on-done> <h2 class="checkout-heading">Pay the business directly</h2> <p class="checkout-intro"> These options settle to The Corner Cafe’s own account or till. No Just Eat / Foodhub-style order commission. </p> <div class="pay-options" data-pay-options role="radiogroup" aria-label="Payment method"></div> <div class="pay-detail" data-pay-detail hidden></div> </section>
<section class="checkout-block" data-checkout-details data-checkout-hide-on-done> <h2 class="checkout-heading">Your details</h2> <form class="checkout-form" data-checkout-form> <label class="checkout-field"> <span>Name</span> <input type="text" name="name" required autocomplete="name"> </label> <label class="checkout-field"> <span>Phone</span> <input type="tel" name="phone" required autocomplete="tel"> </label> <label class="checkout-field" data-field-address hidden> <span>Delivery address</span> <textarea name="address" rows="2" autocomplete="street-address"></textarea> </label> <label class="checkout-field"> <span>Notes (optional)</span> <textarea name="notes" rows="2" placeholder="Allergies, table number, doorbell…"></textarea> </label> <button type="submit" class="checkout-submit" data-place-order disabled>Place order</button> </form> </section>
<section class="checkout-done" data-checkout-done hidden> <h2 class="checkout-heading">Order placed</h2> <p class="checkout-done__lead" data-done-lead></p> <div class="pay-detail pay-detail--done" data-done-pay></div> <a class="checkout-submit checkout-submit--link" href="./">Back to start</a> </section> </main> </div> <script src="payments-config.js?v=1" defer></script> <script src="app.js?v=5" defer></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta id="meta-theme-color" name="theme-color" content="#070707"> <script> (function () { try { var k = "corner-cafe-theme"; var t = localStorage.getItem(k); var th = t === "light" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", th); var meta = document.getElementById("meta-theme-color"); if (meta) meta.setAttribute("content", th === "light" ? "#f6f3ee" : "#070707"); } catch (e) { document.documentElement.setAttribute("data-theme", "dark"); } })(); </script> <title>Corner Cafe | Order online</title> <meta name="description" content="Order from The Corner Cafe, Dalkeith — delivery, collection or sitting in."> <link rel="icon" type="image/svg+xml" href="assets/logo-c.svg?v=1.17"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap"> <link rel="stylesheet" href="styles.css?v=4"></head><body> <div class="app-shell"> <header class="app-header"> <a class="app-brand" href="../../index.html" title="SmOS home"> <img src="assets/logo-c.svg" alt="" width="36" height="36" decoding="async"> <span>SmOS_CC · Corner Cafe</span> </a> <div> <button type="button" class="theme-toggle" data-theme-toggle aria-label="Switch theme" title="Theme"> <svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <circle cx="12" cy="12" r="4"/> <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/> </svg> <svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/> </svg> </button> </div> </header>
<main class="app-main"> <div class="app-hero"> <img class="app-hero__logo" src="assets/logo-c.svg?v=1.17" alt="Corner Cafe" width="88" height="88" decoding="async"> <h1 class="app-hero__title">How would you like your order?</h1> <p class="app-hero__lead">Choose delivery, collection or sitting in to continue.</p> </div>
<ul class="service-grid"> <li> <a class="service-card service-card--delivery" href="path.html?service=delivery"> <span class="service-card__icon" aria-hidden="true"> <svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M10 17h4"/> <path d="M3 7h13v8a3 3 0 0 0 3 3h1a3 3 0 0 0 3-3V9.5L17 4H3z"/> <path d="M3 7l2-3h8l2 3"/> <circle cx="7.5" cy="17.5" r="1.5"/> <circle cx="17.5" cy="17.5" r="1.5"/> </svg> </span> <span class="service-card__copy"> <span class="service-card__name">Delivery</span> <span class="service-card__meta">To your door in Dalkeith & nearby</span> </span> </a> </li> <li> <a class="service-card service-card--collection" href="path.html?service=collection"> <span class="service-card__icon" aria-hidden="true"> <svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/> <path d="M3 6h18"/> <path d="M16 10a4 4 0 0 1-8 0"/> </svg> </span> <span class="service-card__copy"> <span class="service-card__name">Collection</span> <span class="service-card__meta">Pick up at 9 Eskdail Court</span> </span> </a> </li> <li> <a class="service-card service-card--sitting-in" href="path.html?service=sitting-in"> <span class="service-card__icon" aria-hidden="true"> <svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M4 19V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14"/> <path d="M4 15h16"/> <path d="M8 11h8"/> <path d="M8 7h8"/> </svg> </span> <span class="service-card__copy"> <span class="service-card__name">Sitting in</span> <span class="service-card__meta">Order at your table in the cafe</span> </span> </a> </li> </ul>
<p class="app-note">Online order cut-off <strong>30 minutes before close</strong> (17:30).</p> </main> </div> <script src="app.js?v=4" defer></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232window.CornerCafeMenu = [ {"id": "organic-porridge", "name": "Organic porridge", "desc": "cream or oat milk · banana & honey or berries", "price": 6.5, "priceDisplay": "£6.50", "section": "Breakfast", "group": "Morning classics", "tags": ["organic", "porridge"]}, {"id": "buttery-jam", "name": "Buttery & jam", "desc": "Aberdeen rowie, unsalted butter", "price": 3.8, "priceDisplay": "£3.80", "section": "Breakfast", "group": "Morning classics", "tags": ["buttery", "jam"]}, {"id": "bacon-or-lorne-sausage-roll", "name": "Bacon or Lorne sausage roll", "desc": "on a soft morning roll", "price": 4.5, "priceDisplay": "£4.50", "section": "Breakfast", "group": "Morning classics", "tags": ["bacon", "lorne", "sausage", "roll"]}, {"id": "haggis-morning-roll", "name": "Haggis morning roll", "desc": "brown sauce or ketchup", "price": 4.8, "priceDisplay": "£4.80", "section": "Breakfast", "group": "Morning classics", "tags": ["haggis", "morning", "roll"]}, {"id": "eggs-on-toast", "name": "Eggs on toast", "desc": "fried, scrambled or poached", "price": 7.0, "priceDisplay": "£7.00", "section": "Breakfast", "group": "Eggs", "tags": ["eggs", "toast"]}, {"id": "eggs-benedict", "name": "Eggs Benedict", "desc": "ham, hollandaise, sourdough", "price": 12.0, "priceDisplay": "£12.00", "section": "Breakfast", "group": "Eggs", "tags": ["eggs", "benedict"]}, {"id": "eggs-florentine", "name": "Eggs Florentine", "desc": "spinach, hollandaise", "price": 11.5, "priceDisplay": "£11.50", "section": "Breakfast", "group": "Eggs", "tags": ["eggs", "florentine"]}, {"id": "smoked-salmon-scrambled-eggs", "name": "Smoked salmon & scrambled eggs", "desc": "", "price": 13.5, "priceDisplay": "£13.50", "section": "Breakfast", "group": "Eggs", "tags": ["smoked", "salmon", "scrambled", "eggs"]}, {"id": "full-scottish", "name": "Full Scottish", "desc": "haggis, black pudding, bacon, sausage, egg, tomato, mushroom, toast", "price": 14.5, "priceDisplay": "£14.50", "section": "Breakfast", "group": "Full plates", "tags": ["full", "scottish"]}, {"id": "vegetarian-scottish", "name": "Vegetarian Scottish", "desc": "veggie haggis, potato scone, egg, tomato, mushroom, beans, toast", "price": 13.5, "priceDisplay": "£13.50", "section": "Breakfast", "group": "Full plates", "tags": ["vegetarian", "scottish"]}, {"id": "wee-scottish", "name": "Wee Scottish", "desc": "half portion of the full", "price": 10.5, "priceDisplay": "£10.50", "section": "Breakfast", "group": "Full plates", "tags": ["wee", "scottish"]}, {"id": "potato-scone-stack", "name": "Potato scone stack", "desc": "fried egg & crispy bacon", "price": 9.5, "priceDisplay": "£9.50", "section": "Breakfast", "group": "Full plates", "tags": ["potato", "scone", "stack"]}, {"id": "french-toast", "name": "French toast", "desc": "berry compote & crème fraîche", "price": 9.0, "priceDisplay": "£9.00", "section": "Breakfast", "group": "Something sweet", "tags": ["french", "toast"]}, {"id": "pancakes", "name": "Pancakes", "desc": "maple syrup or local honey", "price": 8.5, "priceDisplay": "£8.50", "section": "Breakfast", "group": "Something sweet", "tags": ["pancakes"]}, {"id": "fruit-scone-to-start", "name": "Fruit scone to start", "desc": "butter & jam", "price": 3.5, "priceDisplay": "£3.50", "section": "Breakfast", "group": "Something sweet", "tags": ["fruit", "scone", "start"]}, {"id": "extra-egg-potato-scone-toast", "name": "Extra egg / potato scone / toast", "desc": "", "price": 1.8, "priceDisplay": "£1.80", "section": "Breakfast", "group": "Sides", "tags": ["extra", "egg", "potato", "scone", "toast"]}, {"id": "stornoway-black-pudding-haggis", "name": "Stornoway black pudding / haggis", "desc": "", "price": 2.5, "priceDisplay": "£2.50", "section": "Breakfast", "group": "Sides", "tags": ["stornoway", "black", "pudding", "haggis"]}, {"id": "smoked-bacon-lorne-sausage", "name": "Smoked bacon / Lorne sausage", "desc": "", "price": 2.8, "priceDisplay": "£2.80", "section": "Breakfast", "group": "Sides", "tags": ["smoked", "bacon", "lorne", "sausage"]}, {"id": "grilled-tomato-mushrooms", "name": "Grilled tomato & mushrooms", "desc": "", "price": 2.2, "priceDisplay": "£2.20", "section": "Breakfast", "group": "Sides", "tags": ["grilled", "tomato", "mushrooms"]}, {"id": "cullen-skink", "name": "Cullen skink", "desc": "smoked haddock, potato, leek, cream · soda bread", "price": 9.5, "priceDisplay": "£9.50", "section": "Lunch", "group": "Starters & soup", "tags": ["cullen", "skink"]}, {"id": "scotch-broth", "name": "Scotch broth", "desc": "lamb, barley, root veg · buttered bread", "price": 5.8, "priceDisplay": "£5.80", "section": "Lunch", "group": "Starters & soup", "tags": ["scotch", "broth"]}, {"id": "soup-of-the-day", "name": "Soup of the day", "desc": "with buttered bread", "price": 5.5, "priceDisplay": "£5.50", "section": "Lunch", "group": "Starters & soup", "tags": ["soup", "the", "day"]}, {"id": "scotch-egg", "name": "Scotch egg", "desc": "brown sauce", "price": 6.5, "priceDisplay": "£6.50", "section": "Lunch", "group": "Starters & soup", "tags": ["scotch", "egg"]}, {"id": "haggis-bonbons", "name": "Haggis bonbons", "desc": "whisky cream", "price": 7.5, "priceDisplay": "£7.50", "section": "Lunch", "group": "Starters & soup", "tags": ["haggis", "bonbons"]}, {"id": "hot-filled-roll", "name": "Hot filled roll", "desc": "bacon, Lorne, or haggis", "price": 5.5, "priceDisplay": "£5.50", "section": "Lunch", "group": "Sandwiches & rolls", "tags": ["hot", "filled", "roll"]}, {"id": "coronation-chicken-sandwich", "name": "Coronation chicken sandwich", "desc": "", "price": 8.0, "priceDisplay": "£8.00", "section": "Lunch", "group": "Sandwiches & rolls", "tags": ["coronation", "chicken", "sandwich"]}, {"id": "mature-cheddar-chutney", "name": "Mature cheddar & chutney", "desc": "", "price": 7.0, "priceDisplay": "£7.00", "section": "Lunch", "group": "Sandwiches & rolls", "tags": ["mature", "cheddar", "chutney"]}, {"id": "smoked-salmon-crowdie", "name": "Smoked salmon & crowdie", "desc": "", "price": 9.0, "priceDisplay": "£9.00", "section": "Lunch", "group": "Sandwiches & rolls", "tags": ["smoked", "salmon", "crowdie"]}, {"id": "haggis-neeps-tatties", "name": "Haggis, neeps & tatties", "desc": "whisky cream sauce", "price": 13.5, "priceDisplay": "£13.50", "section": "Lunch", "group": "Mains", "tags": ["haggis", "neeps", "tatties"]}, {"id": "mince-tatties", "name": "Mince & tatties", "desc": "seasonal greens", "price": 12.0, "priceDisplay": "£12.00", "section": "Lunch", "group": "Mains", "tags": ["mince", "tatties"]}, {"id": "steak-ale-pie", "name": "Steak & ale pie", "desc": "mash or chips, seasonal greens", "price": 14.5, "priceDisplay": "£14.50", "section": "Lunch", "group": "Mains", "tags": ["steak", "ale", "pie"]}, {"id": "forfar-bridie", "name": "Forfar bridie", "desc": "with mash or chips", "price": 11.5, "priceDisplay": "£11.50", "section": "Lunch", "group": "Mains", "tags": ["forfar", "bridie"]}, {"id": "fish-chips", "name": "Fish & chips", "desc": "mushy peas, tartare", "price": 15.0, "priceDisplay": "£15.00", "section": "Lunch", "group": "Mains", "tags": ["fish", "chips"]}, {"id": "macaroni-cheese", "name": "Macaroni cheese", "desc": "Mull cheddar crumb", "price": 11.5, "priceDisplay": "£11.50", "section": "Lunch", "group": "Mains", "tags": ["macaroni", "cheese"]}, {"id": "sausage-mash", "name": "Sausage & mash", "desc": "onion gravy", "price": 12.5, "priceDisplay": "£12.50", "section": "Lunch", "group": "Mains", "tags": ["sausage", "mash"]}, {"id": "ploughman-s-board", "name": "Ploughman’s board", "desc": "cheddar, pickle, apple, bread", "price": 12.0, "priceDisplay": "£12.00", "section": "Lunch", "group": "Mains", "tags": ["ploughman", "board"]}, {"id": "sticky-toffee-pudding", "name": "Sticky toffee pudding", "desc": "vanilla ice cream", "price": 6.5, "priceDisplay": "£6.50", "section": "Lunch", "group": "Puddings", "tags": ["sticky", "toffee", "pudding"]}, {"id": "cranachan", "name": "Cranachan", "desc": "raspberries, oats, whisky cream", "price": 6.8, "priceDisplay": "£6.80", "section": "Lunch", "group": "Puddings", "tags": ["cranachan"]}, {"id": "clootie-dumpling", "name": "Clootie dumpling", "desc": "custard", "price": 6.5, "priceDisplay": "£6.50", "section": "Lunch", "group": "Puddings", "tags": ["clootie", "dumpling"]}, {"id": "warm-fruit-scone", "name": "Warm fruit scone", "desc": "jam & clotted cream", "price": 4.5, "priceDisplay": "£4.50", "section": "Lunch", "group": "Puddings", "tags": ["warm", "fruit", "scone"]}, {"id": "classic-afternoon-tea", "name": "Classic afternoon tea", "desc": "finger sandwiches, warm scone, petit fours · tea", "price": 22.0, "priceDisplay": "£22.00", "section": "Tea", "group": "Afternoon tea", "tags": ["classic", "afternoon", "tea"]}, {"id": "vegetarian-afternoon-tea", "name": "Vegetarian afternoon tea", "desc": "", "price": 22.0, "priceDisplay": "£22.00", "section": "Tea", "group": "Afternoon tea", "tags": ["vegetarian", "afternoon", "tea"]}, {"id": "cream-tea", "name": "Cream tea", "desc": "two scones, jam, clotted cream · pot of tea", "price": 9.5, "priceDisplay": "£9.50", "section": "Tea", "group": "Afternoon tea", "tags": ["cream", "tea"]}, {"id": "cheese-scone-cream-tea", "name": "Cheese scone cream tea", "desc": "crowdie & chutney", "price": 9.5, "priceDisplay": "£9.50", "section": "Tea", "group": "Afternoon tea", "tags": ["cheese", "scone", "cream", "tea"]}, {"id": "fruit-or-plain-scone", "name": "Fruit or plain scone", "desc": "", "price": 3.2, "priceDisplay": "£3.20", "section": "Tea", "group": "Bakes", "tags": ["fruit", "plain", "scone"]}, {"id": "traybake-of-the-day", "name": "Traybake of the day", "desc": "", "price": 3.5, "priceDisplay": "£3.50", "section": "Tea", "group": "Bakes", "tags": ["traybake", "the", "day"]}, {"id": "shortbread-3", "name": "Shortbread (3)", "desc": "", "price": 3.0, "priceDisplay": "£3.00", "section": "Tea", "group": "Bakes", "tags": ["shortbread"]}, {"id": "scottish-breakfast-earl-grey-peppermint", "name": "Scottish breakfast / Earl Grey / peppermint", "desc": "", "price": 2.8, "priceDisplay": "from £2.80", "section": "Drinks", "group": "Tea & coffee", "tags": ["scottish", "breakfast", "earl", "grey", "peppermint"]}, {"id": "pot-of-tea-for-two", "name": "Pot of tea for two", "desc": "", "price": 4.8, "priceDisplay": "£4.80", "section": "Drinks", "group": "Tea & coffee", "tags": ["pot", "tea", "for", "two"]}, {"id": "filter-coffee-americano", "name": "Filter coffee / Americano", "desc": "", "price": 2.8, "priceDisplay": "from £2.80", "section": "Drinks", "group": "Tea & coffee", "tags": ["filter", "coffee", "americano"]}, {"id": "cappuccino-latte-flat-white", "name": "Cappuccino / latte / flat white", "desc": "", "price": 3.4, "priceDisplay": "from £3.40", "section": "Drinks", "group": "Tea & coffee", "tags": ["cappuccino", "latte", "flat", "white"]}, {"id": "hot-chocolate", "name": "Hot chocolate", "desc": "", "price": 3.6, "priceDisplay": "£3.60", "section": "Drinks", "group": "Tea & coffee", "tags": ["hot", "chocolate"]}, {"id": "fresh-orange-apple-juice", "name": "Fresh orange / apple juice", "desc": "", "price": 3.0, "priceDisplay": "£3.00", "section": "Drinks", "group": "Cold & a dram", "tags": ["fresh", "orange", "apple", "juice"]}, {"id": "irn-bru-soft-drinks", "name": "Irn-Bru / soft drinks", "desc": "", "price": 2.5, "priceDisplay": "from £2.50", "section": "Drinks", "group": "Cold & a dram", "tags": ["irn", "bru", "soft", "drinks"]}, {"id": "scottish-craft-ale-lager", "name": "Scottish craft ale / lager", "desc": "", "price": 4.8, "priceDisplay": "from £4.80", "section": "Drinks", "group": "Cold & a dram", "tags": ["scottish", "craft", "ale", "lager"]}, {"id": "house-red-white-by-glass", "name": "House red / white by glass", "desc": "", "price": 5.5, "priceDisplay": "from £5.50", "section": "Drinks", "group": "Cold & a dram", "tags": ["house", "red", "white", "glass"]}, {"id": "whisky-25ml", "name": "Whisky 25ml", "desc": "ask for today’s dram", "price": 4.5, "priceDisplay": "from £4.50", "section": "Drinks", "group": "Cold & a dram", "tags": ["whisky", "25ml"]}, {"id": "1-5ltr-coke", "name": "1.5ltr Coke", "desc": "", "price": 3.25, "priceDisplay": "£3.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["5ltr", "coke"]}, {"id": "1-75ltr-diet-coke", "name": "1.75ltr Diet Coke", "desc": "", "price": 3.25, "priceDisplay": "£3.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["75ltr", "diet", "coke"]}, {"id": "2ltr-irn-bru", "name": "2ltr Irn Bru", "desc": "", "price": 3.25, "priceDisplay": "£3.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["2ltr", "irn", "bru"]}, {"id": "2ltr-fanta", "name": "2ltr Fanta", "desc": "", "price": 3.25, "priceDisplay": "£3.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["2ltr", "fanta"]}, {"id": "500ml-coke", "name": "500ml Coke", "desc": "", "price": 2.25, "priceDisplay": "£2.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["500ml", "coke"]}, {"id": "500ml-fanta", "name": "500ml Fanta", "desc": "", "price": 2.25, "priceDisplay": "£2.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["500ml", "fanta"]}, {"id": "500ml-irn-bru", "name": "500ml Irn Bru", "desc": "", "price": 2.25, "priceDisplay": "£2.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["500ml", "irn", "bru"]}, {"id": "500ml-diet-irn-bru", "name": "500ml Diet Irn Bru", "desc": "", "price": 2.25, "priceDisplay": "£2.25", "section": "Drinks", "group": "Bottles & cans", "tags": ["500ml", "diet", "irn", "bru"]}, {"id": "coke-can", "name": "Coke Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["coke", "can"]}, {"id": "coke-zero-can", "name": "Coke Zero Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["coke", "zero", "can"]}, {"id": "irn-bru-can", "name": "Irn Bru Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["irn", "bru", "can"]}, {"id": "diet-irn-bru-can", "name": "Diet Irn Bru Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["diet", "irn", "bru", "can"]}, {"id": "sprite-can", "name": "Sprite Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["sprite", "can"]}, {"id": "fanta-can", "name": "Fanta Can", "desc": "", "price": 1.75, "priceDisplay": "£1.75", "section": "Drinks", "group": "Bottles & cans", "tags": ["fanta", "can"]}, {"id": "water", "name": "Water", "desc": "", "price": 1.5, "priceDisplay": "£1.50", "section": "Drinks", "group": "Bottles & cans", "tags": ["water"]}, {"id": "king-prawn-puree", "name": "King Prawn Puree", "desc": "", "price": 9.5, "priceDisplay": "£9.50", "section": "Indian", "group": "Starters", "tags": ["king", "prawn", "puree"]}, {"id": "chicken-pakoras", "name": "Chicken Pakoras", "desc": "", "price": 7.5, "priceDisplay": "£7.50", "section": "Indian", "group": "Starters", "tags": ["chicken", "pakoras"]}, {"id": "chicken-puree", "name": "Chicken Puree", "desc": "", "price": 6.5, "priceDisplay": "£6.50", "section": "Indian", "group": "Starters", "tags": ["chicken", "puree"]}, {"id": "prawn-puree", "name": "Prawn Puree", "desc": "", "price": 6.5, "priceDisplay": "£6.50", "section": "Indian", "group": "Starters", "tags": ["prawn", "puree"]}, {"id": "poppadom-tray", "name": "Poppadom Tray", "desc": "4 poppadoms, chilli sauce, yoghurt mint sauce, spicy onions, mango chutney.", "price": 6.0, "priceDisplay": "£6.00", "section": "Indian", "group": "Starters", "tags": ["poppadom", "tray"]}, {"id": "channa-puree", "name": "Channa Puree", "desc": "", "price": 5.95, "priceDisplay": "£5.95", "section": "Indian", "group": "Starters", "tags": ["channa", "puree"]}, {"id": "vegetable-pakoras", "name": "Vegetable Pakoras", "desc": "", "price": 5.95, "priceDisplay": "£5.95", "section": "Indian", "group": "Starters", "tags": ["vegetable", "pakoras"]}, {"id": "poppadom", "name": "Poppadom", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Starters", "tags": ["poppadom"]}, {"id": "korma", "name": "Korma", "desc": "Mild dish cooked with ground almonds, fresh cream and coconut powder.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["korma"]}, {"id": "kashmiri-korma", "name": "Kashmiri Korma", "desc": "Mild dish cooked with ground almonds, fresh cream, coconut powder, lychees and banana.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["kashmiri", "korma"]}, {"id": "malayan-korma", "name": "Malayan Korma", "desc": "Mild dish cooked with coconut powder, mixed ground nuts, pineapple, banana and fresh cream.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["malayan", "korma"]}, {"id": "pathia", "name": "Pathia", "desc": "Cooked in a tomato based sauce with mango chutney to produce a sweet and sour medium dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["pathia"]}, {"id": "dopiaza", "name": "Dopiaza", "desc": "Cooked with chunky fresh onions and selected spices to produce a medium hot dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["dopiaza"]}, {"id": "dhansak", "name": "Dhansak", "desc": "A combination of lentil daal, selected spices and punjabi herbs. Medium dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["dhansak"]}, {"id": "bhuna", "name": "Bhuna", "desc": "Cooked with onions, tomatoes, fresh corriander and punjabi spices. Medium dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["bhuna"]}, {"id": "rogan-josh", "name": "Rogan Josh", "desc": "Cooked with onions, tomato puree, fresh coriander and topped with fresh tomatoes. Medium dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["rogan", "josh"]}, {"id": "curry", "name": "Curry", "desc": "Classic curry cooked in an onion based curry sauce. Available in medium or hot.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["curry"]}, {"id": "madras", "name": "Madras", "desc": "Hot and slightly sharp dish, cooked with lemon juice and selected spices. Hot dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["madras"]}, {"id": "vindaloo", "name": "Vindaloo", "desc": "South Indian dish, known for its fiery hot rich taste. Cooked with corriander, ginger and garlic. Very hot dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["vindaloo"]}, {"id": "phall", "name": "Phall", "desc": "Cooked with fresh coriander, ginger, garlic and lots of ground chillies. Extremely hot dish.", "price": 10.45, "priceDisplay": "£10.45", "section": "Indian", "group": "Classic curries", "tags": ["phall"]}, {"id": "aloo-gobi", "name": "Aloo Gobi", "desc": "Cauliflower and potatoes", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["aloo", "gobi"]}, {"id": "gobi-bhajee", "name": "Gobi Bhajee", "desc": "Cauliflower", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["gobi", "bhajee"]}, {"id": "saag-aloo", "name": "Saag Aloo", "desc": "Spinach and potatoes", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["saag", "aloo"]}, {"id": "saag-bhajee", "name": "Saag Bhajee", "desc": "Spinach", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["saag", "bhajee"]}, {"id": "saag-paneer", "name": "Saag Paneer", "desc": "Spinach and cheese", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["saag", "paneer"]}, {"id": "mushroom-bhajee", "name": "Mushroom Bhajee", "desc": "", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["mushroom", "bhajee"]}, {"id": "okra-bhajee", "name": "Okra Bhajee", "desc": "Ladyfingers", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["okra", "bhajee"]}, {"id": "tarka-dall-bhajee", "name": "Tarka Dall Bhajee", "desc": "Lentil", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["tarka", "dall", "bhajee"]}, {"id": "kabli-channa", "name": "Kabli Channa", "desc": "Chick peas", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["kabli", "channa"]}, {"id": "bombay-potatoes", "name": "Bombay Potatoes", "desc": "", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Vegetables", "tags": ["bombay", "potatoes"]}, {"id": "tandoori-mixed-grill", "name": "Tandoori Mixed Grill", "desc": "Selection of Tandoori chicken, chicken tikka, lamb tikka and seekh kebab. · Served with Curry Sauce, Pilau Rice, Raita, Salad and Yoghurt Mint Sauce. · Also Includes Nan Bread.", "price": 15.95, "priceDisplay": "£15.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["tandoori", "mixed", "grill"]}, {"id": "lamb-tikka-main", "name": "Lamb Tikka Main", "desc": "Morsels of lamb marinated in our special recipe and roasted on skewers in our Tandoor. · Served with Curry Sauce, Pilau Rice, Raita, Salad and Yoghurt Mint Sauce.", "price": 14.95, "priceDisplay": "£14.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["lamb", "tikka", "main"]}, {"id": "mahal-special-biryani", "name": "Mahal Special Biryani", "desc": "Special preparation of basmati rice with delicate spices, served with curry sauce lamb, chicken, prawn, mushrooms, served with lentil sauce", "price": 14.95, "priceDisplay": "£14.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["mahal", "special", "biryani"]}, {"id": "mixed-tikka-main", "name": "Mixed Tikka Main", "desc": "Chicken and Lamb Tikka. · Served with Curry Sauce, Pilau Rice, Raita, Salad and Yoghurt Mint Sauce.", "price": 13.95, "priceDisplay": "£13.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["mixed", "tikka", "main"]}, {"id": "lamb-biryani", "name": "Lamb Biryani", "desc": "Special preparation of basmati rice with delicate spices, served with curry sauce lamb, chicken, prawn, mushrooms, served with lentil sauce Served with curry sauce, salad and raita.", "price": 13.75, "priceDisplay": "£13.75", "section": "Indian", "group": "Tandoori & biryani", "tags": ["lamb", "biryani"]}, {"id": "chicken-biryani", "name": "Chicken Biryani", "desc": "Special preparation of basmati rice with delicate spices, served with curry sauce lamb, chicken, prawn, mushrooms, served with lentil sauce Served with curry sauce, salad and raita.", "price": 13.75, "priceDisplay": "£13.75", "section": "Indian", "group": "Tandoori & biryani", "tags": ["chicken", "biryani"]}, {"id": "chicken-tikka-main", "name": "Chicken Tikka Main", "desc": "Tender and juicy cubes of breast of chicken boneless, roasted on skewers in our Tandoor. · Served with Curry Sauce, Pilau Rice, Raita, Salad and Yoghurt Mint Sauce.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["chicken", "tikka", "main"]}, {"id": "channa-biryani", "name": "Channa Biryani", "desc": "Special preparation of basmati rice with delicate spices, served with curry sauce lamb, chicken, prawn, mushrooms, served with lentil sauce Served with curry sauce, salad and raita.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["channa", "biryani"]}, {"id": "tandoori-chicken-main", "name": "Tandoori Chicken Main", "desc": "Half chicken on the bone, cooked Tandoor. Served with pilau rice, curry sauce, raita, salad and yoghurt Mint sauce.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["tandoori", "chicken", "main"]}, {"id": "lamb-tikka-starter", "name": "Lamb Tikka Starter", "desc": "Morsels of lamb marinated in our special recipe and roasted on skewers in our Tandoor. Served with Salad and Yoghurt Mint Sauce.", "price": 9.95, "priceDisplay": "£9.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["lamb", "tikka", "starter"]}, {"id": "mixed-tikka-starter", "name": "Mixed Tikka Starter", "desc": "Chicken and Lamb Tikka. Served with Salad and Yoghurt Mint Sauce.", "price": 9.5, "priceDisplay": "£9.50", "section": "Indian", "group": "Tandoori & biryani", "tags": ["mixed", "tikka", "starter"]}, {"id": "chicken-tikka-starter", "name": "Chicken Tikka Starter", "desc": "Tender and juicy cubes of breast of chicken boneless, roasted on skewers in our Tandoor. Served with Salad and Yoghurt Mint Sauce.", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["chicken", "tikka", "starter"]}, {"id": "tandoori-chicken-starter", "name": "Tandoori Chicken Starter", "desc": "Quarter chicken on the bone, cooked in our Tandoor. Served with Salad and Yoghurt Mint Sauce.", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Tandoori & biryani", "tags": ["tandoori", "chicken", "starter"]}, {"id": "mushroom-pilau-rice", "name": "Mushroom Pilau Rice", "desc": "", "price": 4.35, "priceDisplay": "£4.35", "section": "Indian", "group": "Rice & bread", "tags": ["mushroom", "pilau", "rice"]}, {"id": "special-fried-rice", "name": "Special Fried Rice", "desc": "", "price": 4.35, "priceDisplay": "£4.35", "section": "Indian", "group": "Rice & bread", "tags": ["special", "fried", "rice"]}, {"id": "onion-fried-rice", "name": "Onion Fried Rice", "desc": "", "price": 4.35, "priceDisplay": "£4.35", "section": "Indian", "group": "Rice & bread", "tags": ["onion", "fried", "rice"]}, {"id": "mince-rice", "name": "Mince Rice", "desc": "", "price": 4.35, "priceDisplay": "£4.35", "section": "Indian", "group": "Rice & bread", "tags": ["mince", "rice"]}, {"id": "garlic-nan", "name": "Garlic Nan", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["garlic", "nan"]}, {"id": "peshwari-nan", "name": "Peshwari Nan", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["peshwari", "nan"]}, {"id": "cheese-nan", "name": "Cheese Nan", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["cheese", "nan"]}, {"id": "garlic-corriander-nan", "name": "Garlic Corriander Nan", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["garlic", "corriander", "nan"]}, {"id": "chilli-garlic-nan", "name": "Chilli Garlic Nan", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["chilli", "garlic", "nan"]}, {"id": "paratha", "name": "Paratha", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["paratha"]}, {"id": "pulao-rice", "name": "Pulao Rice", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["pulao", "rice"]}, {"id": "boiled-rice", "name": "Boiled Rice", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Indian", "group": "Rice & bread", "tags": ["boiled", "rice"]}, {"id": "nan-bread", "name": "Nan Bread", "desc": "", "price": 3.7, "priceDisplay": "£3.70", "section": "Indian", "group": "Rice & bread", "tags": ["nan", "bread"]}, {"id": "tandoori-roti", "name": "Tandoori Roti", "desc": "", "price": 2.95, "priceDisplay": "£2.95", "section": "Indian", "group": "Rice & bread", "tags": ["tandoori", "roti"]}, {"id": "chapati", "name": "Chapati", "desc": "", "price": 1.95, "priceDisplay": "£1.95", "section": "Indian", "group": "Rice & bread", "tags": ["chapati"]}, {"id": "methi-gosht", "name": "Methi Gosht", "desc": "Cooked with fenugreek, spinach, onions, tomatoes and punjabi spices. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["methi", "gosht"]}, {"id": "jall-bhuna", "name": "Jall Bhuna", "desc": "Cooked with ginger, garlic, onions, tomatoes, peppers, lots of fresh green chillies and punjabi herbs. Hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["jall", "bhuna"]}, {"id": "massalam", "name": "Massalam", "desc": "Cooked with ground almonds and fresh cream in a spiced massala sauce. Medium, creamy dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["massalam"]}, {"id": "butter-chicken", "name": "Butter Chicken", "desc": "Cooked with Ghee, fresh cream, yoghurt, fresh coriander and mixed spice. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["butter", "chicken"]}, {"id": "balti", "name": "Balti", "desc": "Tender pieces of meat cooked with onions, tomatoes, green peppers, fresh coriander and mixed spices. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["balti"]}, {"id": "jaipuri", "name": "Jaipuri", "desc": "Cooked with fried onions, fried green peppers, mushrooms, tomatoes, ginger, garlic and a touch of punjabi spices.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["jaipuri"]}, {"id": "nentara", "name": "Nentara", "desc": "Cooked with fried onions, fried green peppers, fresh tomatoes, ginger, garlic, extra coriander and punjabi spices.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["nentara"]}, {"id": "massaladar", "name": "Massaladar", "desc": "Cooked in a tandoori sauce with onions, green peppers, tomatoes, ginger, garlic and spices. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["massaladar"]}, {"id": "creamy-jalfrezi", "name": "Creamy Jalfrezi", "desc": "Cooked with lots of green chillies, ground almonds and cream. Hot, creamy dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["creamy", "jalfrezi"]}, {"id": "traditional-jalfrezi", "name": "Traditional Jalfrezi", "desc": "Cooked with green chillies, green peppers, onions and punjabi spices. Medium dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["traditional", "jalfrezi"]}, {"id": "hyderabadi", "name": "Hyderabadi", "desc": "Cooked with mince, green peppers, onions, tomatoes and punjabi spices. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["hyderabadi"]}, {"id": "chasni", "name": "Chasni", "desc": "Cooked with pathia sauce, ground almonds and fresh cream to give a slight tangy hint. Medium dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["chasni"]}, {"id": "achari", "name": "Achari", "desc": "Cooked with mixed pickle, onions, tomatoes and punjabi spices. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["achari"]}, {"id": "chilli-garlic", "name": "Chilli Garlic", "desc": "Cooked with onions, tomatoes, topped with green chillies and garlic. Hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["chilli", "garlic"]}, {"id": "punjabi-massala", "name": "Punjabi Massala", "desc": "Cooked with ginger, garlic, green peppers, onions, fresh tomatoes and lots of punjabi herbs. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["punjabi", "massala"]}, {"id": "reshmi-massala", "name": "Reshmi Massala", "desc": "Cooked with mushrooms, chunky fried onions, lemon juice and mixed herbs. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["reshmi", "massala"]}, {"id": "karahi", "name": "Karahi", "desc": "Cooked with ginger, garlic, yoghurt sauce, onions, tomatoes, green peppers, fresh corriander and spices. Medium hot.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["karahi"]}, {"id": "green-herb-massala", "name": "Green Herb Massala", "desc": "Cooked with ginger, garlic, onions, tomatoes, mint sauce and herbs. Medium hot dish.", "price": 11.95, "priceDisplay": "£11.95", "section": "Indian", "group": "Chef's specialities", "tags": ["green", "herb", "massala"]}, {"id": "korma-sauce", "name": "Korma Sauce", "desc": "", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Sauces & dips", "tags": ["korma", "sauce"]}, {"id": "all-other-sauces", "name": "All Other Sauces", "desc": "Choose type of curry sauce.", "price": 6.95, "priceDisplay": "£6.95", "section": "Indian", "group": "Sauces & dips", "tags": ["all", "other", "sauces"]}, {"id": "curry-sauce", "name": "Curry Sauce", "desc": "", "price": 3.5, "priceDisplay": "£3.50", "section": "Indian", "group": "Sauces & dips", "tags": ["curry", "sauce"]}, {"id": "raita", "name": "Raita", "desc": "", "price": 1.95, "priceDisplay": "£1.95", "section": "Indian", "group": "Sauces & dips", "tags": ["raita"]}, {"id": "mango-chutney", "name": "Mango Chutney", "desc": "", "price": 1.5, "priceDisplay": "£1.50", "section": "Indian", "group": "Sauces & dips", "tags": ["mango", "chutney"]}, {"id": "mixed-pickle", "name": "Mixed Pickle", "desc": "", "price": 1.5, "priceDisplay": "£1.50", "section": "Indian", "group": "Sauces & dips", "tags": ["mixed", "pickle"]}, {"id": "spicy-onions", "name": "Spicy Onions", "desc": "", "price": 1.5, "priceDisplay": "£1.50", "section": "Indian", "group": "Sauces & dips", "tags": ["spicy", "onions"]}, {"id": "chilli-sauce", "name": "Chilli Sauce", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["chilli", "sauce"]}, {"id": "thick-chilli-sauce", "name": "Thick Chilli Sauce", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["thick", "chilli", "sauce"]}, {"id": "garlic-mayo", "name": "Garlic Mayo", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["garlic", "mayo"]}, {"id": "salad-dressing", "name": "Salad Dressing", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["salad", "dressing"]}, {"id": "yoghurt-mint", "name": "Yoghurt Mint", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["yoghurt", "mint"]}, {"id": "bbq", "name": "Bbq", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["bbq"]}, {"id": "sweet-chilli", "name": "Sweet Chilli", "desc": "", "price": 0.95, "priceDisplay": "£0.95", "section": "Indian", "group": "Sauces & dips", "tags": ["sweet", "chilli"]}, {"id": "all-meats-box", "name": "All Meats Box", "desc": "", "price": 22.95, "priceDisplay": "£22.95", "section": "Kebab", "group": "Kebabs", "tags": ["all", "meats", "box"]}, {"id": "mahal-mixed-kebab", "name": "Mahal Mixed Kebab", "desc": "Chicken Kebab, Shish Kebab, Kofta Kebab, Shawarma and Donner served on a Nan", "price": 18.95, "priceDisplay": "£18.95", "section": "Kebab", "group": "Kebabs", "tags": ["mahal", "mixed", "kebab"]}, {"id": "shish-kebab", "name": "Shish Kebab", "desc": "Spiced lamb cubes, flame grilled.", "price": 12.95, "priceDisplay": "£12.95", "section": "Kebab", "group": "Kebabs", "tags": ["shish", "kebab"]}, {"id": "lamb-tikka-kebab", "name": "Lamb Tikka Kebab", "desc": "Cooked in our clay oven.", "price": 12.95, "priceDisplay": "£12.95", "section": "Kebab", "group": "Kebabs", "tags": ["lamb", "tikka", "kebab"]}, {"id": "shashlik-kebab", "name": "Shashlik Kebab", "desc": "Spiced lamb with onions and peppers.", "price": 12.95, "priceDisplay": "£12.95", "section": "Kebab", "group": "Kebabs", "tags": ["shashlik", "kebab"]}, {"id": "stir-fried-donner", "name": "Stir Fried Donner", "desc": "Juicy donner meat, stir-fires with onions peppers, served with fries or nan bread", "price": 12.95, "priceDisplay": "£12.95", "section": "Kebab", "group": "Kebabs", "tags": ["stir", "fried", "donner"]}, {"id": "stir-fried-chicken-shawarma", "name": "Stir Fried Chicken Shawarma", "desc": "Chicken shwarma meat, stir-fried with onions & peppers, served with fries or nan bread", "price": 12.95, "priceDisplay": "£12.95", "section": "Kebab", "group": "Kebabs", "tags": ["stir", "fried", "chicken", "shawarma"]}, {"id": "mixed-kebab", "name": "Mixed Kebab", "desc": "Chicken, Shish and Donner No shish on small", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Kebabs", "tags": ["mixed", "kebab"]}, {"id": "mixed-chicken-kebab", "name": "Mixed Chicken Kebab", "desc": "Grilled chicken and donner kebab", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Kebabs", "tags": ["mixed", "chicken", "kebab"]}, {"id": "chicken-kebab", "name": "Chicken Kebab", "desc": "Spiced chicken cubes, flame grilled.", "price": 9.45, "priceDisplay": "£9.45", "section": "Kebab", "group": "Kebabs", "tags": ["chicken", "kebab"]}, {"id": "chicken-tikka-kebab", "name": "Chicken Tikka Kebab", "desc": "Baked in our clay oven.", "price": 9.45, "priceDisplay": "£9.45", "section": "Kebab", "group": "Kebabs", "tags": ["chicken", "tikka", "kebab"]}, {"id": "donner-meat-and-chips", "name": "Donner Meat And Chips", "desc": "", "price": 9.45, "priceDisplay": "£9.45", "section": "Kebab", "group": "Kebabs", "tags": ["donner", "meat", "and", "chips"]}, {"id": "donner", "name": "Donner", "desc": "Cooked on our rotating Donner Grill.", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Kebabs", "tags": ["donner"]}, {"id": "chicken-shawarma", "name": "Chicken Shawarma", "desc": "Layered Chicken Donner.", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Kebabs", "tags": ["chicken", "shawarma"]}, {"id": "donner-and-shawarma-mix", "name": "Donner And Shawarma Mix", "desc": "Donner and shawarma Mixed.", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Kebabs", "tags": ["donner", "and", "shawarma", "mix"]}, {"id": "kofta-kebab", "name": "Kofta Kebab", "desc": "Spiced mince on a skewer, grilled in our clay oven.", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Kebabs", "tags": ["kofta", "kebab"]}, {"id": "halloumi-and-mushroom-kebab", "name": "Halloumi And Mushroom Kebab", "desc": "Grilled Halloumi and Mushroom Kebab", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Kebabs", "tags": ["halloumi", "and", "mushroom", "kebab"]}, {"id": "donner-meat", "name": "Donner Meat", "desc": "", "price": 8.75, "priceDisplay": "£8.75", "section": "Kebab", "group": "Kebabs", "tags": ["donner", "meat"]}, {"id": "chicken-kebab-nachos", "name": "Chicken Kebab Nachos", "desc": "Nachos topped with chicken kebab, mozzarella cheese, salsa, jalapenos..", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["chicken", "kebab", "nachos"]}, {"id": "peri-peri-chicken-kebab-nachos", "name": "Peri Peri Chicken Kebab Nachos", "desc": "", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["peri", "peri", "chicken", "kebab", "nachos"]}, {"id": "crispy-chicken-loaded-fries", "name": "Crispy Chicken Loaded Fries", "desc": "Peri fries, salt and chilli chicken, topped with peri mayo, siracha sauce, garlic mayo, fried onions and fried peppers.", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["crispy", "chicken", "loaded", "fries"]}, {"id": "massala-chicken-loaded-fries", "name": "Massala Chicken Loaded Fries", "desc": "Fries, salt and chilli chicken, topped with out home made curry sauce.", "price": 9.95, "priceDisplay": "£9.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["massala", "chicken", "loaded", "fries"]}, {"id": "cheese-nachos", "name": "Cheese Nachos", "desc": "Nachos topped with mozzarella cheese, salsa, jalapenos.", "price": 6.95, "priceDisplay": "£6.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["cheese", "nachos"]}, {"id": "chicken-goujons", "name": "Chicken Goujons", "desc": "", "price": 5.95, "priceDisplay": "£5.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["chicken", "goujons"]}, {"id": "chips-and-mozzarella-cheese", "name": "Chips And Mozzarella Cheese", "desc": "", "price": 5.75, "priceDisplay": "£5.75", "section": "Kebab", "group": "Sides & snacks", "tags": ["chips", "and", "mozzarella", "cheese"]}, {"id": "mozzarella-dippers", "name": "Mozzarella Dippers", "desc": "", "price": 4.95, "priceDisplay": "£4.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["mozzarella", "dippers"]}, {"id": "peri-peri-chips", "name": "Peri Peri Chips", "desc": "", "price": 3.95, "priceDisplay": "£3.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["peri", "peri", "chips"]}, {"id": "chips", "name": "Chips", "desc": "", "price": 3.75, "priceDisplay": "£3.75", "section": "Kebab", "group": "Sides & snacks", "tags": ["chips"]}, {"id": "large-salad-box", "name": "Large Salad Box", "desc": "", "price": 3.75, "priceDisplay": "£3.75", "section": "Kebab", "group": "Sides & snacks", "tags": ["large", "salad", "box"]}, {"id": "chocolate-fudge-cake", "name": "Chocolate Fudge Cake", "desc": "", "price": 3.0, "priceDisplay": "£3.00", "section": "Kebab", "group": "Sides & snacks", "tags": ["chocolate", "fudge", "cake"]}, {"id": "small-salad-box", "name": "Small Salad Box", "desc": "", "price": 1.95, "priceDisplay": "£1.95", "section": "Kebab", "group": "Sides & snacks", "tags": ["small", "salad", "box"]}, {"id": "chicken-shawarma-hoagie", "name": "Chicken Shawarma Hoagie", "desc": "Combination of chips, shawarma meat and cheese on a wrap. Served with salad, chilli and garlic sauce.", "price": 9.75, "priceDisplay": "£9.75", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["chicken", "shawarma", "hoagie"]}, {"id": "donner-hoagie", "name": "Donner Hoagie", "desc": "Combination of chips, kebab meat and cheese on a wrap. Served with salad, chilli and garlic sauce.", "price": 9.75, "priceDisplay": "£9.75", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["donner", "hoagie"]}, {"id": "chicken-kebab-hoagie", "name": "Chicken Kebab Hoagie", "desc": "Combination of chips, chicken kebab and cheese on a wrap. Served with salad, chilli and garlic sauce.", "price": 9.75, "priceDisplay": "£9.75", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["chicken", "kebab", "hoagie"]}, {"id": "mixed-kebab-wrap", "name": "Mixed Kebab Wrap", "desc": "", "price": 9.75, "priceDisplay": "£9.75", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["mixed", "kebab", "wrap"]}, {"id": "chicken-tikka-wrap", "name": "Chicken Tikka Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["chicken", "tikka", "wrap"]}, {"id": "chicken-kebab-wrap", "name": "Chicken Kebab Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["chicken", "kebab", "wrap"]}, {"id": "kofta-wrap", "name": "Kofta Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["kofta", "wrap"]}, {"id": "peri-peri-chicken-wrap", "name": "Peri Peri Chicken Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["peri", "peri", "chicken", "wrap"]}, {"id": "donner-wrap", "name": "Donner Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.5, "priceDisplay": "£8.50", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["donner", "wrap"]}, {"id": "chicken-shawarma-wrap", "name": "Chicken Shawarma Wrap", "desc": "With salad, chilli and garlic sauce", "price": 8.5, "priceDisplay": "£8.50", "section": "Kebab", "group": "Wraps & hoagies", "tags": ["chicken", "shawarma", "wrap"]}, {"id": "donner-burger-chips", "name": "Donner Burger & Chips", "desc": "Donner Meat, Jalapenos, Onions, Tomato, topped with Cheese Sauce.", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Burgers", "tags": ["donner", "burger", "chips"]}, {"id": "donner-cheese-burger-chips", "name": "Donner Cheese Burger & Chips", "desc": "Cheese Burger, Donner Meat, Fried Onions, Tomato, Salad Dressing or Thick Chilli Sauce", "price": 8.95, "priceDisplay": "£8.95", "section": "Kebab", "group": "Burgers", "tags": ["donner", "cheese", "burger", "chips"]}, {"id": "peri-peri-burger-chips", "name": "Peri Peri Burger & Chips", "desc": "Flame Grilled, served with Lettuce and Peri Peri Sauce", "price": 7.95, "priceDisplay": "£7.95", "section": "Kebab", "group": "Burgers", "tags": ["peri", "peri", "burger", "chips"]}, {"id": "4oz-new-york-cheeseburger-chips", "name": "4oz New York Cheeseburger & Chips", "desc": "Flame Grilled, served with Fried Onions, Fried Mushrooms and BBQ Sauce", "price": 7.95, "priceDisplay": "£7.95", "section": "Kebab", "group": "Burgers", "tags": ["4oz", "new", "york", "cheeseburger", "chips"]}, {"id": "4oz-cheeseburger-chips", "name": "4oz Cheeseburger & Chips", "desc": "Flame Grilled, served with Lettuce, Onion, Tomoto and Burger Sauce", "price": 6.95, "priceDisplay": "£6.95", "section": "Kebab", "group": "Burgers", "tags": ["4oz", "cheeseburger", "chips"]}, {"id": "breaded-chicken-burger-chips", "name": "Breaded Chicken Burger & Chips", "desc": "With Lettuce and Mayo.", "price": 6.95, "priceDisplay": "£6.95", "section": "Kebab", "group": "Burgers", "tags": ["breaded", "chicken", "burger", "chips"]}, {"id": "halloumi-mush-burger-chips", "name": "Halloumi Mush Burger & Chips", "desc": "Mixed Salad and Garlic Mayo", "price": 6.95, "priceDisplay": "£6.95", "section": "Kebab", "group": "Burgers", "tags": ["halloumi", "mush", "burger", "chips"]}, {"id": "12-mixed-kebab-pizza", "name": "12\" Mixed Kebab Pizza", "desc": "Grilled Chicken, Donner", "price": 15.95, "priceDisplay": "£15.95", "section": "Pizza", "group": "Pizza", "tags": ["mixed", "kebab", "pizza"]}, {"id": "donner-pizza-12", "name": "Donner Pizza (12\")", "desc": "Cheese and Tomato pizza topped with Donner meat, salad and a choice of dressings.", "price": 15.5, "priceDisplay": "£15.50", "section": "Pizza", "group": "Pizza", "tags": ["donner", "pizza"]}, {"id": "12-chicken-kebab-pizza", "name": "12\" Chicken Kebab Pizza", "desc": "Grilled chicken kebab added as a topping", "price": 14.95, "priceDisplay": "£14.95", "section": "Pizza", "group": "Pizza", "tags": ["chicken", "kebab", "pizza"]}, {"id": "calzone", "name": "Calzone", "desc": "", "price": 14.45, "priceDisplay": "£14.45", "section": "Pizza", "group": "Pizza", "tags": ["calzone"]}, {"id": "curry-pizza", "name": "Curry Pizza", "desc": "Chicken on your choice of curry added as a topping", "price": 12.95, "priceDisplay": "£12.95", "section": "Pizza", "group": "Pizza", "tags": ["curry", "pizza"]}, {"id": "donner-pizza-topping", "name": "Donner Pizza Topping", "desc": "Donner Meat added as a topping. Cheese on top.", "price": 11.95, "priceDisplay": "£11.95", "section": "Pizza", "group": "Pizza", "tags": ["donner", "pizza", "topping"]}, {"id": "shawarma-pizza", "name": "Shawarma Pizza", "desc": "Pizza topped with Chicken Donner, salad and a choice of dressings.", "price": 11.95, "priceDisplay": "£11.95", "section": "Pizza", "group": "Pizza", "tags": ["shawarma", "pizza"]}, {"id": "mahal-special-pizza", "name": "Mahal Special Pizza", "desc": "Chicken Tikka, Onions and Green Peppers, pan cooked and poured over Pizza base.", "price": 11.75, "priceDisplay": "£11.75", "section": "Pizza", "group": "Pizza", "tags": ["mahal", "special", "pizza"]}, {"id": "spicy-chicken-pizza", "name": "Spicy Chicken Pizza", "desc": "Slices of chicken pan cooked and poured over pizza base.", "price": 10.95, "priceDisplay": "£10.95", "section": "Pizza", "group": "Pizza", "tags": ["spicy", "chicken", "pizza"]}, {"id": "spicy-lamb-pizza", "name": "Spicy Lamb Pizza", "desc": "Slices of Lamb pan cooked with spices.", "price": 10.95, "priceDisplay": "£10.95", "section": "Pizza", "group": "Pizza", "tags": ["spicy", "lamb", "pizza"]}, {"id": "spicy-mince-pizza", "name": "Spicy Mince Pizza", "desc": "Lamb Mince tossed in a pan to spice it up, then poured over a tomato pizza base.", "price": 10.95, "priceDisplay": "£10.95", "section": "Pizza", "group": "Pizza", "tags": ["spicy", "mince", "pizza"]}, {"id": "meat-feast-hot-pizza", "name": "Meat Feast Hot Pizza", "desc": "Cheese, Tomato, Pepperoni, Chicken, Lamb and a sprinkle of Green Chillies.", "price": 10.75, "priceDisplay": "£10.75", "section": "Pizza", "group": "Pizza", "tags": ["meat", "feast", "hot", "pizza"]}, {"id": "mexican-pizza", "name": "Mexican Pizza", "desc": "Cheese, Tomato, Jalapenos, Spicy Beef, Onions and Green Peppers.", "price": 9.95, "priceDisplay": "£9.95", "section": "Pizza", "group": "Pizza", "tags": ["mexican", "pizza"]}, {"id": "the-rooster-pizza", "name": "The Rooster Pizza", "desc": "Cheese, Tomato, Chicken, Chicken Tikka and Sweetcorn", "price": 9.95, "priceDisplay": "£9.95", "section": "Pizza", "group": "Pizza", "tags": ["the", "rooster", "pizza"]}, {"id": "the-meats-pizza", "name": "The Meats Pizza", "desc": "Cheese, Tomato, Meatballs, Spicy Beef and Mince.", "price": 9.95, "priceDisplay": "£9.95", "section": "Pizza", "group": "Pizza", "tags": ["the", "meats", "pizza"]}, {"id": "create-your-own-pizza", "name": "Create Your Own Pizza", "desc": "New, two free toppings", "price": 9.95, "priceDisplay": "£9.95", "section": "Pizza", "group": "Pizza", "tags": ["create", "your", "own", "pizza"]}, {"id": "all-the-veg-pizza", "name": "All The Veg Pizza", "desc": "Cheese, Tomato, Mushrooms, Peppers, Sweetcorn and Onions.", "price": 9.75, "priceDisplay": "£9.75", "section": "Pizza", "group": "Pizza", "tags": ["all", "the", "veg", "pizza"]}, {"id": "the-greek-pizza", "name": "The Greek Pizza", "desc": "Cheese, Tomato, Olives, Halloumi Cheese, Fresh Tomatoes and Herbs.", "price": 9.75, "priceDisplay": "£9.75", "section": "Pizza", "group": "Pizza", "tags": ["the", "greek", "pizza"]}, {"id": "margherita-pizza", "name": "Margherita Pizza", "desc": "Cheese and Tomato.", "price": 7.95, "priceDisplay": "£7.95", "section": "Pizza", "group": "Pizza", "tags": ["margherita", "pizza"]}, {"id": "garlic-pizza-with-cheese", "name": "Garlic Pizza With Cheese", "desc": "Homemade pizza, freshly baked on the premises.", "price": 7.5, "priceDisplay": "£7.50", "section": "Pizza", "group": "Pizza", "tags": ["garlic", "pizza", "with", "cheese"]},];123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta id="meta-theme-color" name="theme-color" content="#070707"> <script> (function () { try { var k = "corner-cafe-theme"; var t = localStorage.getItem(k); var th = t === "light" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", th); var meta = document.getElementById("meta-theme-color"); if (meta) meta.setAttribute("content", th === "light" ? "#f6f3ee" : "#070707"); } catch (e) { document.documentElement.setAttribute("data-theme", "dark"); } })(); </script> <title>Corner Cafe | Order</title> <link rel="icon" type="image/svg+xml" href="assets/logo-c.svg?v=1.17"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap"> <link rel="stylesheet" href="styles.css?v=6"></head><body> <div class="app-shell"> <header class="app-header"> <a class="app-back" data-back-path href="path.html">← Change path</a> <button type="button" class="theme-toggle" data-theme-toggle aria-label="Switch theme" title="Theme"> <svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <circle cx="12" cy="12" r="4"/> <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/> </svg> <svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/> </svg> </button> </header>
<main class="app-main"> <div class="app-hero"> <p class="app-hero__eyebrow"><span data-order-service>Order</span> · <span data-order-mode>…</span></p> <h1 class="app-hero__title" data-order-heading>Your order</h1> <p class="app-hero__lead" data-order-lead>Choose dishes for your order.</p> </div>
<section class="order-panel" data-panel-menu hidden> <div class="menu-filters" data-menu-filters role="tablist" aria-label="Menu sections"></div> <div class="menu-list" data-menu-list></div> </section>
<section class="order-panel" data-panel-know hidden> <form class="know-form" data-know-form> <label class="know-label" for="know-input">What would you like?</label> <textarea id="know-input" class="know-input" name="want" rows="3" placeholder="e.g. a full Scottish and a flat white, or Cullen skink and sticky toffee" autocomplete="off" required></textarea> <button type="submit" class="know-submit">Match my order</button> </form> <div class="know-results" data-know-results hidden></div> </section>
<aside class="cart-bar" data-cart-bar hidden> <div class="cart-bar__copy"> <strong data-cart-count>0 items</strong> <span data-cart-total>£0.00</span> </div> <div class="cart-bar__actions"> <button type="button" class="cart-bar__btn cart-bar__btn--ghost" data-cart-review>View basket</button> <button type="button" class="cart-bar__btn" data-cart-checkout>Continue to checkout</button> </div> </aside>
<dialog class="cart-dialog" data-cart-dialog> <form method="dialog" class="cart-dialog__inner"> <h2 class="cart-dialog__title">Your basket</h2> <ul class="cart-lines" data-cart-lines></ul> <p class="cart-dialog__total">Total <strong data-cart-dialog-total>£0.00</strong></p> <div class="cart-dialog__actions"> <button type="submit" class="cart-dialog__close" value="close">Close</button> <button type="button" class="cart-dialog__clear" data-cart-clear>Clear basket</button> <button type="button" class="cart-dialog__checkout" data-cart-checkout>Continue to checkout</button> </div> </form> </dialog> </main> </div> <script src="menu-data.js?v=2" defer></script> <script src="app.js?v=5" defer></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta id="meta-theme-color" name="theme-color" content="#070707"> <script> (function () { try { var k = "corner-cafe-theme"; var t = localStorage.getItem(k); var th = t === "light" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", th); var meta = document.getElementById("meta-theme-color"); if (meta) meta.setAttribute("content", th === "light" ? "#f6f3ee" : "#070707"); } catch (e) { document.documentElement.setAttribute("data-theme", "dark"); } })(); </script> <title>Corner Cafe | How would you like to order?</title> <meta name="description" content="Browse the menu or tell Corner Cafe what you want — AI-assisted ordering."> <link rel="icon" type="image/svg+xml" href="assets/logo-c.svg?v=1.17"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap"> <link rel="stylesheet" href="styles.css?v=5"></head><body> <div class="app-shell"> <header class="app-header"> <a class="app-back" href="./">← Change service</a> <button type="button" class="theme-toggle" data-theme-toggle aria-label="Switch theme" title="Theme"> <svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <circle cx="12" cy="12" r="4"/> <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/> </svg> <svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"> <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/> </svg> </button> </header>
<main class="app-main"> <div class="app-hero"> <p class="app-hero__eyebrow"><span data-order-service>Order</span></p> <h1 class="app-hero__title">How would you like to order?</h1> <p class="app-hero__lead">Browse the full menu, or tell us what you fancy — we’ll match it for you.</p> </div>
<ul class="service-grid service-grid--two"> <li> <a class="service-card service-card--menu" data-path-link data-mode="menu" href="order.html"> <span class="service-card__icon" aria-hidden="true"> <svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/> <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/> <path d="M8 7h8"/> <path d="M8 11h6"/> </svg> </span> <span class="service-card__copy"> <span class="service-card__name">Browse the menu</span> <span class="service-card__meta">See everything by section and add dishes</span> </span> </a> </li> <li> <a class="service-card service-card--know" data-path-link data-mode="know" href="order.html"> <span class="service-card__icon" aria-hidden="true"> <svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 3a6 6 0 0 0-4.5 9.9V17a1.5 1.5 0 0 0 1.5 1.5h6A1.5 1.5 0 0 0 16.5 17v-4.1A6 6 0 0 0 12 3z"/> <path d="M9.5 20.5h5"/> <path d="M10.5 22h3"/> </svg> </span> <span class="service-card__copy"> <span class="service-card__name">I know what I want</span> <span class="service-card__meta">Say it in your own words — AI matches the kitchen</span> </span> </a> </li> </ul> </main> </div> <script src="app.js?v=4" defer></script></body></html>12345678910111213141516171819202122232425262728293031323334window.SmOS_CC_Payments = { businessName: "The Corner Cafe", payeeName: "The Corner Cafe", sortCode: "00-00-00", accountNumber: "00000000", bankName: "Business current account", referencePrefix: "CC", options: [ { id: "bank-transfer", name: "Bank transfer", feeNote: "No platform or card fees — paid straight into the cafe account", summary: "Pay by Faster Payments from your bank app. Use the order reference so we can match your payment. Funds land in our business account with no third-party checkout cut.", availableFor: ["delivery", "collection", "sitting-in"], }, { id: "cash-collection", name: "Cash on collection", feeNote: "No fees — pay at the counter", summary: "Pay cash when you collect at 9 Eskdail Court. The full amount stays with the cafe.", availableFor: ["collection"], }, { id: "cash-sit-in", name: "Pay at your table", feeNote: "No fees — cash or cafe card terminal", summary: "Settle in the cafe when you sit in. Cash has no processing fees; any card terminal is the cafe’s own till (not a delivery-app commission).", availableFor: ["sitting-in"], }, ],};123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930:root { color-scheme: dark; --font-display: "Playfair Display", Georgia, "Times New Roman", serif; --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --bg: #070707; --text: #f3f3f3; --muted: #bababa; --red: #b80d1f; --red-bright: #e1182f; --border: #2a2a2a; --card: #101010;}
html[data-theme="light"] { color-scheme: light; --bg: #f6f3ee; --text: #1c1b19; --muted: #5e5a53; --border: #e0d9ce; --card: #ffffff;}
* { box-sizing: border-box;}
html,body { margin: 0; min-height: 100%;}
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.5;}
a { color: inherit; text-decoration: none;}
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);}
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(0.85rem, env(safe-area-inset-top, 0px)) max(1.1rem, env(safe-area-inset-right, 0px)) 0.85rem max(1.1rem, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--border);}
.app-brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 600; letter-spacing: 0.02em;}
.app-brand img { width: 2.25rem; height: 2.25rem;}
.app-back { font-size: 0.86rem; color: var(--muted);}
.app-back:hover { color: var(--red-bright);}
.app-brand span { font-size: clamp(0.92rem, 3.6vw, 1rem);}
.app-main { flex: 1; width: min(42rem, calc(100% - max(1.25rem, env(safe-area-inset-left, 0px)) - max(1.25rem, env(safe-area-inset-right, 0px)))); margin: 0 auto; padding: clamp(1.35rem, 5vw, 2rem) 0 clamp(1.75rem, 6vw, 2.5rem);}
.app-hero { text-align: center; margin-bottom: 1.75rem;}
.app-hero__logo { width: 5.5rem; height: 5.5rem; margin: 0 auto 1rem; display: block;}
.app-hero__title { margin: 0 0 0.45rem; font-family: var(--font-display); font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.12;}
.app-hero__lead { margin: 0; color: var(--muted); font-size: 0.95rem;}
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem;}
.service-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.05rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); min-height: 44px; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;}
.service-card:hover { border-color: rgba(225, 24, 47, 0.55); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(225, 24, 47, 0.12);}
.service-card__icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border-radius: 12px; background: rgba(61, 143, 217, 0.16); color: #3d8fd9;}
.service-card--collection .service-card__icon { background: rgba(212, 163, 79, 0.18); color: #d4a34f;}
.service-card--sitting-in .service-card__icon { background: rgba(142, 58, 168, 0.18); color: #8e3aa8;}
.service-card__copy { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0;}
.service-card__name { font-weight: 700; font-size: 1.05rem;}
.service-card__meta { color: var(--muted); font-size: 0.86rem;}
.app-note { margin: 1.15rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted);}
.order-placeholder { margin-top: 1.5rem; padding: 1.1rem 1rem; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); font-size: 0.92rem;}
.order-placeholder strong { color: var(--text);}
.theme-toggle { border: 1px solid var(--border); background: transparent; color: var(--text); width: 2.35rem; height: 2.35rem; border-radius: 999px; display: grid; place-items: center; cursor: pointer;}
.theme-toggle:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px;}
.theme-icon-moon { display: none;}
html[data-theme="light"] .theme-icon-sun { display: none;}
html[data-theme="light"] .theme-icon-moon { display: block;}
.app-hero__eyebrow { margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);}
.service-grid--two { grid-template-columns: 1fr;}
.service-card--menu .service-card__icon { background: rgba(184, 13, 31, 0.16); color: var(--red-bright);}
.service-card--know .service-card__icon { background: rgba(46, 160, 140, 0.16); color: #2ea08c;}
.order-panel { margin-top: 0.25rem;}
.menu-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.85rem;}
.menu-filter { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 999px; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;}
.menu-filter.is-active { border-color: rgba(225, 24, 47, 0.55); color: var(--text); background: rgba(225, 24, 47, 0.1);}
.menu-list { display: grid; gap: 0.55rem;}
.menu-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.85rem; width: 100%; text-align: left; padding: 0.9rem 0.95rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font: inherit;}
.menu-item.is-in-basket { border-color: rgba(225, 24, 47, 0.45);}
.menu-item__copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1;}
.menu-item__name { font-weight: 700; font-size: 0.98rem;}
.menu-item__desc { color: var(--muted); font-size: 0.8rem;}
.menu-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; flex: 0 0 auto;}
.menu-item__price { font-weight: 700; font-size: 0.92rem; color: var(--red-bright);}
.menu-group { margin: 0.85rem 0 0.35rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);}
.menu-group:first-child { margin-top: 0;}
.qty-add,.qty-btn { border: 0; font: inherit; cursor: pointer;}
.qty-add { min-width: 4.25rem; min-height: 2.15rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 0.82rem;}
.qty-add:hover { background: var(--red-bright);}
.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--bg);}
.qty-btn { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; background: transparent; color: var(--text); font-size: 1.1rem; font-weight: 600; line-height: 1;}
.qty-btn:hover { background: rgba(225, 24, 47, 0.12); color: var(--red-bright);}
.qty-val { min-width: 1.5rem; text-align: center; font-weight: 700; font-size: 0.9rem;}
.cart-line--edit { align-items: center; gap: 0.75rem;}
.cart-line__copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1;}
.cart-line__name { font-weight: 600; font-size: 0.9rem;}
.cart-line__price { color: var(--muted); font-size: 0.82rem;}
.know-form { display: grid; gap: 0.65rem;}
.know-label { font-weight: 600; font-size: 0.92rem;}
.know-input { width: 100%; resize: vertical; min-height: 5.5rem; padding: 0.85rem 0.95rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; line-height: 1.45;}
.know-input:focus { outline: 2px solid rgba(225, 24, 47, 0.45); outline-offset: 1px;}
.know-submit,.know-add-all,.cart-bar__btn,.cart-dialog__close,.cart-dialog__clear,.cart-dialog__checkout,.know-match__add { border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;}
.know-submit,.know-add-all { justify-self: start; padding: 0.7rem 1.15rem; background: var(--red); color: #fff;}
.know-submit:hover,.know-add-all:hover { background: var(--red-bright);}
.know-results { margin-top: 1.1rem; display: grid; gap: 0.75rem;}
.know-status { margin: 0; color: var(--muted); font-size: 0.9rem;}
.know-match-list { display: grid; gap: 0.55rem;}
.know-match { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 0.95rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card);}
.know-match__copy { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1;}
.know-match__name { font-weight: 700;}
.know-match__meta { color: var(--muted); font-size: 0.8rem;}
.cart-bar { position: sticky; bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)); margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card);}
.cart-bar__copy { display: flex; flex-direction: column; gap: 0.05rem; font-size: 0.9rem;}
.cart-bar__btn { padding: 0.55rem 0.95rem; background: var(--red); color: #fff;}
.cart-dialog { border: 1px solid var(--border); border-radius: 16px; padding: 0; background: var(--card); color: var(--text); width: min(24rem, calc(100% - 2rem));}
.cart-dialog::backdrop { background: rgba(0, 0, 0, 0.55);}
.cart-dialog__inner { margin: 0; padding: 1.15rem 1.1rem 1.2rem;}
.cart-dialog__title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.35rem;}
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem;}
.cart-line { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem;}
.cart-dialog__total { margin: 0.9rem 0 0.35rem; display: flex; justify-content: space-between;}
.cart-dialog__note { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.8rem;}
.cart-bar__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end;}
.cart-bar__btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border);}
.cart-dialog__checkout { border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; padding: 0.5rem 0.9rem; background: var(--red); color: #fff;}
.cart-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: flex-end;}
.checkout-block { margin-top: 1.25rem; padding: 1.1rem 1.05rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card);}
.checkout-heading { margin: 0 0 0.65rem; font-family: var(--font-display); font-size: 1.25rem;}
.checkout-intro { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.9rem;}
.checkout-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem;}
.checkout-line { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.92rem;}
.checkout-total,.checkout-ref { margin: 0.75rem 0 0; display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.95rem;}
.checkout-ref { color: var(--muted); font-size: 0.88rem;}
.pay-options { display: grid; gap: 0.55rem;}
.pay-option { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 0.9rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;}
.pay-option:has(input:checked) { border-color: rgba(225, 24, 47, 0.55); background: rgba(225, 24, 47, 0.06);}
.pay-option input { margin-top: 0.2rem;}
.pay-option__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;}
.pay-option__name { font-weight: 700;}
.pay-option__fee { color: var(--muted); font-size: 0.82rem;}
.pay-detail { margin-top: 0.85rem; padding: 0.85rem 0.9rem; border-radius: 12px; border: 1px dashed var(--border);}
.pay-detail__summary { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--muted);}
.pay-bank { margin: 0; display: grid; gap: 0.45rem;}
.pay-bank > div { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem;}
.pay-bank dt { color: var(--muted);}
.pay-bank dd { margin: 0; font-weight: 600; text-align: right;}
.pay-hint { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--muted);}
.checkout-form { display: grid; gap: 0.75rem;}
.checkout-field { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600;}
.checkout-field input,.checkout-field textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400;}
.checkout-submit { justify-self: start; min-height: 44px; padding: 0.7rem 1.2rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer;}
.checkout-submit:disabled { opacity: 0.45; cursor: not-allowed;}
.checkout-submit--link { display: inline-flex; align-items: center; margin-top: 1rem; text-decoration: none;}
.checkout-done__lead { margin: 0 0 0.85rem; font-size: 0.95rem;}
@media (max-width: 639px) { .cart-bar { flex-direction: column; align-items: stretch; }
.cart-bar__actions { width: 100%; }
.cart-bar__actions .cart-bar__btn { flex: 1; }}
.cart-dialog__close { padding: 0.5rem 0.9rem; background: var(--red); color: #fff;}
.cart-dialog__clear { padding: 0.5rem 0.9rem; background: transparent; color: var(--muted); border: 1px solid var(--border);}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { flex-direction: column; align-items: flex-start; height: 100%; padding: 1.15rem 1rem 1.2rem; }}
@media (min-width: 768px) and (max-width: 1023px) { .app-main { width: min(36rem, calc(100% - 2.5rem)); }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { flex-direction: row; align-items: center; height: auto; }}
@media (max-width: 639px) { .app-hero__title { font-size: clamp(1.45rem, 6.5vw, 1.85rem); }
.app-hero__lead { font-size: 0.9rem; padding: 0 0.15rem; }
.service-card__meta { font-size: 0.82rem; }
.theme-toggle { min-width: 44px; min-height: 44px; }}
@media (pointer: coarse) { .service-card, .theme-toggle, .app-back, .app-brand, .menu-filter, .know-submit, .qty-add, .qty-btn, .cart-bar__btn { min-height: 44px; }
.qty-btn { width: 2.75rem; height: 2.75rem; }}12345deep-translator==1.11.4fastapi==0.116.1langdetect==1.0.9uvicorn[standard]==0.35.0streamlit>=1.28.01234567891011121314(function () { const details = document.querySelector(".nav-modules"); if (!details) return;
document.addEventListener("click", (event) => { if (!details.open) return; if (details.contains(event.target)) return; details.open = false; });
document.addEventListener("keydown", (event) => { if (event.key === "Escape") details.open = false; });})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214<!DOCTYPE html><html lang="en" data-theme="dark"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta id="meta-theme-color" name="theme-color" content="#070707"> <script> (function () { try { var k = "smos-theme"; var t = localStorage.getItem(k); var th = t === "light" ? "light" : "dark"; document.documentElement.setAttribute("data-theme", th); var meta = document.getElementById("meta-theme-color"); if (meta) meta.setAttribute("content", th === "light" ? "#f6f3ee" : "#070707"); } catch (e) { document.documentElement.setAttribute("data-theme", "dark"); } })(); </script> <title>SMOS | Smart Food Ordering System · Voice ordering in any language</title> <meta name="description" content="SMOS takes spoken or typed food orders in any language, translates them for the kitchen, and delivers them live to waiters and chefs."> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="dns-prefetch" href="https://image.pollinations.ai"> <link rel="stylesheet" href="/static/styles.css?v=0.1.5"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Great+Vibes&family=Manrope:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap" media="print" onload="this.media='all';this.onload=null"> <noscript> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Great+Vibes&family=Manrope:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap"> </noscript></head><body> <header class="site-header"> <div class="container nav-wrap"> <a class="brand" href="#order" aria-label="SMOS home"> <span class="brand-wordmark" aria-hidden="true">Smos</span> <span class="brand-sr-only">SMOS</span> </a> <nav class="nav nav-desktop" aria-label="Choose interface"> <button type="button" class="tab-btn is-active" data-view="guest">Guest</button> <button type="button" class="tab-btn" data-view="kitchen"> Kitchen & waiters <b id="new-count" class="count-badge hidden">0</b> </button> </nav> <div class="nav-actions"> <span id="connection" class="open-now-chip" role="status"><i></i> Live</span> <button type="button" class="theme-toggle" data-theme-toggle aria-label="Switch to light theme" title="Theme"> <svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="12" cy="12" r="4"/> <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/> </svg> <svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/> </svg> </button> </div> </div> </header>
<main id="order"> <section id="guest-view" class="view is-active"> <section class="hero"> <div class="hero-overlay"></div> <div class="container hero-content"> <p class="eyebrow">Table-side ordering · No app needed</p> <h1>Say what you’re <span class="hero-brand">in the mood for</span>.</h1> <p class="hero-subtext"> Speak or type naturally in your language. SMOS translates your order for the kitchen while keeping your own words on the ticket. </p> </div> </section>
<section class="section section-dark"> <div class="container guest-layout"> <div class="card order-panel accent-border"> <h2 class="form-title">Your order</h2> <p class="form-hint">Your table is identified automatically. Speak or type naturally in any language.</p>
<form id="order-form" class="reserve-form"> <div class="detected-context" aria-label="Automatically detected order context"> <span class="chip chip-static">Table <strong id="detected-table"></strong></span> <span class="chip chip-static">Language auto-detected</span> </div>
<div class="order-composer"> <label for="order-text">Describe your order</label> <textarea id="order-text" rows="5" maxlength="1500" placeholder="I’d like grilled salmon with lemon rice, no dairy…" required></textarea> <div class="composer-actions"> <button id="voice-button" class="btn btn-small voice-button" type="button"> <span class="mic" aria-hidden="true"></span> <span class="voice-label">Tap to speak</span> </button> <span id="listening-status" class="listening-status"></span> <button id="preview-button" class="btn btn-outline btn-small" type="button">Visualise dish</button> </div> </div>
<div id="translation-card" class="translation-card hidden"> <div class="translation-card__head"> <span class="eyebrow">Kitchen translation</span> <button id="speak-translation" type="button" class="link-btn" aria-label="Read translation aloud">◖)) Listen</button> </div> <p id="translated-preview"></p> </div>
<div id="form-message" class="form-message hidden" role="status"></div> <button id="submit-order" class="btn btn-block" type="submit"> <span>Send order to kitchen</span><b>→</b> </button> </form> </div>
<aside class="visual-panel"> <div class="visual-frame"> <img id="dish-image" alt="AI-generated preview of the described dish"> <div id="image-placeholder" class="image-placeholder"> <div class="plate" aria-hidden="true"><i></i></div> <h2>Your idea, plated.</h2> <p>Describe a dish and SMOS will visualise it here.</p> </div> <div id="image-loading" class="image-loading hidden"><i></i><span>Imagining your dish…</span></div> <span class="frame-label">AI food visualisation</span> </div> <div class="chips-row"> <span class="chip chip-static">Google-powered translation</span> <span class="chip chip-static">Optimised Turkish ↔ English</span> <span class="chip chip-static">Live kitchen delivery</span> </div> </aside> </div> </section> </section>
<section id="kitchen-view" class="view"> <section class="section"> <div class="container"> <div class="dashboard-header"> <div> <p class="eyebrow">Live service dashboard</p> <h2 class="dashboard-title">Kitchen pass</h2> <p class="section-lede">New guest orders arrive here instantly, in your chosen language.</p> </div> <div class="dashboard-controls"> <label> <span>Display orders in</span> <select id="kitchen-language"></select> </label> <label class="closed-toggle"> <input id="include-closed" type="checkbox" checked> <span>Show completed</span> </label> </div> </div>
<div class="status-summary" id="status-summary"></div> <div id="orders-grid" class="orders-grid"></div> <div id="empty-orders" class="empty-orders hidden"> <span aria-hidden="true">✓</span> <h3>The pass is clear</h3> <p>New orders will appear here automatically.</p> </div> </div> </section> </section> </main>
<footer class="site-footer"> <div class="container footer-wrap"> <span>SMOS <b id="version"></b> · Smart Food Ordering System</span> <span>Voice availability depends on browser support. Please confirm allergies with staff.</span> </div> </footer>
<template id="order-template"> <article class="order-card card"> <div class="order-card-head"> <div> <span class="order-number"></span> <time></time> </div> <span class="status-pill"></span> </div> <div class="order-meta"> <span class="chip chip-static table-value"></span> </div> <p class="order-copy"></p> <details> <summary>Original guest wording</summary> <p class="original-copy"></p> </details> <div class="order-actions"> <button class="link-btn speak-order" type="button">◖)) Listen</button> <select class="status-select" aria-label="Update order status"> <option value="new">New</option> <option value="accepted">Accepted</option> <option value="preparing">Preparing</option> <option value="ready">Ready</option> <option value="served">Served</option> <option value="cancelled">Cancelled</option> </select> </div> </article> </template>
<script src="/static/app.js?v=0.1.5" defer></script></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546#!/usr/bin/env python3"""SMOS — same static front end as the Hugging Face Space."""
from __future__ import annotations
from pathlib import Path
import streamlit as st
from streamlit_static import render_live_site
ROOT = Path(__file__).resolve().parent# Prefer HF-style root index.html; fall back to static/index.htmlHTML = ROOT / "index.html"if not HTML.is_file(): HTML = ROOT / "static" / "index.html"
st.set_page_config( page_title="SMOS · Deborah Akuoko Minka", page_icon="🍽️", layout="wide", initial_sidebar_state="collapsed",)
ABOUT = """**SMOS** takes spoken or typed food orders across languages and passes them into a kitchen workflow.
- **Source (GitLab):** [gitlab.com/2000pd3rvr/SMOS](https://gitlab.com/2000pd3rvr/SMOS)- **GitHub mirror (Streamlit deploy):** [github.com/2000pd3rvr/SMOS](https://github.com/2000pd3rvr/SMOS)- **Also on Hugging Face:** [0001AMA/SMOS](https://huggingface.co/spaces/0001AMA/SMOS)- **Author:** Deborah Akuoko Minka / Deborah Akuoko-Minka- [Research site](https://deborahakuokominka.wordpress.com/) · [GitLab](https://gitlab.com/2000pd3rvr) · [ORCID](https://orcid.org/0009-0008-6219-154X) · [Streamlit apps](https://streamlit-apps-hub.streamlit.app/)"""
if not HTML.is_file(): st.error("SMOS UI files are missing from this deployment.") st.markdown(ABOUT)else: render_live_site( HTML, height=1100, about_title="About SMOS", about_md=ABOUT, site_root=ROOT, asset_cdn="https://cdn.jsdelivr.net/gh/2000pd3rvr/SMOS@main", )123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494#!/usr/bin/env python3"""Serve a local static site as the live Streamlit app UI (HF Space–style).
Performance rules: - Inline only tiny local assets (≤8KB). Larger files load from jsDelivr/GitHub CDN. - Prefer Pexels CDN for known video IDs; shrink remote gallery images. - Keep CSS/JS inlined to avoid extra RTTs inside the Streamlit iframe."""
from __future__ import annotations
import base64import jsonimport mimetypesimport refrom pathlib import Pathfrom urllib.parse import parse_qsl, unquote, urlencode, urlparse, urlunparse
_LINK_CSS = re.compile( r'<link[^>]+rel=["\']stylesheet["\'][^>]*href=["\']([^"\']+)["\'][^>]*/?>', re.I,)_MODULE_PRELOAD = re.compile( r'<link[^>]+rel=["\']modulepreload["\'][^>]*/?>', re.I,)_MANIFEST_OR_SW = re.compile( r'<link[^>]+rel=["\']manifest["\'][^>]*/?>|' r'<script[^>]+id=["\']vite-plugin-pwa:register-sw["\'][^>]*>\s*</script>|' r'<script[^>]+src=["\'][^"\']*registerSW\.js["\'][^>]*>\s*</script>', re.I,)_SCRIPT_SRC = re.compile( r'<script([^>]*?)src=["\']([^"\']+)["\']([^>]*)>\s*</script>', re.I,)_ATTR_URL = re.compile( r'''((?:src|href|poster|data-src)=["'])([^"']+)(["'])''', re.I,)_JS_FROM = re.compile( r'''(?:from\s*|import\s*\(\s*|import\s+)["']([^"']+)["']''')_HTML_HREF = re.compile( r'''href=(["'])([^"']+\.html(?:#[^"']*)?)\1''', re.I,)
# Prefer 720p/SD Pexels CDN over Hugging Face dataset redirects (multi-second TTFB)._PEXELS_VIDEO_CDN: dict[str, str] = { "3680687": "https://videos.pexels.com/video-files/3680687/3680687-sd_960_540_25fps.mp4", "4109542": "https://videos.pexels.com/video-files/4109542/4109542-hd_1280_720_25fps.mp4", "4519062": "https://videos.pexels.com/video-files/4519062/4519062-hd_1280_720_25fps.mp4", "6288304": "https://videos.pexels.com/video-files/6288304/6288304-sd_960_540_25fps.mp4", "6529453": "https://videos.pexels.com/video-files/6529453/6529453-hd_1280_720_30fps.mp4", "7015435": "https://videos.pexels.com/video-files/7015435/7015435-sd_960_540_30fps.mp4", "8523306": "https://videos.pexels.com/video-files/8523306/8523306-hd_1280_720_30fps.mp4", "8964522": "https://videos.pexels.com/video-files/8964522/8964522-hd_1280_720_25fps.mp4", "12769418": "https://videos.pexels.com/video-files/12769418/12769418-hd_1280_720_25fps.mp4", # careTalk hero playlist — 720p instead of 1080p "4053216": "https://videos.pexels.com/video-files/4053216/4053216-hd_1280_720_25fps.mp4", "5941023": "https://videos.pexels.com/video-files/5941023/5941023-hd_1280_720_25fps.mp4",}
_INLINE_MAX = 8_192 # bytes — icons/SVG only_FAST_HEAD = """<link rel="preconnect" href="https://images.pexels.com" crossorigin><link rel="preconnect" href="https://videos.pexels.com" crossorigin><link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin><link rel="dns-prefetch" href="https://huggingface.co"><style id="st-fast-media"> img,video{content-visibility:auto;contain-intrinsic-size:640px 400px} img{background:transparent} video{background:#111} img[loading="lazy"],video[preload="none"]{content-visibility:auto}</style>"""
def _data_uri(path: Path) -> str: mime = mimetypes.guess_type(str(path))[0] or "application/octet-stream" b64 = base64.b64encode(path.read_bytes()).decode("ascii") return f"data:{mime};base64,{b64}"
def _strip_query(ref: str) -> str: return unquote(ref.split("?")[0].split("#")[0].strip())
def _resolve(base: Path, ref: str, site_root: Path | None = None) -> Path | None: ref = _strip_query(ref) if not ref or ref.startswith(("http://", "https://", "data:", "mailto:", "tel:", "//", "blob:")): return None root = (site_root or base).resolve() if ref.startswith("/"): cand = (root / ref.lstrip("/")).resolve() else: cand = (base / ref).resolve() try: cand.relative_to(root) except ValueError: return None return cand if cand.is_file() else None
def _cdn_url(path: Path, site_root: Path, asset_cdn: str | None) -> str | None: if not asset_cdn: return None try: rel = path.resolve().relative_to(site_root.resolve()).as_posix() except ValueError: return None return asset_cdn.rstrip("/") + "/" + rel.lstrip("/")
def _collect_modules(entry: Path) -> dict[Path, str]: paths: list[Path] = [] seen: set[Path] = set() queue = [entry.resolve()] while queue: path = queue.pop() if path in seen or not path.is_file(): continue seen.add(path) paths.append(path) text = path.read_text(encoding="utf-8", errors="replace") for m in _JS_FROM.finditer(text): spec = m.group(1) if spec.startswith(("http://", "https://", "data:", "virtual:")): continue dep = (path.parent / _strip_query(spec)).resolve() if dep.is_file() and dep not in seen: queue.append(dep)
by_name: dict[str, list[Path]] = {} for p in paths: by_name.setdefault(p.name, []).append(p)
out: dict[Path, str] = {} for p in paths: if len(by_name[p.name]) == 1: out[p] = f"virtual:{p.name}" else: out[p] = f"virtual:{p.as_posix()}" return out
def _rewrite_module_imports(text: str, path: Path, id_for: dict[Path, str]) -> str: def repl(m: re.Match[str]) -> str: spec = m.group(1) if spec.startswith(("http://", "https://", "data:", "virtual:")): return m.group(0) dep = (path.parent / _strip_query(spec)).resolve() vid = id_for.get(dep) if not vid: return m.group(0) return m.group(0).replace(spec, vid, 1)
return _JS_FROM.sub(repl, text)
def _build_importmap_and_entries( html: str, base: Path, site_root: Path | None,) -> str: entries: list[Path] = []
def find_modules(match: re.Match[str]) -> str: pre, src, post = match.group(1), match.group(2), match.group(3) attrs = f"{pre} {post}".lower() path = _resolve(base, src, site_root) if not path: return match.group(0) if "module" in attrs: entries.append(path) return f"<!-- module entry: {src} -->" js = path.read_text(encoding="utf-8", errors="replace") return f"<script{pre}{post}>\n{js}\n</script>"
html = _SCRIPT_SRC.sub(find_modules, html) if not entries: return html
id_for: dict[Path, str] = {} for entry in entries: id_for.update(_collect_modules(entry))
imports: dict[str, str] = {} for path, vid in id_for.items(): rewritten = _rewrite_module_imports( path.read_text(encoding="utf-8", errors="replace"), path, id_for ) b64 = base64.b64encode(rewritten.encode("utf-8")).decode("ascii") imports[vid] = f"data:text/javascript;base64,{b64}"
blocks = [ f'<script type="importmap">{json.dumps({"imports": imports})}</script>' ] for entry in entries: blocks.append(f'<script type="module">import "{id_for[entry.resolve()]}";</script>')
injection = "\n".join(blocks) if re.search(r"</head>", html, re.I): return re.sub(r"</head>", injection + "\n</head>", html, count=1, flags=re.I) return injection + html
def _inject_page_nav(html: str, routes: dict[str, str]) -> str: if not routes: return html
home = routes.get("index.html", "home")
def page_for(href: str) -> str | None: path_part = href.split("#", 1)[0] name = Path(urlparse(path_part).path).name if not name or name in (".", "./"): name = "index.html" return routes.get(name)
def repl_href(m: re.Match[str]) -> str: quote, href = m.group(1), m.group(2) page = page_for(href) if not page: return m.group(0) frag = href.split("#", 1)[1] if "#" in href else "" q = f"?page={page}" + (f"#{frag}" if frag else "") return f'href={quote}{q}{quote} target="_top"'
html = _HTML_HREF.sub(repl_href, html) html = re.sub( r'''href=(["'])\./\1''', rf'href=\1?page={home}\1 target="_top"', html, ) html = re.sub( r'''href=(["'])\./#(.*?)\1''', rf'href=\1?page={home}#\2\1 target="_top"', html, ) return html
def _optimize_remote_url(url: str) -> str: """Shrink gallery images and swap HF-hosted Pexels clips onto videos.pexels.com.""" if not url or url.startswith("data:"): return url
# HF / local filenames that embed a Pexels id m = re.search(r"pexels-video-(\d+)\.mp4", url, re.I) if not m: m = re.search(r"/videos/(?:hero/)?(\d+)\.mp4", url, re.I) if not m: m = re.search(r"video-files/(\d+)/", url, re.I) if m: pid = m.group(1) mapped = _PEXELS_VIDEO_CDN.get(pid) if mapped: return mapped # Prefer 720p over 1080p when already on Pexels CDN url = re.sub( rf"{pid}-hd_1920_1080_\d+fps\.mp4", f"{pid}-hd_1280_720_25fps.mp4", url, )
if "images.pexels.com" in url.lower(): parsed = urlparse(url) q = dict(parse_qsl(parsed.query, keep_blank_values=True)) # Gallery thumbs: small + compressed. Keep auto=compress. w = int(q.get("w") or "0") or 800 q["auto"] = "compress" q["cs"] = "tinysrgb" q["w"] = str(min(w, 480)) # Drop huge intrinsic hints that fight responsive layouts return urlunparse(parsed._replace(query=urlencode(q)))
return url
def _speed_tune_html(html: str) -> str: def repl(m: re.Match[str]) -> str: pre, url, post = m.group(1), m.group(2), m.group(3) return f"{pre}{_optimize_remote_url(url)}{post}"
html = _ATTR_URL.sub(repl, html) # Also rewrite playlist JSON / inline strings that hold video URLs for pid, mapped in _PEXELS_VIDEO_CDN.items(): html = re.sub( rf"https://[^\"'\s]*pexels-video-{pid}\.mp4", mapped, html, flags=re.I, ) html = re.sub( rf"https://videos\.pexels\.com/video-files/{pid}/{pid}-hd_1920_1080_\d+fps\.mp4", mapped, html, flags=re.I, ) return html
def build_standalone_html( html_path: Path, *, site_root: Path | None = None, page_routes: dict[str, str] | None = None, asset_cdn: str | None = None,) -> str: """Inline local CSS/JS; load images/video from CDN; preserve Vite ES modules.""" base = html_path.parent root = (site_root or base).resolve() html = html_path.read_text(encoding="utf-8", errors="replace")
html = _MODULE_PRELOAD.sub("", html) html = _MANIFEST_OR_SW.sub("", html) html = _speed_tune_html(html)
def inject_css(match: re.Match[str]) -> str: href = match.group(1) path = _resolve(base, href, root) if not path: return match.group(0) css = path.read_text(encoding="utf-8", errors="replace")
def css_url(m: re.Match[str]) -> str: u = m.group(1).strip(" \"'") p = _resolve(path.parent, u, root) if not p: return m.group(0) if p.stat().st_size <= _INLINE_MAX: return f"url({_data_uri(p)})" cdn = _cdn_url(p, root, asset_cdn) if cdn: return f"url({cdn})" return m.group(0)
css = re.sub(r"url\(([^)]+)\)", css_url, css) return f"<style>\n{css}\n</style>"
html = _LINK_CSS.sub(inject_css, html) html = _build_importmap_and_entries(html, base, root)
def inject_asset(match: re.Match[str]) -> str: pre, src, post = match.group(1), match.group(2), match.group(3) # Remote URLs already optimized above if src.startswith(("http://", "https://", "data:", "//")): return match.group(0) path = _resolve(base, src, root) if not path: return match.group(0) if path.suffix.lower() in {".css", ".js", ".mjs"}: return match.group(0) size = path.stat().st_size if size <= _INLINE_MAX: return f"{pre}{_data_uri(path)}{post}" cdn = _cdn_url(path, root, asset_cdn) if cdn: return f"{pre}{cdn}{post}" # Last resort: skip huge base64 (keeps first paint fast; asset may 404 in iframe) if size > _INLINE_MAX: return match.group(0) return f"{pre}{_data_uri(path)}{post}"
html = _ATTR_URL.sub(inject_asset, html)
if page_routes: html = _inject_page_nav(html, page_routes)
# Inject fast-media head once if "st-fast-media" not in html: if re.search(r"<head[^>]*>", html, re.I): html = re.sub(r"<head([^>]*)>", r"<head\1>" + _FAST_HEAD, html, count=1, flags=re.I) else: html = _FAST_HEAD + html
return html
def hide_streamlit_chrome() -> None: import streamlit as st
st.markdown( """ <style> [data-testid="stHeader"] { display: none; } [data-testid="stToolbar"] { display: none; } [data-testid="stSidebar"] { display: none; } .block-container { padding: 0 !important; max-width: 100% !important; } footer { visibility: hidden; } #MainMenu { visibility: hidden; } </style> """, unsafe_allow_html=True, )
def _query_page(default: str) -> str: """Read ?page= across Streamlit query-param API variants.""" import streamlit as st
raw = None try: qp = st.query_params raw = qp.get("page", default) if hasattr(qp, "get") else qp["page"] except Exception: try: raw = (st.experimental_get_query_params() or {}).get("page", [default]) except Exception: raw = default if isinstance(raw, (list, tuple)): raw = raw[0] if raw else default page = str(raw or default).strip().lower() return page or default
def _embed_html(html: str, height: int) -> None: """Embed HTML in a way that works on both older and newer Streamlit Cloud.""" import streamlit as st
# Streamlit ≥1.56 prefers st.iframe for HTML strings (no scrolling= kwarg). if hasattr(st, "iframe"): try: st.iframe(html, height=int(height), width="stretch") return except TypeError: try: st.iframe(html, height=int(height)) return except Exception: pass
import streamlit.components.v1 as components
try: components.html(html, height=int(height), scrolling=True) except TypeError: # Newer wrappers may reject scrolling= components.html(html, height=int(height))
def render_live_site( html_path: Path, *, height: int = 920, about_title: str = "About this app", about_md: str = "", site_root: Path | None = None, page_routes: dict[str, str] | None = None, asset_cdn: str | None = None, **_extra: object,) -> None: import streamlit as st
hide_streamlit_chrome() html = build_standalone_html( html_path, site_root=site_root, page_routes=page_routes, asset_cdn=asset_cdn, ) _embed_html(html, height) if about_md: with st.expander(about_title, expanded=False): st.markdown(about_md)
def render_multipage_site( pages: dict[str, Path], *, default: str = "home", height: int = 1100, about_title: str = "About this app", about_md: str = "", site_root: Path | None = None, asset_cdn: str | None = None, **_extra: object,) -> None: """pages: query key -> html path (home->index.html, app->app.html).""" page = _query_page(default) if page not in pages: page = default routes = {path.name: key for key, path in pages.items()} render_live_site( pages[page], height=height, about_title=about_title, about_md=about_md, site_root=site_root, page_routes=routes, asset_cdn=asset_cdn, )123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298:root { color-scheme: dark; --bg: #0c0f0e; --bg-elev: #141a18; --text: #e8eee9; --muted: #8a968e; --accent: #c4f082; --accent-ink: #142010; --line: #24302a; --font: "DM Sans", system-ui, sans-serif; --display: "Instrument Serif", Georgia, serif;}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%;}
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5;}
.bg-grid { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(196, 240, 130, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 240, 130, 0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);}
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); background: rgba(12, 15, 14, 0.92); backdrop-filter: blur(10px);}
.logo { font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem;}
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.92rem; color: var(--muted);}
.site-nav > a:hover,.nav-modules summary:hover { color: var(--text);}
.nav-modules { position: relative;}
.nav-modules summary { list-style: none; cursor: pointer; color: var(--muted);}
.nav-modules summary::-webkit-details-marker { display: none; }
.nav-modules summary::after { content: " ▾"; font-size: 0.75em;}
.nav-modules[open] summary { color: var(--accent);}
.nav-modules ul { position: absolute; right: 0; top: calc(100% + 0.55rem); margin: 0; padding: 0.4rem; list-style: none; min-width: 14rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev);}
.nav-modules a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.65rem 0.75rem; border-radius: 8px;}
.nav-modules a:hover { background: rgba(196, 240, 130, 0.08);}
.mod-id { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);}
.mod-name { font-size: 0.9rem; color: var(--text);}
main { position: relative; width: min(52rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 0 4rem;}
.hero .eyebrow { margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);}
.hero h1 { margin: 0 0 1rem; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em;}
.hero h1 em { font-style: italic; color: var(--accent);}
.lede { margin: 0 0 1.75rem; max-width: 36rem; color: var(--muted); font-size: 1.05rem;}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem;}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.65rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; border: 1px solid transparent;}
.btn-primary { background: var(--accent); color: var(--accent-ink);}
.btn-ghost { border-color: var(--line); color: var(--text);}
.btn-ghost:hover { border-color: var(--accent);}
.section { margin-top: clamp(3rem, 10vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line);}
.section h2 { margin: 0 0 0.5rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.35rem);}
.section-lead { margin: 0 0 1.25rem; color: var(--muted);}
.feature-grid { display: grid; gap: 1rem; margin-top: 1.5rem;}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
.feature-grid article { padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev);}
.feature-grid h3 { margin: 0 0 0.4rem; font-size: 1rem;}
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.92rem;}
.module-list { list-style: none; margin: 0; padding: 0;}
.module-card { display: grid; gap: 0.25rem; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); transition: border-color 160ms ease;}
.module-card:hover { border-color: rgba(196, 240, 130, 0.55);}
.module-card__id { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);}
.module-card__title { font-size: 1.2rem; font-weight: 600;}
.module-card__meta { color: var(--muted); font-size: 0.88rem;}
.site-footer { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: space-between; padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem; border-top: 1px solid var(--line); font-size: 0.85rem;}
.muted { color: var(--muted); }DockerfileAdded+19
README.md+93-10
STREAMLIT.mdAdded+25
app.pyAdded+475
index.html+91
modules/SmOS_CC/app.jsAdded+648
modules/SmOS_CC/assets/logo-c.svgAdded
modules/SmOS_CC/checkout.htmlAdded+102
modules/SmOS_CC/index.htmlAdded+114
modules/SmOS_CC/menu-data.jsAdded+232
modules/SmOS_CC/order.htmlAdded+101
modules/SmOS_CC/path.htmlAdded+90
modules/SmOS_CC/payments-config.jsAdded+34
modules/SmOS_CC/styles.cssAdded+930
requirements.txtAdded+5
site.jsAdded+14
static/index.htmlAdded+214
streamlit_app.pyAdded+46
streamlit_static.pyAdded+494
styles.cssAdded+298