Gratis
Productos
Elyra Products
A products block extracted from the Elyra template, available in Tailwind CSS.
0
7
A products block extracted from the Elyra template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Elyra Products | Tailwind CSS UI Block</title>
<meta name="description" content="A products block extracted from the Elyra template, available in Tailwind CSS.">
<meta name="keywords" content="Elyra, Tailwind CSS template, HTML website template, ecommerce template, audio store, speakers, headphones, hi-fi, product page, shopping cart">
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="Elyra | Tailwind CSS E-commerce Template">
<meta property="og:description" content="A dark, refined Tailwind CSS home audio store template with finish swatches, a room tuner, product pages and a working cart.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Elyra template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Elyra | Tailwind CSS E-commerce Template">
<meta name="twitter:description" content="A dark, refined Tailwind CSS home audio store template with finish swatches, a room tuner, product pages and a working cart.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Elyra template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;1,6..96,400&family=Manrope:wght@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { char: { DEFAULT: '#1d1d1d', soft: '#262626' }, ink: '#111111', bone: '#efe9e1', copper: { DEFAULT: '#c08a63', deep: '#a06e4a' }, stone: '#8c8781' },
fontFamily: { serif: ['"Bodoni Moda"', 'serif'], sans: ['Manrope', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
@keyframes ripple { from { transform: scale(.4); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.wave { transform-origin: center; transform-box: fill-box; animation: ripple 2.4s ease-out infinite; }
.wave.delay { animation-delay: 1.2s; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.wave { animation: none; opacity: .4; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-char font-sans font-light text-bone antialiased">
<!-- block:start products -->
<section class="mx-auto max-w-6xl px-5 py-24 md:px-10 md:py-32" data-finishes>
<div class="flex flex-wrap items-end justify-between gap-6">
<h2 class="font-serif text-4xl md:text-6xl">The collection</h2>
<a href="shop.html" class="text-xs uppercase tracking-[.35em] text-copper underline-offset-8 hover:underline">View all</a>
</div>
<ul class="mt-14 grid gap-6 md:grid-cols-3">
<li class="flex flex-col rounded-[2rem] border border-bone/10 bg-char-soft p-6" data-product data-reveal style="--reveal-delay: 0ms">
<a href="aria-column.html" class="grid h-80 place-items-center" aria-label="View Aria Column">
<span class="h-72" data-finish-art="0" ><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="column speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="30" y="10" width="60" height="270" rx="28" fill="#6b4a33"/><rect x="36" y="40" width="48" height="206" rx="20" fill="#111"/><line x1="40" x2="80" y1="48" y2="48" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="57" y2="57" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="66" y2="66" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="75" y2="75" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="84" y2="84" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="93" y2="93" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="102" y2="102" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="111" y2="111" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="120" y2="120" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="129" y2="129" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="138" y2="138" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="147" y2="147" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="156" y2="156" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="165" y2="165" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="174" y2="174" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="183" y2="183" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="192" y2="192" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="201" y2="201" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="210" y2="210" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="219" y2="219" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="228" y2="228" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="237" y2="237" stroke="#000" stroke-opacity=".35" stroke-width="2"/><circle cx="60" cy="25" r="6" fill="none" stroke="#c08a63" stroke-width="2"/></svg></span><span class="h-72" data-finish-art="1" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="column speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="30" y="10" width="60" height="270" rx="28" fill="#2f2f2f"/><rect x="36" y="40" width="48" height="206" rx="20" fill="#111"/><line x1="40" x2="80" y1="48" y2="48" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="57" y2="57" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="66" y2="66" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="75" y2="75" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="84" y2="84" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="93" y2="93" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="102" y2="102" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="111" y2="111" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="120" y2="120" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="129" y2="129" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="138" y2="138" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="147" y2="147" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="156" y2="156" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="165" y2="165" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="174" y2="174" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="183" y2="183" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="192" y2="192" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="201" y2="201" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="210" y2="210" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="219" y2="219" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="228" y2="228" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="237" y2="237" stroke="#000" stroke-opacity=".35" stroke-width="2"/><circle cx="60" cy="25" r="6" fill="none" stroke="#c08a63" stroke-width="2"/></svg></span><span class="h-72" data-finish-art="2" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="column speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="30" y="10" width="60" height="270" rx="28" fill="#d9d2c7"/><rect x="36" y="40" width="48" height="206" rx="20" fill="#111"/><line x1="40" x2="80" y1="48" y2="48" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="57" y2="57" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="66" y2="66" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="75" y2="75" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="84" y2="84" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="93" y2="93" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="102" y2="102" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="111" y2="111" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="120" y2="120" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="129" y2="129" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="138" y2="138" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="147" y2="147" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="156" y2="156" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="165" y2="165" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="174" y2="174" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="183" y2="183" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="192" y2="192" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="201" y2="201" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="210" y2="210" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="219" y2="219" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="228" y2="228" stroke="#000" stroke-opacity=".35" stroke-width="2"/><line x1="40" x2="80" y1="237" y2="237" stroke="#000" stroke-opacity=".35" stroke-width="2"/><circle cx="60" cy="25" r="6" fill="none" stroke="#c08a63" stroke-width="2"/></svg></span>
</a>
<div class="mt-6 flex items-start justify-between gap-4">
<div><h3 class="font-serif text-2xl">Aria Column</h3><p class="text-sm text-bone/60">Floor-standing, 360° sound</p></div>
<p class="text-sm text-copper">From $1,290</p>
</div>
<div class="mt-5 flex items-center gap-3" role="group" aria-label="Aria Column finish">
<button type="button" data-finish="0" aria-pressed="true" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #6b4a33" aria-label="Walnut"></button>
<button type="button" data-finish="1" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #2f2f2f" aria-label="Graphite"></button>
<button type="button" data-finish="2" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #d9d2c7" aria-label="Bone"></button>
<span class="ml-auto text-xs uppercase tracking-[.2em] text-bone/60" data-finish-name>Walnut</span>
</div>
</li>
<li class="flex flex-col rounded-[2rem] border border-bone/10 bg-char-soft p-6" data-product data-reveal style="--reveal-delay: 80ms">
<a href="shop.html" class="grid h-80 place-items-center" aria-label="View Duet Bookshelf">
<span class="h-72" data-finish-art="0" ><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="shelf speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="22" y="70" width="76" height="200" rx="12" fill="#6b4a33"/><circle cx="60" cy="118" r="12" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="30" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="10" fill="#262626"/></svg></span><span class="h-72" data-finish-art="1" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="shelf speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="22" y="70" width="76" height="200" rx="12" fill="#2f2f2f"/><circle cx="60" cy="118" r="12" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="30" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="10" fill="#262626"/></svg></span><span class="h-72" data-finish-art="2" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="shelf speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="22" y="70" width="76" height="200" rx="12" fill="#d9d2c7"/><circle cx="60" cy="118" r="12" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="30" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="196" r="10" fill="#262626"/></svg></span>
</a>
<div class="mt-6 flex items-start justify-between gap-4">
<div><h3 class="font-serif text-2xl">Duet Bookshelf</h3><p class="text-sm text-bone/60">Compact, studio-flat</p></div>
<p class="text-sm text-copper">$890 the pair</p>
</div>
<div class="mt-5 flex items-center gap-3" role="group" aria-label="Duet Bookshelf finish">
<button type="button" data-finish="0" aria-pressed="true" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #6b4a33" aria-label="Walnut"></button>
<button type="button" data-finish="1" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #2f2f2f" aria-label="Graphite"></button>
<button type="button" data-finish="2" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #d9d2c7" aria-label="Bone"></button>
<span class="ml-auto text-xs uppercase tracking-[.2em] text-bone/60" data-finish-name>Walnut</span>
</div>
</li>
<li class="flex flex-col rounded-[2rem] border border-bone/10 bg-char-soft p-6" data-product data-reveal style="--reveal-delay: 160ms">
<a href="shop.html" class="grid h-80 place-items-center" aria-label="View Orbit Sub">
<span class="h-72" data-finish-art="0" ><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="sub speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="14" y="120" width="92" height="150" rx="16" fill="#6b4a33"/><circle cx="60" cy="195" r="38" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="195" r="14" fill="#262626"/></svg></span><span class="h-72" data-finish-art="1" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="sub speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="14" y="120" width="92" height="150" rx="16" fill="#2f2f2f"/><circle cx="60" cy="195" r="38" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="195" r="14" fill="#262626"/></svg></span><span class="h-72" data-finish-art="2" hidden><svg viewBox="0 0 120 300" class="h-full" role="img" aria-label="sub speaker"><ellipse cx="60" cy="288" rx="44" ry="6" fill="#000" opacity=".35"/><rect x="14" y="120" width="92" height="150" rx="16" fill="#d9d2c7"/><circle cx="60" cy="195" r="38" fill="#111" stroke="#c08a63" stroke-width="2"/><circle cx="60" cy="195" r="14" fill="#262626"/></svg></span>
</a>
<div class="mt-6 flex items-start justify-between gap-4">
<div><h3 class="font-serif text-2xl">Orbit Sub</h3><p class="text-sm text-bone/60">Deep, tidy low end</p></div>
<p class="text-sm text-copper">$740</p>
</div>
<div class="mt-5 flex items-center gap-3" role="group" aria-label="Orbit Sub finish">
<button type="button" data-finish="0" aria-pressed="true" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #6b4a33" aria-label="Walnut"></button>
<button type="button" data-finish="1" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #2f2f2f" aria-label="Graphite"></button>
<button type="button" data-finish="2" aria-pressed="false" class="h-7 w-7 rounded-full border-2 border-transparent ring-1 ring-bone/30 transition aria-pressed:border-char aria-pressed:ring-2 aria-pressed:ring-copper" style="background: #d9d2c7" aria-label="Bone"></button>
<span class="ml-auto text-xs uppercase tracking-[.2em] text-bone/60" data-finish-name>Walnut</span>
</div>
</li>
</ul>
</section>
<!-- block:end products -->
<script>
const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
const menu = document.getElementById(button.getAttribute('aria-controls'));
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
button.setAttribute('aria-expanded', String(!open));
menu.classList.toggle('hidden', open);
});
});
document.querySelectorAll('[data-pill]').forEach((pill) => {
const update = () => pill.toggleAttribute('data-shrunk', scrollY > 80);
addEventListener('scroll', update, { passive: true });
update();
});
document.querySelectorAll('[data-rooms]').forEach((root) => {
const buttons = [...root.querySelectorAll('[data-room]')];
let current = 0;
const show = (index) => {
current = index;
buttons.forEach((button, i) => button.setAttribute('aria-pressed', String(i === index)));
root.querySelectorAll('[data-room-photo]').forEach((img) => { img.hidden = Number(img.dataset.roomPhoto) !== index; });
root.querySelectorAll('[data-room-copy]').forEach((copy) => { copy.hidden = Number(copy.dataset.roomCopy) !== index; });
root.querySelector('[data-room-index]').textContent = String(index + 1).padStart(2, '0');
};
buttons.forEach((button, i) => button.addEventListener('click', () => show(i)));
if (!reducedMotion && !navigator.webdriver) setInterval(() => { if (!root.matches(':hover')) show((current + 1) % buttons.length); }, 6000);
});
document.querySelectorAll('[data-finishes]').forEach((root) => {
root.querySelectorAll('[data-product]').forEach((card) => {
const swatches = [...card.querySelectorAll('[data-finish]')];
swatches.forEach((swatch) => swatch.addEventListener('click', () => {
swatches.forEach((other) => other.setAttribute('aria-pressed', String(other === swatch)));
card.querySelectorAll('[data-finish-art]').forEach((art) => { art.hidden = art.dataset.finishArt !== swatch.dataset.finish; });
card.querySelector('[data-finish-name]').textContent = swatch.getAttribute('aria-label');
}));
});
});
document.querySelectorAll('[data-tuner]').forEach((root) => {
const setups = JSON.parse(root.querySelector('[data-tuner-data]').textContent);
const size = root.querySelector('[data-tuner-size]');
const update = () => {
const area = Number(size.value);
const style = root.querySelector('[data-tuner-style]:checked').value;
let key = area < 18 ? 'small' : area < 38 ? 'medium' : 'large';
if (style === 'films' && key === 'medium') key = 'large';
if (style === 'background' && key === 'large') key = 'medium';
const setup = setups[key];
root.querySelector('[data-tuner-size-out]').textContent = `${area} m²`;
root.querySelector('[data-tuner-setup]').textContent = setup[0];
root.querySelector('[data-tuner-tip]').textContent = setup[1];
root.querySelector('[data-tuner-price]').textContent = `$${setup[2].toLocaleString('en-US')}`;
root.querySelector('[data-tuner-sub]').toggleAttribute('hidden', key !== 'large');
const scale = 0.55 + (area - 8) / 52 * 0.45;
const room = root.querySelector('[data-tuner-room]');
room.setAttribute('width', Math.round(380 * scale)); room.setAttribute('x', Math.round(200 - 190 * scale));
};
size.addEventListener('input', update);
root.querySelectorAll('[data-tuner-style]').forEach((input) => input.addEventListener('change', update));
update();
});
document.querySelectorAll('[data-listen-form]').forEach((form) => {
const status = form.parentElement.querySelector('[data-form-status]');
form.addEventListener('submit', (event) => {
event.preventDefault();
const email = form.querySelector('[name="email"]');
if (!email.value.trim() || !email.checkValidity()) { status.textContent = 'Please enter a valid email address.'; email.focus(); return; }
status.textContent = `Thank you. We will email ${email.value} with open slots this week.`;
form.reset();
});
});
if (watchMotion) {
document.documentElement.classList.add('reveal-ready');
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
}), { threshold: 0.15 });
document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
document.querySelectorAll('[data-ring]').forEach((ring) => { ring.style.strokeDashoffset = '326.7'; });
const rings = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.querySelectorAll('[data-ring]').forEach((ring) => { ring.style.strokeDashoffset = ring.dataset.ring; });
rings.unobserve(entry.target);
}), { threshold: 0.3 });
document.querySelectorAll('[data-rings]').forEach((el) => rings.observe(el));
}
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>
Premium
Tienda online
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.
Tailwind CSS · HTML download
Si no empieza, haz clic aquí.
¿Te gustan nuestras plantillas gratis?
Una pequeña propina nos ayuda a seguir añadiendo nuevas cada semana.
Invítanos a un café