Free
Stats
Halcyo Stats
A stats block extracted from the Halcyo template, available in Tailwind CSS.
0
34
A stats 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 Stats | Tailwind CSS UI Block</title>
<meta name="description" content="A stats 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 stats -->
<section class="mt-3 rounded-[2rem] bg-glow px-5 py-12 text-white md:mt-6 md:rounded-[2.5rem] md:px-10 md:py-16">
<ul class="grid gap-10 sm:grid-cols-3">
<li class="flex flex-col items-center text-center" data-reveal style="--reveal-delay: 0ms">
<div class="relative h-40 w-40">
<svg viewBox="0 0 120 120" class="ring-meter h-full w-full -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-opacity=".25" stroke-width="10"></circle><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-width="10" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="26.1" data-ring="92"></circle></svg>
<span class="absolute inset-0 grid place-items-center text-3xl font-medium">92%</span>
</div>
<p class="mt-4 max-w-[12rem] text-white/85">of outside noise cancelled</p>
</li>
<li class="flex flex-col items-center text-center" data-reveal style="--reveal-delay: 120ms">
<div class="relative h-40 w-40">
<svg viewBox="0 0 120 120" class="ring-meter h-full w-full -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-opacity=".25" stroke-width="10"></circle><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-width="10" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="81.7" data-ring="75"></circle></svg>
<span class="absolute inset-0 grid place-items-center text-3xl font-medium">30 h</span>
</div>
<p class="mt-4 max-w-[12rem] text-white/85">of play with the charging case</p>
</li>
<li class="flex flex-col items-center text-center" data-reveal style="--reveal-delay: 240ms">
<div class="relative h-40 w-40">
<svg viewBox="0 0 120 120" class="ring-meter h-full w-full -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-opacity=".25" stroke-width="10"></circle><circle cx="60" cy="60" r="52" fill="none" stroke="white" stroke-width="10" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="163.4" data-ring="50"></circle></svg>
<span class="absolute inset-0 grid place-items-center text-3xl font-medium">2 h</span>
</div>
<p class="mt-4 max-w-[12rem] text-white/85">from a five-minute charge</p>
</li>
</ul>
</section>
<!-- block:end stats -->
<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.