A light six-page online store for eco home goods: drawn products on timber shelves, a jute twine that knots each section, and a bag every product flies into.
React + HTML
6ページ
$69
ページのアドレス: /
下にさらに表示 ↓
組み込み済み
付属するもの
ライトのみライトなページ向け
デスクトップ、タブレット、スマホ対応している画面
パッケージ…
コードサイズ…
バッテリーに優しい30 fps、静止時はアイドル
非表示時は停止画面外や別タブのとき
モーションの軽減設定している人には穏やかに
変更のたびに検証
型チェックTypeScript の strict モード
Lint とフォーマットESLint · Prettier
テストとビルドライトとダークのスクリーンショット
セキュリティ監査重大・高リスクの脆弱性なし
パッケージの公開期間すべてのバージョンが7日以上前に公開
アイドル時の CPU静止時は半コア未満、30 fps 以下
コード
このテンプレートに気になる点がありますか? フィードバックを送る ›
parcel-twineHTML
index.htmlpageThe home page and all its text, one marked block per section.
shop.htmlpageThe shop page and all its text, one marked block per section.
product.htmlpageThe product page and all its text, one marked block per section.
cart.htmlpageThe cart page and all its text, one marked block per section.
checkout.htmlpageThe checkout page and all its text, one marked block per section.
order-done.htmlpageThe order-done 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.
banners.csssectionTwo banners side by side: the forest refill story with a bottle and its pouch, and the materials checklist with a basket.
cart.csssectionThe cart page: the bag's lines, and the summary with the free-delivery twine, totals and the way to checkout.
cart.jssectionThe cart page: the bag's lines with their steppers and remove buttons, the free-delivery twine and the totals; or the empty bag.
checkout.csssectionThe checkout page: the form (contact, address, delivery, the pretend card) beside the order summary.
checkout.jssectionThe checkout: tidies the card fields as you type, checks every field (data-pattern / data-error), places the order with send.js and opens the thank-you page.
hero.csssectionThe home page's first screen: the giant headline, a shelf of drawn goods with a kraft tag, and four promises.
impact.csssectionThe impact band: saplings that grow on view and the running totals counting up.
newsletter.csssectionThe monthly letter sign-up: an email field that checks itself and thanks you in place.
newsletter.jssectionThe letter sign-up: checks the email (data-pattern) and thanks you in place (data-done), or says what's wrong (data-error).
order-done.csssectionThe thank-you page: the parcel that ties itself up, the order number, what happens next and the order's summary.
order-done.jssectionThe thank-you page: the last order's name, number and summary, and the parcel that ties itself up; or a nudge when there's no order yet.
product.csssectionThe product page: breadcrumb, the drawn views beside the buy box, the details tabs and the related products.
product.jssectionThe product page: draws the product named by ?item= (views, options, quantity, add to bag), its details tabs and four related products.
rooms.csssectionThe round room chips: one drawn product per room, each opening the shop on that room.
shop.csssectionThe shop page: its title, the row of room chips, the count and sort bar, and the product grid or the empty shelf.
shop.jssectionThe shop page: reads the room (?room=) and search (?q=) from the address, marks the chip, and fills the grid in the chosen order.
partspartsWhat several sections share.
art.jspartThe drawn products as SVG, by their art key (parts/products.js): fills every <svg data-art="…"> on the page.
card.csspartThe product card: drawing, name, rating, price and the add-to-bag button; and the card grids.
card.jspartThe product card (drawing, name, rating, price and the add-to-bag button that sends it flying), and every [data-cards] list filled with them.
cart.jspartThe bag: what's in it, kept in the browser and shared by every page, with the header's tote count.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the impact band).
flight.jspartThe signature move: an added product lifts off, arcs into the header's tote and the tote sways as it lands.
footer.csspartThe foot of every page: the brand, the room links, help lines and the legal line.
header.csspartThe top of every page: the green notice bar, then the logo, room links, search and the tote with the bag's count.
header.jspartThe top bar: the phone menu (opens, closes on Escape and on a link) and the search box that opens the shop filtered.
icons.jspartThe line icons and the rating stars the scripts draw (the same paths as the React parts/icons.tsx).
missing.csspartWhat a page shows when there is nothing to show: a product that isn't there, an empty bag, no order yet.
motion.jspartThe shared helpers, as the store's one global: window.parcelTwine (motion checks, money, the words scripts use).
page.csspartWhat every page shares: the reset, the column, titles, buttons, fields, the focus ring, the reveals and the drawn art.
products.jspartThe catalog: the shop's rooms and every product with its price, art and details (the same as the React products.ts).
qty.csspartThe quantity stepper: minus, the number, plus.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives the twine, with no look of its own.
shelf.csspartA timber shelf on its brackets with drawn goods standing on it; on the hero they settle onto the plank on load.
summary.csspartAn order's summary: each line with its drawing and price, then delivery and total; on the checkout and thank-you pages.
summary.jspartAn order's summary: each line with its drawing, quantity and price, then subtotal, delivery and total (checkout and thank-you pages).
twine.csspartThe twine down the left gutter of every page, and the knots it ties on the titles.
twine.jspartThe page-wide motif: a jute twine that unwinds down the page as you read and knots itself at each title.
index.html
The home page and all its text, one marked block per section.
読み込み中…
こんな用途に
Small online shops for eco home goods, gifts or homeware that want a full front end: home, shop, product, cart and checkout.
仕組み
Products settle on a shelf and fly into the tote when added; the bag is kept in the browser, and checkout checks each field.