A dark one-page website for a fine-dining restaurant: a seven-course tasting menu served from under a silver cloche, gold deco crests and lattice, drawn food bands and a candle-lit room.
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 ý ›
dining-vesperHTML
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.
band.csssectionA full-width drawn food band between the menus; its row of food slides sideways as you scroll past.
band.jssectionThe food bands: each row slides sideways as you scroll past, canapés one way and sweets the other.
bar.csssectionThe bar: cocktails and wine, each list beside a drawing set in front of an offset gold lattice.
carte.csssectionÀ la carte: three groups of dishes in two columns, each with its dotted leaders to the price.
footer.csssectionThe footer: the monogram and name, the address and hours, the section links and the legal line.
hero.csssectionThe first screen: the arched window over a candle-lit table, the script word and the giant deco headline.
nav.csssectionThe top bar: monogram, section links and the reserve button; a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes, closes on Escape and when a link in it is picked.
reserve.csssectionReservations: the form or, once sent, what happens next, beside the address, phone and hours.
reserve.jssectionThe booking form: the guest stepper, each required field's check, sending with send.js, then what happens next or the couldn't-send line.
room.csssectionThe room: the drawn dining room whose lamps light one by one, three counted facts and three notes.
tasting.csssectionThe tasting menu: the serving stage with its cloche, the seven course tabs, the pairing switch and the price.
tasting.jssectionThe tasting menu: the course tabs lower the cloche and lift it on the next plate; the pairing switch pours the wine and counts the price.
partspartsWhat several sections share.
count-up.jspartNumbers that count up from zero the first time they scroll into view.
crest.csspartA section's crest: the gold fan, the script word, and the spaced capitals between two rules that reach the gold frame lines; and the smaller group heading.
gold-frame.csspartThe gold frame down the page: two faint lines just inside the column's edges, and their ink that grows as you scroll.
gold-frame.jspartThe gold frame down the page: its two lines ink themselves as you scroll and light each section's crest diamonds.
menu-list.csspartA printed-menu list: each dish in spaced capitals, a dotted leader running out to its price, the detail below.
motion.csspartThe page's motion: reveals, crests, lattice, the cloche, the pour, flames and lamps (the same CSS as parts/styles.tsx).
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.diningVesper; it also reveals every [data-reveal] block.
page.csspartWhat every section shares: the reset, the page column, section titles, the script word, the two buttons and the focus ring.
index.html
The page and all its text, one marked block per section.
Đang tải…
Phù hợp cho
Fine-dining and tasting-menu restaurants that want their menus, wine and cocktails, the room and table bookings on one page.
Cách hoạt động
Choose a course and a cloche covers the plate, then lifts on the next dish. The pairing switch pours wine; gold lines ink down the page.
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.