A dark five-page clothing store on indigo wool: garments drawn as chalk technical flats, a fitting rail you swing through, and a tailor's tape that measures every page.
React + HTML
5 trang
$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 ý ›
atelier-chalkHTML
index.htmlpageThe home page and all its text, one marked block per section.
collection.htmlpageThe collection 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.
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.
cart.csssectionThe cart: the bag's lines (a small drawn garment, name, dye and size, the stepper and remove, the price) beside the summary with its free-shipping tape.
cart.jssectionThe cart: each bag line drawn small with its stepper and remove, the free-shipping tape and the totals; the empty state when the bag is.
checkout.csssectionThe checkout: the form (contact, address, shipping, the pretend card) beside the order summary, and the thank-you with its parcel.
checkout.jssectionThe checkout: the order summary and shipping prices, each field checked against its data-pattern, the pretend payment, and the thank-you shown in place.
cloth.csssectionThe cloth: three pinked swatches dropped on the table with their notes, and three numbers that count up.
collection.csssectionThe collection: the filter panel (folded behind a button on narrow screens), the count and the grid of cards, or the way out when nothing matches.
collection.jssectionThe collection: reads ?type=, then filters by size and color, sorts, and fills the grid with cards (or the way out when nothing matches).
hero.csssectionThe home page's first screen: the giant headline, the fitting rail hanging from its baseline, the intro, two ways in and the front garment's tag.
hero.jssectionThe signature: the fitting rail. Hangs each garment, wires dragging, the arrows and arrow keys to the rail's physics, and writes the front garment's tag.
new-in.csssectionWhat's new: the title, a line and the link to the whole collection, then a row of four cards.
newsletter.csssectionThe workroom letters sign-up on a big swing tag hung by its string.
newsletter.jssectionThe letters sign-up: checks the email, sends it with sendSignup (send.js) and shows the thank-you in place.
product.csssectionThe product page: the drawn views and their thumbnails beside the buy box (dye swatches, size chips, size guide, add to bag), then the details folds.
product.jssectionThe product page: fills the garment from ?item=, draws its views, re-dyes it on a color pick, redraws it to the picked size with its measuring lines, and adds it to the bag.
size-guide.csssectionThe size guide dialog: its title, close button, a line on how to measure and the table, the picked size marked in tape.
size-guide.jssectionThe size guide: a native dialog with the garment's flat measurements in every size, the picked size marked; Escape closes it.
types.csssectionThe five garment types as pattern pieces: a drawn garment, a chalk grainline and the type's name and count, the first one big.
types.jssectionWrites each type tile's count ("3 pieces") from the catalog, so it follows parts/products.js.
partspartsWhat several sections share.
bag.jspartThe bag: what's in it, kept in the browser and shared by every page (the same key as the React version, so both share one bag).
card.csspartThe garment card: a pattern-paper card with the garment drawn flat, its name, price, blurb and dye dots, and the grids that hold them.
card.jspartThe garment card (drawn flat on a pattern-paper card, name, price, dyes, New tag), and every [data-cards] list filled with them.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the cloth facts).
cut-kit.jspartThe drawing kit every garment cut uses: half outlines mirrored into whole ones, scaled to a size (the same as the React parts/garment-path.ts).
cuts-lower.jspartTrousers, the pleated skirt and the button-front dress as technical flats (the same as the React parts/garment-lower.ts).
cuts-outer.jspartThe coat and the work jacket as technical flats (the same as the React parts/garment-outer.ts).
cuts-tops.jspartThe jumper, shirt and tee as technical flats (the same as the React parts/garment-tops.ts).
empty.csspartThe way back when a page has nothing to show (an empty bag, a garment that isn't there): an empty hanger, a title, a line and one link.
footer.csspartThe foot of every page: free mending, the type links, the workroom's address and the legal line, under a giant chalked wordmark.
garment.jspartDraws garments and cloth swatches as SVG (a cut in its weave and dye, front or back, flat or on its hanger), and draws them in with chalk on view.
header.csspartThe top of every page: the notice bar, the pin logo, the type links, the bag's little clothes rail and the phone menu.
header.jspartThe top bar: the phone menu (Escape closes it, focus goes back), the current page's link, and the bag's rail with one swinging hanger per garment.
measure-lines.jspartThe chalk measuring lines drawn over the garment on the product page: across the chest or waist, and down its length, in inches.
motion.jspartThe shared helpers, as the store's one global: window.atelierChalk (motion checks, money, the words scripts use, icons).
page.csspartWhat every page shares: the reset, the column, titles and their tape pins, buttons, fields, chips, the focus ring, the reveals and the chalk drawing-in.
parcel.jspartThe thank-you's drawing: a folded garment parcel stitched in chalk, tied with tailor's tape and pinned (the same as the React parts/parcel.tsx).
products.jspartThe catalog: the garment types, dyes, sizes and every garment with its price, cut, cloth and details (the same as the React products.ts).
rail-physics.jspartThe fitting rail's physics: the rail springs to a garment and every hanger swings with the rail's pull (the same as the React parts/rail-physics.ts).
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 tape measure, with no look of its own.
summary.csspartThe money box the cart and checkout share: raised cloth with a title, the subtotal, shipping and total rows, sticky beside the page on wide screens.
tape.csspartThe tape measure down the right edge of every page: yellow tape with eighth, half and whole-inch ticks, its numbers and the brass end tab.
tape.jspartThe page motif: a tailor's tape measure that unrolls down the right edge as you scroll and pins each title it reaches with its reading.
index.html
The home page and all its text, one marked block per section.
Đang tải…
Phù hợp cho
Small clothing labels and boutiques that want a full front end: home, collection, product, cart and checkout.
Cách hoạt động
Drag the rail and the hangers swing; pick a size or colour and the garment redraws; the bag is kept in the browser.
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.