Documentation

Restaurant Introduction (2023-06-04)

Single-page landing site for a vegetarian brunch restaurant (耕園7293 / G-Burger) with hero, featured dishes, menu cards and contact footer.

Overview

Item Value
Created 2023-06-04
Category Business Examples
HTML files index.html
Source target/20230604

Live Preview

Open the example in a new tab

Page Sections

Section Description
Fixed nav Brand 耕園7293 with tagline, 4 tab items (關於耕園 / 熱門介紹 / 店長推薦 / 聯絡我們) and a hamburger button for mobile.
Hero (.top) Headline 素食也能吃得精彩, intro text, Uber Eats order button, burger image, and 4 tiles each cross-fading 5 dish photos.
Featured dishes (.hot) Banner image followed by 6 numbered glass cards (01-06) describing dishes, each with LEARN MORE linking to Instagram posts.
Manager's picks (.menu) 8 menu cards with photo, dish name, price and an order button opening Uber Eats.
Contact (.contact) Image, newsletter email input (no handler), Google Maps address link, copyright, and phone / Facebook / Instagram icons.

Interactions

Dependencies

Name Version Source
Font Awesome Free 6.5.2 https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css
PDRenderKit 1.0.0 https://cdn.jsdelivr.net/npm/pdrenderkit@1.0.0/dist/PDRenderKit.js
Google Analytics (gtag.js) - https://www.googletagmanager.com/gtag/js?id=G-L5VYEZPVXX
Noto Sans TC (font-family only, not loaded by the page) - none

Styling

Item Value
SCSS entry sass/index.scss
Output CSS css/index.css
Partials _nav.scss, _top.scss, _hot.scss, _menu.scss

index.scss holds reset, :root vars (--max-width 1024px, --col-sys #FF6B18) and the contact block; partials are @imported nested inside body selectors: _nav (fixed bar, sel-based active tab, mobile .show overlay), _top (hero, rotating bg keyframes, 25s cross-fade tiles), _hot (numbered glass cards via ::before), _menu (menu card grid with hover).

cd target/20230604
npx sass sass/index.scss css/index.css --no-source-map || exit 1

Techniques

External Assets

中文