A sunlit one-page website for a vacation villa rental company: a drawn villa over its infinity pool, awnings that unroll down the page, and a wall of shuttered windows, one per summer week, to pick a free week from.
React + HTML
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Clair uniquementConçu pour une page claire
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce template ? Envoyer un avis ›
villa-shutterHTML
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.csssectionBook: the picked villa and week in a small open window, the booking form, and the "on hold" view.
book.jssectionThe booking form: villa, free week and guests (shared with the wall of weeks), name and email checked on send, then the "on hold" view; and the stay summary beside it.
coast.csssectionThe coast: how far the beach, harbour, islands and airport are, counting up, beside a drawn map of the bay.
details.csssectionWhat's inside: what every villa has, with drawn icons, and the three villas compared row by row.
footer.csssectionThe footer: a cobalt band with the name set large, the contact details, the section links and the legal line.
guests.csssectionGuests: the average score, then guest notes as postcards that land on the page at a tilt.
hero.csssectionThe first screen: the giant serif headline on the sky, and the drawn villa with its pool, palms and sea below.
hero.jssectionThe hero's moving sea, palms and sail: stopped while the hero is off screen, and by the pause button. Also rests your background's drift off screen.
nav.csssectionThe top bar: logo, section links and the book button, sticky at the top; a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes from its button, closes on Escape or on picking a link.
villas.csssectionThe villas: three drawn villas behind cobalt shutters that swing open as the row scrolls in.
weeks.csssectionFree weeks: the villa chips, the wall of shuttered windows (one per week) and the picked week's panel.
weeks.jssectionFree weeks: the villa chips and the wall of shuttered windows, one per week; picking a free week carries into the booking form.
partspartsWhat several sections share.
art.csspartThe drawings' colors: vs-f-<color> fills, vs-s-<color> strokes, vs-stop-<color> gradient stops, a -NN suffix for strength; all from theme.css.
count-up.jspartNumbers that count up from zero when they scroll into view: every [data-count] with its data-suffix.
motion.csspartThe page's motion and drawn textures: shutters, awning stripes, the moving sea, reveals and postcards.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.villaShutter. Also plays every [data-reveal] block as it scrolls in.
page.csspartWhat every section shares: the reset, the page column, section room and titles, the buttons, fields and the focus ring.
stay.jspartThe picked villa and week the wall of weeks, the booking form and its summary share, read from the summer's data block in index.html.
index.html
The page and all its text, one marked block per section.
Chargement…
Idéal pour
Vacation villa and cottage rental companies that rent by the week: the houses, what's inside, free weeks, the area and booking.
Fonctionnement
Card shutters swing open as you scroll. Each week is a window: taken ones stay shut, tap a free one to open it and carry it to the form.
Utilisation
Ouvrez index.html, ou placez le dossier sur n’importe quel serveur statique. Les textes sont dans index.html, les couleurs et les polices dans theme.css, la fonction d’envoi du formulaire dans send.js. La partie HTML simple de README.md donne le reste.
Aucun paquet en plusReact seulement, rien d’autre
32,2 ko gzippé · 31 fichiersLe téléchargement complet