Free
Products
Halcyo Products
A products block extracted from the Halcyo template, available in Tailwind CSS.
0
11
A products block extracted from the Halcyo template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with 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>Halcyo Products | Tailwind CSS UI Block</title>
<meta name="description" content="A products block extracted from the Halcyo template, available in Tailwind CSS.">
<meta name="keywords" content="Halcyo, Tailwind CSS template, HTML website template, ecommerce template, earbuds store, headphones shop, audio brand website, product page, shopping cart, gadget store">
<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="Halcyo | Tailwind CSS Ecommerce Template">
<meta property="og:description" content="A bright Tailwind CSS ecommerce template for earbuds, with a colour switcher, a sound tuner, a noise-cancelling slider and a chat-style FAQ.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Halcyo template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Halcyo | Tailwind CSS Ecommerce Template">
<meta name="twitter:description" content="A bright Tailwind CSS ecommerce template for earbuds, with a colour switcher, a sound tuner, a noise-cancelling slider and a chat-style FAQ.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Halcyo 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=Lexend:wght@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { ink: { DEFAULT: '#0b0b1d', soft: '#4a4a5e' }, haze: { DEFAULT: '#dbe4fb', deep: '#c9d6f7' }, pill: '#f2f2f5', sky: '#5b8dff', iris: '#9b8cff', lilac: '#d9a3ff' },
fontFamily: { sans: ['Lexend', 'sans-serif'] },
backgroundImage: { glow: 'linear-gradient(160deg, #5b8dff 0%, #9b8cff 55%, #d9a3ff 100%)' }
}
}
}
</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; } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.ring-meter circle:last-child { transition: stroke-dashoffset 1.2s ease; }
.stack-card { transition: transform .5s ease, opacity .5s ease; }
.bubble-in { animation: bubble .35s ease both; }
@keyframes bubble { from { opacity: 0; transform: translateY(8px); } }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s 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; }
.ring-meter circle:last-child, .stack-card { transition: none; }
.bubble-in { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-haze font-sans text-ink antialiased">
<!-- block:start products -->
<section class="mt-3 rounded-[2rem] bg-white px-5 py-12 md:mt-6 md:rounded-[2.5rem] md:px-10 md:py-16" data-rail>
<div class="flex flex-wrap items-end justify-between gap-6">
<div>
<p class="text-sm uppercase tracking-[0.2em] text-ink-soft">The lineup</p>
<h2 class="mt-2 text-3xl font-medium tracking-tight md:text-5xl">Pick your pair</h2>
</div>
<div class="flex gap-2">
<button type="button" data-rail-prev class="grid h-12 w-12 place-items-center rounded-full bg-pill transition hover:bg-ink hover:text-white" aria-label="Scroll left"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
<button type="button" data-rail-next class="grid h-12 w-12 place-items-center rounded-full bg-ink text-white transition hover:bg-sky" aria-label="Scroll right"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
</div>
</div>
<ul class="no-scrollbar -mx-5 mt-10 flex snap-x snap-mandatory gap-4 overflow-x-auto px-5 pb-2 md:-mx-10 md:px-10" data-rail-track>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-sky/30 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1630080644615-0b157f1574ec?auto=format&fit=crop&w=600&h=520&q=75" alt="Dark earbuds resting on white fabric" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Drift Pro</h3><p class="text-sm text-ink-soft">Active noise cancelling</p></div>
<button type="button" data-wish="Drift Pro" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Drift Pro"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$175</span><button type="button" data-add-cart="Drift Pro" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-iris/30 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1606741965326-cb990ae01bb2?auto=format&fit=crop&w=600&h=520&q=75" alt="White earbuds next to an open case" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Drift Air</h3><p class="text-sm text-ink-soft">Light, open sound</p></div>
<button type="button" data-wish="Drift Air" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Drift Air"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$129</span><button type="button" data-add-cart="Drift Air" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-lilac/40 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1610438235354-a6ae5528385c?auto=format&fit=crop&w=600&h=520&q=75" alt="Earbuds in a glowing pink case" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Drift Glow</h3><p class="text-sm text-ink-soft">Limited colour edition</p></div>
<button type="button" data-wish="Drift Glow" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Drift Glow"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$139</span><button type="button" data-add-cart="Drift Glow" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-sky/30 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=600&h=520&q=75" alt="Black headphones on a yellow backdrop" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Cove Over-Ear</h3><p class="text-sm text-ink-soft">40 hours, folding frame</p></div>
<button type="button" data-wish="Cove Over-Ear" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Cove Over-Ear"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$249</span><button type="button" data-add-cart="Cove Over-Ear" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-iris/30 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1608156639585-b3a032ef9689?auto=format&fit=crop&w=600&h=520&q=75" alt="Wired white earbuds on a white surface" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Studio Wired</h3><p class="text-sm text-ink-soft">Zero-latency cable buds</p></div>
<button type="button" data-wish="Studio Wired" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Studio Wired"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$39</span><button type="button" data-add-cart="Studio Wired" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
<li class="w-[17rem] shrink-0 snap-start md:w-[20rem]">
<article class="group rounded-3xl bg-gradient-to-b from-lilac/40 to-pill p-3">
<a href="drift-pro.html" class="block overflow-hidden rounded-2xl"><img src="https://images.unsplash.com/photo-1613040809024-b4ef7ba99bc3?auto=format&fit=crop&w=600&h=520&q=75" alt="Rose gold headphones on a pink backdrop" class="aspect-[15/13] w-full object-cover transition duration-500 group-hover:scale-105" loading="lazy"></a>
<div class="flex items-start justify-between gap-3 p-3">
<div><h3 class="text-lg font-medium">Bloom Over-Ear</h3><p class="text-sm text-ink-soft">Soft pastel cushions</p></div>
<button type="button" data-wish="Bloom Over-Ear" aria-pressed="false" class="grid h-10 w-10 shrink-0 place-items-center rounded-full bg-white transition hover:text-iris aria-pressed:bg-ink aria-pressed:text-white" aria-label="Save Bloom Over-Ear"><i class="fa-regular fa-heart" aria-hidden="true"></i></button>
</div>
<div class="flex items-center justify-between px-3 pb-2"><span class="text-xl font-medium">$199</span><button type="button" data-add-cart="Bloom Over-Ear" class="rounded-full bg-ink px-5 py-2.5 text-sm text-white transition hover:bg-sky">Add to cart</button></div>
</article>
</li>
</ul>
</section>
<!-- block:end products -->
<script>
const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
const store = (key) => ({ get: () => { try { return JSON.parse(localStorage.getItem(key)) || []; } catch (error) { return []; } }, set: (value) => { try { localStorage.setItem(key, JSON.stringify(value)); } catch (error) { /* storage unavailable */ } } });
const cart = store('halcyo-cart');
const wish = store('halcyo-wish');
const paintCounts = () => {
document.querySelectorAll('[data-cart-count]').forEach((el) => { el.textContent = cart.get().length; });
document.querySelectorAll('[data-wish-count]').forEach((el) => { el.textContent = wish.get().length; });
document.querySelectorAll('[data-wish]').forEach((button) => button.setAttribute('aria-pressed', String(wish.get().includes(button.dataset.wish))));
};
paintCounts();
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-add-cart]').forEach((button) => button.addEventListener('click', () => {
cart.set([...cart.get(), button.dataset.addCart]);
paintCounts();
button.animate([{ transform: 'scale(1)' }, { transform: 'scale(1.12)' }, { transform: 'scale(1)' }], { duration: reducedMotion ? 0 : 300 });
}));
document.querySelectorAll('[data-wish]').forEach((button) => button.addEventListener('click', () => {
const list = wish.get();
wish.set(list.includes(button.dataset.wish) ? list.filter((name) => name !== button.dataset.wish) : [...list, button.dataset.wish]);
paintCounts();
}));
document.querySelectorAll('[data-swatch-card]').forEach((root) => {
const swatches = [...root.querySelectorAll('[data-swatch]')];
swatches.forEach((swatch) => swatch.addEventListener('click', () => {
swatches.forEach((other) => other.setAttribute('aria-pressed', String(other === swatch)));
const image = root.querySelector('[data-swatch-image]');
image.src = swatch.dataset.img; image.alt = swatch.dataset.alt;
root.querySelector('[data-swatch-name]').textContent = swatch.dataset.name;
root.querySelector('[data-swatch-price]').textContent = swatch.dataset.price;
}));
});
document.querySelectorAll('[data-rail]').forEach((root) => {
const track = root.querySelector('[data-rail-track]');
const step = () => track.querySelector('li').getBoundingClientRect().width + 16;
root.querySelector('[data-rail-prev]').addEventListener('click', () => track.scrollBy({ left: -step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
root.querySelector('[data-rail-next]').addEventListener('click', () => track.scrollBy({ left: step(), behavior: reducedMotion ? 'auto' : 'smooth' }));
});
document.querySelectorAll('[data-tuner]').forEach((root) => {
const matches = [
{ test: (b, v, t) => b >= 70, name: 'Cove Over-Ear', text: 'Big, warm bass and 40 hours of play for long sessions.', img: '1505740420928-5e560c06d30e', alt: 'Black headphones on a yellow backdrop' },
{ test: (b, v, t) => v >= 70, name: 'Drift Air', text: 'Clear, forward vocals — made for podcasts and calls.', img: '1606741965326-cb990ae01bb2', alt: 'White earbuds next to an open charging case' },
{ test: (b, v, t) => t >= 70, name: 'Studio Wired', text: 'Crisp, zero-latency detail for creators and gamers.', img: '1608156639585-b3a032ef9689', alt: 'Wired white earbuds on a white surface' },
{ test: (b, v, t) => b + v + t < 140, name: 'Drift Glow', text: 'Soft and relaxed, for slow evenings and late reading.', img: '1610438235354-a6ae5528385c', alt: 'Earbuds in a glowing pink case' },
{ test: () => true, name: 'Drift Pro', text: 'Balanced and detailed, with noise cancelling for busy days.', img: '1630080644615-0b157f1574ec', alt: 'Dark earbuds resting on white fabric' }
];
const sliders = [...root.querySelectorAll('[data-eq]')];
const bars = [...root.querySelectorAll('[data-eq-bar]')];
const presets = [...root.querySelectorAll('[data-preset]')];
const paint = () => {
const [b, v, t] = sliders.map((slider) => Number(slider.value));
sliders.forEach((slider) => { root.querySelector(`[data-eq-value="${slider.name}"]`).textContent = slider.value; });
bars.forEach((bar, i) => {
const x = i / (bars.length - 1);
const level = x < 0.5 ? b + (v - b) * (x / 0.5) : v + (t - v) * ((x - 0.5) / 0.5);
const height = 20 + level * 1.2 + Math.sin(i * 1.7) * 6;
bar.setAttribute('height', height.toFixed(1)); bar.setAttribute('y', (80 - height / 2).toFixed(1));
});
const match = matches.find((item) => item.test(b, v, t));
root.querySelector('[data-match-name]').textContent = match.name;
root.querySelector('[data-match-text]').textContent = match.text;
const image = root.querySelector('[data-match-image]');
image.src = `https://images.unsplash.com/photo-${match.img}?auto=format&fit=crop&w=320&h=320&q=75`; image.alt = match.alt;
};
sliders.forEach((slider) => slider.addEventListener('input', () => { presets.forEach((preset) => preset.setAttribute('aria-pressed', 'false')); paint(); }));
presets.forEach((preset) => preset.addEventListener('click', () => {
presets.forEach((other) => other.setAttribute('aria-pressed', String(other === preset)));
preset.dataset.values.split(',').forEach((value, i) => { sliders[i].value = value; });
paint();
}));
paint();
});
document.querySelectorAll('[data-compare]').forEach((root) => {
const range = root.querySelector('[data-compare-range]');
range.addEventListener('input', () => root.style.setProperty('--pos', `${range.value}%`));
});
document.querySelectorAll('[data-stack]').forEach((root) => {
const cards = [...root.querySelectorAll('[data-stack-card]')];
let order = cards.map((_, i) => i);
const paint = () => order.forEach((cardIndex, depth) => {
const card = cards[cardIndex];
card.style.zIndex = String(cards.length - depth);
card.style.transform = `translateY(${depth * 12}px) scale(${1 - depth * 0.04})`;
card.style.opacity = depth > 2 ? '0' : '1';
card.setAttribute('aria-hidden', String(depth !== 0));
});
const next = () => { order = [...order.slice(1), order[0]]; paint(); };
root.querySelector('[data-stack-next]').addEventListener('click', next);
cards.forEach((card) => card.addEventListener('click', next));
paint();
});
document.querySelectorAll('[data-chat]').forEach((root) => {
const log = root.querySelector('[data-chat-log]');
const bubble = (text, mine) => {
const row = document.createElement('p');
row.className = `bubble-in flex ${mine ? 'justify-end' : 'items-end gap-2'}`;
row.innerHTML = mine ? '<span class="max-w-[80%] rounded-2xl rounded-br-sm bg-ink px-4 py-3 text-sm text-white"></span>' : '<span class="grid h-8 w-8 shrink-0 place-items-center rounded-full bg-glow text-xs text-white">H</span><span class="max-w-[80%] rounded-2xl rounded-bl-sm bg-white px-4 py-3 text-sm"></span>';
row.lastElementChild.textContent = text;
log.append(row);
log.scrollTop = log.scrollHeight;
};
root.querySelectorAll('[data-question]').forEach((button) => button.addEventListener('click', () => {
bubble(button.textContent.trim(), true);
setTimeout(() => bubble(button.dataset.answer, false), reducedMotion ? 0 : 450);
}));
});
if (watchMotion) {
document.documentElement.classList.add('reveal-ready');
const rings = [...document.querySelectorAll('[data-ring]')];
rings.forEach((ring) => { ring.style.strokeDashoffset = '326.7'; });
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.classList.add('is-visible');
entry.target.querySelectorAll('[data-ring]').forEach((ring) => { ring.style.strokeDashoffset = (326.7 * (1 - ring.dataset.ring / 100)).toFixed(1); });
observer.unobserve(entry.target);
}), { threshold: 0.15 });
document.querySelectorAll('[data-reveal]').forEach((el) => observer.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
E-commerce
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.