Slice B: public homepage + denser guest site - #16
Merged
Conversation
The 2014 original had no public site; the guest site was a single menu page. Add a real restaurant homepage in the RAS identity — hero, about, live featured dishes, hours/location, and a call-to-reserve CTA — with the menu as its own page. - Homepage modeled as a `single`-kind collection `home` (editable CMS content: hero/about/hours/address/phone); site.home -> home. Theme entry-home.php renders the five sections and degrades gracefully when a field is blank. - Live featured dishes via the ADR-0027 view-data hinge: the plugin's new HomeViewData contributor returns a handful of menu items (description-first, deterministic, visitor-independent) only on the home page; the theme reads contrib['danmat.restaurant']['featured'] and escapes on render. Menu::featured() added behind the MenuSource seam. - Header nav -> Home · Menu. New homepage CSS in the existing token system, responsive at 375px. Seed creates the home collection + entry. No core change. Design + 3-hat review in docs/design/slice-b-homepage.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a real restaurant homepage to the public site (the 2014 original had none), in the uplifted RAS identity.
What
single-kindhomecollection (hero/about/hours/address/phone), editable in the CMS;site.home→home. Themeentry-home.phprenders hero → about → featured → visit → reserve, each section degrading gracefully when blank.HomeViewDataview-data contributor feeds the theme a handful of menu items (description-first, deterministic, visitor-independent, cache-safe), home page only; theme escapes on render.Menu::featured()added behind theMenuSourceseam./menu_items. New homepage CSS in the existing tokens, responsive at 375px.homecollection + entry.Not in this slice
Online ordering/payment (Slice C2) and online reservations — the CTA is a real
tel:link.Review / tests
No core change. Design + 3-hat + light security lens in
docs/design/slice-b-homepage.md.HomeViewDataTest(home-only, limit, empty) green locally; PHPStan L6 + cs-fixer clean.🤖 Generated with Claude Code