A dark one-page website for a forest glamping site: one hand-drawn peach thread winds through the page, and a season dial recolors every drawn cabin and tree.
React + HTML
$69
عنوان الصفحة: /
المزيد بالأسفل ↓
مدمج
ما تحصل عليه
داكن فقطمصمّم لصفحة داكنة
سطح المكتب والجهاز اللوحي والهاتفالشاشات المصمّم لها
الحزم…
حجم الكود…
خفيف على البطارية30 إطارًا في الثانية، ويهدأ حين يسكن
المعالج عند السكونأقل من نصف نواة عند السكون، ≤ 30 إطارًا في الثانية
الكود
هل من خلل في هذا القالب؟ أرسل ملاحظة ›
glamping-threadHTML
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.
booking.csssectionAsk for dates: the booking form or, once sent, what happens next, beside the campfire where the thread ends.
booking.jssectionThe booking form: checks each required field, sends with send.js, then shows what happens next or the couldn't-send line.
cabins.csssectionChoose your hideaway: three cabin cards, each drawing's windows warming up as the thread arrives.
facts.csssectionThe place in one sentence: its numbers count up in turn as the thread underlines it.
footer.csssectionThe footer: the brand, two columns of links and the legal line.
forest.csssectionDays in the forest: four things to do, strung on the thread like beads.
guestbook.csssectionNotes from the guestbook: three guests' words, the thread waving above them.
hero.csssectionThe first screen: the drawn night forest with its lit cabin, the weather, the giant headline and the season dial.
hero.jssectionThe hero: depth as you scroll, the season dial that recolors every drawing, and the pause switch.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into 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.
stay.csssectionThe stay: a title the thread loops around, then three drawings and their words in alternating rows.
partspartsWhat several sections share.
art.csspartThe drawings' shared parts: tree colors by season, snow, lit windows, flames, and how they change.
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.
count-up.jspartNumbers that count up from zero when they scroll into view, each after its data-delay.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.glampingThread.
page.csspartWhat every section shares: the reset, the page column, titles, the two buttons, the focus ring, the reveals and the pause.
thread.csspartThe thread's layer over the sections it runs through: the peach line and the ember at its tip.
thread.jspartThe peach thread down the page: one line through every section's anchors, drawn as you scroll, waking each part it reaches.
index.html
The page and all its text, one marked block per section.
جارٍ التحميل…
مناسب لـ
Glamping sites, cabin rentals and small forest retreats that want a full website: the stay, cabins, activities, reviews and a booking ask.
كيف يعمل
A thread draws itself down the page as you scroll and wakes each part it reaches. The hero's dial turns the season for every drawing.
طريقة الاستخدام
افتح index.html، أو ضع المجلد على أي خادم ثابت. النصوص في index.html، والألوان والخطوط في theme.css، ودالة إرسال النموذج في send.js. وفي قسم Plain HTML من README.md بقية التفاصيل.