A dark one-page website for a chef-led bistro, lit by its own stove: turn the knob to fire the pan, and each section's order ticket slides along a steel pass rail.
React + HTML
$69
Địa chỉ trang: /
Xem thêm bên dưới ↓
Tích hợp sẵn
Bạn nhận được
Chỉ tốiLàm cho trang nền tối
Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
Package…
Dung lượng mã…
Tiết kiệm pin30 fps, nghỉ khi đứng yên
Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
Giảm chuyển độngÊm dịu cho người có yêu cầu
Được kiểm tra ở mỗi thay đổi
Kiểm tra kiểuTypeScript strict
Lint và định dạngESLint · Prettier
Test và buildẢnh chụp sáng và tối
Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
Template này có gì không ổn? Gửi góp ý ›
bistro-emberHTML
index.htmlpageThe page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
book.csssectionBooking: the form or, once sent, the booking printed as a ticket on the rail, beside the other ways to reach us.
book.jssectionThe booking form: the guest counter, each required field's check, sending with send.js, then the printed ticket or the couldn't-book line.
chef.csssectionThe chef: her story, her rule in big type, her signature drawn in, three numbers and her knife roll.
footer.csssectionThe footer: the name set across the page, opening hours, address, links and the legal line.
hero.csssectionThe first screen: the headline, the two actions and the pan on the gas, with the knob that sets its heat.
hero.jssectionThe stove knob: a slider with four settings you turn by dragging, tapping or the arrow keys; it sets the hero's heat. Also rests your background's drift off screen.
kitchen.csssectionThe kitchen: the four stations a plate crosses, lit one after the other along a heat line.
menu.csssectionThe menu: three course tabs whose dishes pour in with copper leader lines, beside the wood oven and its heat.
menu.jssectionThe menu's course tabs: a click or the arrow, Home and End keys show a course, and its dishes pour in again.
nav.csssectionThe top bar: logo, section links and the booking button; a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: the button opens and closes it, Escape and a link close it.
reviews.csssectionReviews: one press line set big, the guest score counted up and two guests in their own words.
signatures.csssectionThe three signature dishes: plates drawn from above that build up part by part as they come into view.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (Chef, Menu, Reviews).
motion.csspartThe page's motion: the hero's heat and toss, the pass rail tickets, reveals and the drawn kitchen at work. Every animation and transition sits in the no-preference block.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.bistroEmber. Also draws in every [data-reveal] block.
page.csspartWhat every section shares: the reset, the page column, type, section titles, the two buttons and the focus ring.
pass-ticket.csspartThe page motif: the steel pass rail each section opens with, and the order ticket that hangs on it.
index.html
The page and all its text, one marked block per section.
Đang tải…
Phù hợp cho
Chef-led bistros, grill houses and small restaurants with an open kitchen: the chef, the kitchen, signature dishes, menu and bookings.
Cách hoạt động
Turn the stove knob to heat the pan until it tosses. As you scroll, order tickets slide along the rail and plates build up.
Cách dùng
Mở index.html, hoặc đặt thư mục lên bất kỳ máy chủ tĩnh nào. Nội dung chữ nằm trong index.html, màu và font trong theme.css, hàm gửi của biểu mẫu trong send.js. Phần Plain HTML của README.md có phần còn lại.