E-commerce sample
Ready. Changes update the preview automatically.
<header><a class="brand" href="#">Everyday objects.</a><nav aria-label="Store"><a href="#products">Shop</a><a href="#delivery">Delivery</a><span aria-live="polite" id="cart">Bag (0)</span></nav></header> <main> <section class="hero" aria-labelledby="hero-title"><span class="eyebrow">Less, but better</span><h1 id="hero-title">Small things.<br>A little more joy.</h1><p>Thoughtful essentials for your desk, your morning, and everything in between.</p><a class="button" href="#products">Explore the collection →</a></section> <section id="products" aria-labelledby="products-title"><div class="heading"><span class="eyebrow">The everyday edit</span><h2 id="products-title">Made for your daily rituals</h2><p>Three simple favorites. Pick something that feels like you.</p></div> <div class="products"> <article><div class="art"><svg viewBox="0 0 120 120" aria-hidden="true"><path d="M76 38h12a19 19 0 010 38H76" fill="none" stroke="var(--color-accent-deep)" stroke-width="9"/><path d="M26 28h54v54q0 18-27 18T26 82Z" fill="var(--color-accent)"/><ellipse cx="53" cy="28" rx="27" ry="7" fill="var(--color-accent-deep)"/></svg></div><h3>Morning mug</h3><p>Warm clay · $24</p><button type="button" data-product="Morning mug">Add mug to bag</button></article> <article><div class="art"><svg viewBox="0 0 120 120" aria-hidden="true"><rect x="28" y="16" width="65" height="90" rx="7" fill="var(--color-ink)"/><path d="M40 16v90M52 43h28M52 52h20" stroke="var(--color-hi)" stroke-width="3"/></svg></div><h3>Daily notebook</h3><p>Unlined paper · $18</p><button type="button" data-product="Daily notebook">Add notebook to bag</button></article> <article><div class="art"><svg viewBox="0 0 120 120" aria-hidden="true"><path d="M58 18h8v74H40v8h46v-8H66" fill="var(--color-ink)"/><path d="M36 22h48l15 39H21Z" fill="var(--color-accent)"/><ellipse cx="60" cy="61" rx="39" ry="6" fill="var(--color-hi)"/></svg></div><h3>Quiet desk lamp</h3><p>Soft warm light · $64</p><button type="button" data-product="Quiet desk lamp">Add lamp to bag</button></article> </div><p id="status" role="status"></p></section> <section id="delivery" class="trust" aria-labelledby="delivery-title"><h2 id="delivery-title">Good things, delivered simply.</h2><p>Free delivery over $75. Easy returns within 30 days.</p></section> </main><footer>Example store for learning. No payments or orders are processed.</footer>
1 2 3 4 5 6 7 8 9 10 11
Ln 1, Col 1 · Spaces: 2HTML · UTF-8
Tab moves between controls. Alt+Shift+F formats; Ctrl/Cmd+Enter runs. Edits stay in this tab until you export. Sample actions do not send data.
← Back to E-commerce