Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Proceso

Fennly Process

A process block extracted from the Fennly template, available in Tailwind CSS.

0 23
Fennly Process preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

fennly.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>Fennly Process | Tailwind CSS UI Block</title>
  <meta name="description" content="A process block extracted from the Fennly template, available in Tailwind CSS.">
  <meta name="keywords" content="Fennly, Tailwind CSS template, HTML website template, ecommerce template, meal delivery website, healthy food shop, meal plan subscription, nutrition, food ordering, salad bar">
  <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="Fennly | Tailwind CSS Ecommerce Template">
  <meta property="og:description" content="A fresh Tailwind CSS ecommerce template for healthy meal delivery, with meal tabs, a calorie card, an interactive ordering process and a plan carousel.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Fennly template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Fennly | Tailwind CSS Ecommerce Template">
  <meta name="twitter:description" content="A fresh Tailwind CSS ecommerce template for healthy meal delivery, with meal tabs, a calorie card, an interactive ordering process and a plan carousel.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Fennly 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=Figtree:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { forest: { DEFAULT: '#0f4b3c', deep: '#0a3529' }, cream: '#fdfbf1', sand: { DEFAULT: '#f3efe3', deep: '#e9e3d1' }, mint: '#e2ebe2', ink: '#141414' },
          fontFamily: { sans: ['Figtree', '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; } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .no-scrollbar { scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .marquee-track { animation: marquee 40s linear infinite; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    .swap { transition: opacity .35s ease; }
    .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; }
      .marquee-track { animation: none; }
      .swap { transition: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-cream font-sans text-ink antialiased">
<!-- block:start process -->
  <section class="relative isolate overflow-hidden bg-mint" data-steps>
    <svg class="absolute inset-0 -z-10 h-full w-full text-white/50" viewBox="0 0 1200 500" preserveAspectRatio="none" fill="none" aria-hidden="true"><path d="M0 120C200 60 380 220 600 160S980 40 1200 110" stroke="currentColor" stroke-width="40"/><path d="M0 380C260 300 420 460 680 380S1000 300 1200 360" stroke="currentColor" stroke-width="60"/></svg>
    <div class="mx-auto grid max-w-[90rem] gap-12 px-5 py-16 md:px-10 md:py-20 lg:grid-cols-2">
      <div class="flex flex-col">
        <p class="text-ink/60">How to order</p>
        <h2 class="mt-3 text-4xl font-medium tracking-tight text-forest md:text-6xl">From our kitchen to your table</h2>
        <div class="mt-10 lg:mt-auto lg:pt-10" aria-live="polite">
          <p class="flex items-center gap-3 text-xl text-forest"><i class="fa-solid fa-kitchen-set" aria-hidden="true" data-step-icon></i><span data-step-title>Cooked fresh daily</span></p>
          <p class="mt-3 max-w-md text-ink/60" data-step-text>Our chefs cook every dish from scratch each morning. No preservatives, no shortcuts.</p>
        </div>
      </div>
      <div class="relative">
        <ol class="grid gap-6" role="tablist" aria-label="Ordering steps">
            <li role="presentation"><button type="button" role="tab" data-step="0" data-icon="fa-clipboard-list" data-text="Tell us your goal and appetite. We suggest a plan and you tweak it in a minute." data-img="https://images.unsplash.com/photo-1543353071-873f17a7a088?auto=format&fit=crop&w=600&h=480&q=80" data-alt="Table set with colourful plates of food" aria-selected="false" class="flex items-baseline gap-8 text-left text-2xl text-ink/40 transition hover:text-ink/70 aria-selected:translate-x-6 aria-selected:text-forest md:text-4xl"><span class="italic">(01)</span><span>Select your plan</span></button></li>
            <li role="presentation"><button type="button" role="tab" data-step="1" data-icon="fa-bowl-food" data-text="Choose from 40 rotating dishes each week, or let us surprise you." data-img="https://images.unsplash.com/photo-1600335895229-6e75511892c8?auto=format&fit=crop&w=600&h=480&q=80" data-alt="Overhead view of several salad bowls" aria-selected="false" class="flex items-baseline gap-8 text-left text-2xl text-ink/40 transition hover:text-ink/70 aria-selected:translate-x-6 aria-selected:text-forest md:text-4xl"><span class="italic">(02)</span><span>Pick your meals</span></button></li>
            <li role="presentation"><button type="button" role="tab" data-step="2" data-icon="fa-kitchen-set" data-text="Our chefs cook every dish from scratch each morning. No preservatives, no shortcuts." data-img="https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=600&h=480&q=80" data-alt="People cooking together in a bright kitchen" aria-selected="true" class="flex items-baseline gap-8 text-left text-2xl text-ink/40 transition hover:text-ink/70 aria-selected:translate-x-6 aria-selected:text-forest md:text-4xl"><span class="italic">(03)</span><span>Cooked fresh daily</span></button></li>
            <li role="presentation"><button type="button" role="tab" data-step="3" data-icon="fa-truck-fast" data-text="Chilled boxes arrive in a two-hour window you choose. Warm, eat, done." data-img="https://images.unsplash.com/photo-1505576399279-565b52d4ac71?auto=format&fit=crop&w=600&h=480&q=80" data-alt="Salad layered in a glass jar ready to go" aria-selected="false" class="flex items-baseline gap-8 text-left text-2xl text-ink/40 transition hover:text-ink/70 aria-selected:translate-x-6 aria-selected:text-forest md:text-4xl"><span class="italic">(04)</span><span>Delivered to your door</span></button></li>
        </ol>
        <img src="https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=600&h=480&q=80" alt="People cooking together in a bright kitchen" class="swap pointer-events-none absolute -top-6 right-0 hidden w-64 rotate-6 rounded-xl border-8 border-white/70 object-cover shadow-xl xl:block" data-step-image>
      </div>
    </div>
  </section>
  <!-- block:end process -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
    const cart = { get: () => { try { return JSON.parse(localStorage.getItem('fennly-cart')) || []; } catch (error) { return []; } }, set: (value) => { try { localStorage.setItem('fennly-cart', JSON.stringify(value)); } catch (error) { /* storage unavailable */ } } };
    const paintCart = () => document.querySelectorAll('[data-cart-count]').forEach((el) => { el.textContent = cart.get().length; });
    paintCart();

    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]);
      paintCart();
      button.animate([{ transform: 'scale(1)' }, { transform: 'scale(1.15)' }, { transform: 'scale(1)' }], { duration: reducedMotion ? 0 : 300 });
    }));

    document.querySelectorAll('[data-popover]').forEach((root) => {
      const toggle = root.querySelector('[data-popover-toggle]');
      const panel = document.getElementById(toggle.getAttribute('aria-controls'));
      const set = (open) => { panel.hidden = !open; toggle.setAttribute('aria-expanded', String(open)); };
      toggle.addEventListener('click', () => set(panel.hidden));
      document.addEventListener('click', (event) => { if (!root.contains(event.target)) set(false); });
      root.addEventListener('keydown', (event) => { if (event.key === 'Escape') { set(false); toggle.focus(); } });
    });

    document.querySelectorAll('[data-meal-tabs]').forEach((root) => {
      const tabs = [...root.querySelectorAll('[data-category-tab]')];
      const items = [...root.querySelectorAll('[data-cats]')];
      const range = root.querySelector('[data-kcal]');
      let category = tabs.find((tab) => tab.getAttribute('aria-selected') === 'true').dataset.categoryTab;
      const paint = () => {
        const max = Number(range.value);
        root.querySelector('[data-kcal-label]').textContent = max;
        let shown = 0;
        items.forEach((item) => { const match = item.dataset.cats.split(' ').includes(category) && Number(item.dataset.kcalValue) <= max; item.hidden = !match; if (match) shown += 1; });
        root.querySelector('[data-meal-empty]').hidden = shown > 0;
      };
      tabs.forEach((tab) => tab.addEventListener('click', () => {
        tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab)));
        category = tab.dataset.categoryTab;
        paint();
      }));
      range.addEventListener('input', paint);
      paint();
    });

    document.querySelectorAll('[data-perks]').forEach((root) => {
      const perks = [...root.querySelectorAll('[data-perk]')];
      perks.forEach((perk) => perk.addEventListener('click', () => {
        perks.forEach((other) => other.setAttribute('aria-pressed', String(other === perk)));
        root.querySelector('[data-perk-text]').textContent = perk.dataset.text;
      }));
    });

    document.querySelectorAll('[data-steps]').forEach((root) => {
      const steps = [...root.querySelectorAll('[data-step]')];
      const image = root.querySelector('[data-step-image]');
      const select = (step) => {
        steps.forEach((other) => other.setAttribute('aria-selected', String(other === step)));
        root.querySelector('[data-step-title]').textContent = step.lastElementChild.textContent;
        root.querySelector('[data-step-text]').textContent = step.dataset.text;
        const icon = root.querySelector('[data-step-icon]');
        icon.classList.remove(...[...icon.classList].filter((name) => name.startsWith('fa-') && name !== 'fa-solid'));
        icon.classList.add(step.dataset.icon);
        image.src = step.dataset.img; image.alt = step.dataset.alt;
      };
      steps.forEach((step, i) => {
        step.addEventListener('click', () => select(step));
        step.addEventListener('mouseenter', () => select(step));
        step.addEventListener('keydown', (event) => {
          if (event.key === 'ArrowDown') { event.preventDefault(); steps[(i + 1) % steps.length].focus(); select(steps[(i + 1) % steps.length]); }
          if (event.key === 'ArrowUp') { event.preventDefault(); steps[(i - 1 + steps.length) % steps.length].focus(); select(steps[(i - 1 + steps.length) % steps.length]); }
        });
      });
    });

    document.querySelectorAll('[data-plan-reviews]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-plan-data]').textContent);
      const tabs = [...root.querySelectorAll('[data-plan]')];
      const faces = [...root.querySelectorAll('[data-face]')];
      let plan = tabs[0].dataset.plan; let index = 1;
      const paint = () => {
        const set = data[plan]; const quote = set.quotes[index];
        faces.forEach((face, i) => { face.setAttribute('aria-pressed', String(i === index)); face.querySelector('[data-face-img]').src = `https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/${set.quotes[i].avatar}.jpg`; });
        root.querySelector('[data-quote]').textContent = `“${quote.quote}”`;
        root.querySelector('[data-quote-name]').textContent = quote.name;
        root.querySelector('[data-quote-city]').textContent = quote.city;
        root.querySelector('[data-result-a]').textContent = set.a; root.querySelector('[data-result-a-label]').textContent = set.aLabel;
        root.querySelector('[data-result-b]').textContent = set.b; root.querySelector('[data-result-b-label]').textContent = set.bLabel;
      };
      tabs.forEach((tab) => tab.addEventListener('click', () => { tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab))); plan = tab.dataset.plan; index = 1; paint(); }));
      faces.forEach((face, i) => face.addEventListener('click', () => { index = i; paint(); }));
      root.querySelector('[data-review-prev]').addEventListener('click', () => { index = (index + 2) % 3; paint(); });
      root.querySelector('[data-review-next]').addEventListener('click', () => { index = (index + 1) % 3; paint(); });
    });

    document.querySelectorAll('[data-fit]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-fit-data]').textContent);
      const dots = [...root.querySelectorAll('[data-fit-dot]')];
      let index = 0;
      const url = (id, w, h) => `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=${w}&h=${h}&q=80`;
      const paint = () => {
        const plan = data[index];
        root.querySelector('[data-fit-name]').textContent = plan.name;
        root.querySelector('[data-fit-text]').textContent = plan.text;
        root.querySelector('[data-fit-price]').textContent = plan.price;
        const card = root.querySelector('[data-fit-card-img]'); card.src = url(plan.card, 600, 800); card.alt = plan.cardAlt;
        const big = root.querySelector('[data-fit-big-img]'); big.src = url(plan.big, 1100, 800); big.alt = plan.bigAlt;
        dots.forEach((dot, i) => { dot.classList.toggle('w-6', i === index); dot.classList.toggle('w-1.5', i !== index); dot.classList.toggle('opacity-30', i !== index); });
      };
      root.querySelector('[data-fit-prev]').addEventListener('click', () => { index = (index - 1 + data.length) % data.length; paint(); });
      root.querySelector('[data-fit-next]').addEventListener('click', () => { index = (index + 1) % data.length; paint(); });
    });

    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));
    }
  </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>

De esta plantilla

Fennly screenshot Premium

Comida y restaurantes

Fennly

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado