A light five-page website for a small desert hotel: pink stucco arches drawn in code, breeze-block screens that lay themselves down every page, and an hour dial that relights each room.
React + HTML
5 страниц
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только светлаяСделано для светлой страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
casa-sombraHTML
index.htmlpageThe home page and all its text, one marked block per section.
rooms.htmlpageThe rooms page and all its text, one marked block per section.
room.htmlpageThe room page and all its text, one marked block per section.
book.htmlpageThe book page and all its text, one marked block per section.
booked.htmlpageThe booked 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.
amenities.csssectionWhat the room is like: its longer description, what is in it, and the house's check-in and breakfast times.
band.csssectionThe closing call on the home page: a big line and the button to the rooms, on cactus green.
book.csssectionThe booking page: the title, the three-part form (stay, details, pretend payment) beside the stay's summary.
book.jssectionThe booking page: shows the kept stay beside the form, checks each field, sends the booking (send.js), keeps it and opens the confirmation.
booked.csssectionThe confirmation page: the thank-you line and number beside the swinging key fob, then what happens next beside the stay's summary.
booked.jssectionThe confirmation page: fills the thank-you line, the confirmation number, the key fob and the stay's summary from the kept booking.
dates.csssectionThe booking panel on a room's page: the picked dates, the month of days, guests, the price and the button on to booking.
dates.jssectionThe booking panel on a room's page: a month of days to pick check-in and check-out from (arrow keys move between days), guests, nights times the price, and the way on to booking.
day.csssectionA day at the house: four hours from sunrise to stars, each drawn at its own light, set like a timeline.
featured.csssectionThree rooms picked for the home page, with a link to all of them.
hero.csssectionThe home page's first screen: the giant headline, two ways in, and the drawn house filling the rest of the screen.
hero.jssectionDraws the hero: Casa Sombra's long pink house with nine arches, its pool and palms, the mesa behind and the morning sun rising (React: parts/courtyard-art.tsx).
house.csssectionThe house in short: a paragraph on its story and four facts that count up as they scroll into view.
notes.csssectionFrom the guest book: three short notes from guests on a plaster band.
room.csssectionThe top of a room's page (the way back, its name, price, line and facts) and the grid the views, dates and amenities sit in.
room.jssectionA room's page: finds the room the address names (room.html?room=cielo) and fills its name, price, line, facts and what is in it.
rooms.csssectionThe rooms page: the title, the sticky guests and view filter, the grid of rooms and the empty view.
rooms.jssectionThe rooms page: the guests and view filter (from the address too) and the rooms that fit it, or a way back to all when none do.
route.csssectionGetting here: the drawn road that draws itself with a car driving it as the map scrolls into view, and three ways to arrive.
views.csssectionThe room's views: three tabs, the drawing in a tall arch, and the hour dial that relights it.
views.jssectionThe signature: the room's drawn views (the window, the room, outside) in one arch, relit as you turn the hour dial by dragging or with the arrow keys.
partspartsWhat several sections share.
arch.csspartAn arched frame for a drawing, closed by a breeze-block screen whose halves slide apart as it scrolls into view (parts/arch.js adds them).
arch.jspartGives every arched frame its breeze-block screen: two halves that are shut while it waits below the fold and slide apart as it scrolls into view.
art.jspartWhat every drawing shares (the sky by the hour, cast shadows) and the desert plants, as SVG strings (React: parts/art-kit.tsx, art-plants.tsx).
backdrop.csspartThe hero's ground from a background of yours (data-follow-background).
backdrop.jspartRests your background's drift while the hero's ground is off screen.
breeze.jspartThe breeze blocks: four pierced concrete block shapes, as single blocks, a footer row or a repeating screen inside a drawing.
card.csspartThe room card: its view in an arch, name and price, line, and what it sleeps, its size and view.
card.jspartThe room card (its view drawn in an arch, name, price, line, sleeps, size and view), and the home page's featured rooms filled with it.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view.
footer.csspartThe foot of every page, at dusk: a row of breeze blocks, the hotel's address, how to reach it, the page links and the legal line.
header.csspartThe top of every page: the logo, the page links with the current one marked, the check-dates button and the phone menu.
header.jspartThe top bar's phone menu: opens and closes, closes on Escape (focus back on its button) and when a link is picked.
icons.jspartThe line icons (amenities, steppers, arrows, menu) as SVG strings, and every <span data-icon="…"> on the page drawn with them.
missing.csspartThe empty view a page shows when it has nothing to show yet: three blocks, a line on why, and the way on.
motion.jspartThe shared helpers, as the site's one global: window.casaSombra (motion checks, money, the words scripts use).
page.csspartWhat every page shares: the reset, the root, the page column, titles, buttons, fields, chips, the focus ring, the reveals and the looping animations.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
room-art.jspartThe drawn room (the bed under an arched window onto its view, lit by the hour) and its terrace outside (React: parts/room-art.tsx).
rooms.jspartThe hotel's rooms, the same as React's rooms.ts: the four views, what each amenity is called, and every room.
scenes.jspartThe four window views (mesa, courtyard, pool, roof sky) drawn at any hour, filling every <svg data-scene> on the page (React: parts/view-scene.tsx).
screen.csspartThe page-wide motif: the breeze-block screen down the left edge, each block dropping into place as the reading line reaches it (parts/screen.js).
screen.jspartThe page-wide motif: a breeze-block screen that lays itself block by block down the left edge of every page as you read.
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives the breeze-block screen, with no look of its own.
sky.jspartThe light at any hour: sky colors mixed from the theme, where the sun or moon stands, how dark it is (the same as React's parts/sky.ts).
stay.jspartThe stay being planned and the last booking, kept in the browser and shared by every page, plus the day arithmetic the date picker uses.
stepper.csspartA number picker: minus and plus buttons round the count (the guests on the rooms, room and booking pages).
stepper.jspartMakes every number picker work: minus and plus keep the count between its lowest and highest, and tell the page when it changes.
summary.csspartA stay in short (booking and confirmation pages): the room's view in a small arch, the dates, nights, guests and total.
summary.jspartFills a stay summary (the booking and confirmation pages): the room's view in an arch, the dates, nights, guests and total.
index.html
The home page and all its text, one marked block per section.
Загрузка…
Подходит для
Boutique hotels, guesthouses and small inns that want a full front end: home, rooms with filters, room pages, booking and a confirmation.
Как это работает
Turn the hour dial to see a room from dawn to stars, pick dates on the calendar, and book; the stay is kept in the browser.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.