Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Stats

Elyra Stats

A stats block extracted from the Elyra template, available in Tailwind CSS.

0 5
Elyra Stats preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

elyra.html
<!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 Stats | Tailwind CSS UI Block</title>
  <meta name="description" content="A stats 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 stats -->
  <section class="bg-ink">
    <div class="mx-auto grid max-w-6xl gap-10 px-5 py-20 md:grid-cols-4 md:px-10" data-rings>
        <figure class="text-center" data-reveal style="--reveal-delay: 0ms">
          <svg viewBox="0 0 120 120" class="mx-auto h-36 w-36 -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="#efe9e1" stroke-opacity=".1" stroke-width="4"/><circle cx="60" cy="60" r="52" fill="none" stroke="#c08a63" stroke-width="4" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="58.8" data-ring="58.8" class="transition-[stroke-dashoffset] duration-700"/></svg>
          <figcaption class="-mt-24 mb-14"><span class="block font-serif text-3xl">28 Hz</span></figcaption>
          <p class="text-xs uppercase tracking-[.25em] text-bone/60">Bass extension</p>
        </figure>
        <figure class="text-center" data-reveal style="--reveal-delay: 80ms">
          <svg viewBox="0 0 120 120" class="mx-auto h-36 w-36 -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="#efe9e1" stroke-opacity=".1" stroke-width="4"/><circle cx="60" cy="60" r="52" fill="none" stroke="#c08a63" stroke-width="4" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="0.0" data-ring="0.0" class="transition-[stroke-dashoffset] duration-700"/></svg>
          <figcaption class="-mt-24 mb-14"><span class="block font-serif text-3xl">360°</span></figcaption>
          <p class="text-xs uppercase tracking-[.25em] text-bone/60">Dispersion</p>
        </figure>
        <figure class="text-center" data-reveal style="--reveal-delay: 160ms">
          <svg viewBox="0 0 120 120" class="mx-auto h-36 w-36 -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="#efe9e1" stroke-opacity=".1" stroke-width="4"/><circle cx="60" cy="60" r="52" fill="none" stroke="#c08a63" stroke-width="4" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="19.6" data-ring="19.6" class="transition-[stroke-dashoffset] duration-700"/></svg>
          <figcaption class="-mt-24 mb-14"><span class="block font-serif text-3xl">&lt;0.3%</span></figcaption>
          <p class="text-xs uppercase tracking-[.25em] text-bone/60">Distortion</p>
        </figure>
        <figure class="text-center" data-reveal style="--reveal-delay: 240ms">
          <svg viewBox="0 0 120 120" class="mx-auto h-36 w-36 -rotate-90" aria-hidden="true"><circle cx="60" cy="60" r="52" fill="none" stroke="#efe9e1" stroke-opacity=".1" stroke-width="4"/><circle cx="60" cy="60" r="52" fill="none" stroke="#c08a63" stroke-width="4" stroke-linecap="round" stroke-dasharray="326.7" stroke-dashoffset="98.0" data-ring="98.0" class="transition-[stroke-dashoffset] duration-700"/></svg>
          <figcaption class="-mt-24 mb-14"><span class="block font-serif text-3xl">10 yrs</span></figcaption>
          <p class="text-xs uppercase tracking-[.25em] text-bone/60">Warranty</p>
        </figure>
    </div>
  </section>
  <!-- block:end stats -->
<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>

From this template

Elyra screenshot Premium

E-commerce

Elyra

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access