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

Oleandra Hero

A hero block extracted from the Oleandra template, available in Tailwind CSS.

0 16
Oleandra Hero preview

Download Codebase

Commercial License

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

oleandra.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>Oleandra Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Oleandra template, available in Tailwind CSS.">
  <meta name="keywords" content="Oleandra, Tailwind CSS template, HTML website template, ecommerce template, skincare store, natural cosmetics shop, beauty brand website, serum product page, skin quiz, 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="Oleandra | Tailwind CSS Ecommerce Template">
  <meta property="og:description" content="A lush Tailwind CSS ecommerce template for natural skincare, with floating product cards, a ritual builder, an ingredient map and a skin quiz.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Oleandra template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Oleandra | Tailwind CSS Ecommerce Template">
  <meta name="twitter:description" content="A lush Tailwind CSS ecommerce template for natural skincare, with floating product cards, a ritual builder, an ingredient map and a skin quiz.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Oleandra 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=Instrument+Serif&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { forest: { DEFAULT: '#0e3a22', deep: '#0a2c19', soft: '#155232' }, lime: { DEFAULT: '#b9f45e', soft: '#dcfaa8' }, cream: { DEFAULT: '#f2eed6', deep: '#e6e0bd' } },
          fontFamily: { sans: ['Inter', 'sans-serif'], serif: ['"Instrument Serif"', '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; }
    .display { font-family: "Instrument Serif", serif; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; }
    .hotspot::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid #b9f45e; animation: ping 2s ease-out infinite; }
    @keyframes ping { 70%, 100% { transform: scale(1.6); opacity: 0; } }
    .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; }
      .hotspot::after { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-forest font-sans text-cream antialiased">
<!-- block:start hero -->
  <section class="mx-auto grid max-w-[90rem] gap-10 px-5 py-12 md:px-10 lg:grid-cols-[18rem_1fr_18rem] lg:py-16">
    <div class="order-2 grid grid-cols-2 gap-6 lg:order-1 lg:grid-cols-1">
      <div data-reveal>
        <img src="https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&w=400&h=560&q=80" alt="Young woman with dark brows against a soft pink wall" class="aspect-[5/7] w-full bg-lime object-cover lg:w-40">
        <p class="mt-4 max-w-[10rem] text-lg leading-snug">Golden light in every drop.</p>
      </div>
      <article class="self-end bg-cream text-forest" data-reveal style="--reveal-delay: 120ms">
        <a href="rose-geranium.html" class="relative block aspect-square overflow-hidden">
          <img src="https://images.unsplash.com/photo-1617897903246-719242758050?auto=format&fit=crop&w=600&h=600&q=80" alt="Glass dropper bottle of facial oil on a wooden board with eucalyptus" class="h-full w-full object-cover">
          <span class="absolute bottom-3 left-4 font-serif text-2xl text-white drop-shadow">Rose Geranium</span>
        </a>
        <div class="grid grid-cols-[auto_1fr] border-t border-forest/15 text-sm">
          <span class="border-r border-forest/15 px-4 py-3 font-serif text-xl">$85.00</span>
          <button type="button" data-add-bag="Rose Geranium Oil" class="flex items-center justify-center gap-2 px-4 py-3 font-serif text-xl transition hover:bg-lime"><i class="fa-solid fa-asterisk" aria-hidden="true"></i>Add to bag</button>
        </div>
      </article>
    </div>
    <div class="order-1 text-center lg:order-2">
      <p class="mx-auto inline-flex items-center gap-3 rounded-full border border-white/20 px-6 py-3 text-sm"><i class="fa-solid fa-eye-dropper" aria-hidden="true"></i>Clean skincare, quietly luxurious</p>
      <h1 class="display mt-8 text-6xl sm:text-7xl md:text-8xl xl:text-[8.5rem]" data-reveal>Skin that feels as good as it <span class="inline-flex items-center gap-3 align-middle"><img src="https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?auto=format&fit=crop&w=200&h=200&q=80" alt="" class="inline-block h-[0.85em] w-[0.85em] rounded-full border-4 border-lime object-cover"><span class="text-lime">glows</span></span></h1>
      <div class="mt-12 flex flex-col items-center justify-center gap-6 sm:flex-row">
        <a href="shop.html" class="flex items-center gap-3 bg-lime px-8 py-5 font-serif text-2xl text-forest transition hover:bg-cream"><i class="fa-solid fa-asterisk" aria-hidden="true"></i>Shop the collection</a>
        <p class="max-w-[15rem] text-left text-lg leading-snug text-cream/85">Formulas that hydrate, repair and wake up your glow.</p>
      </div>
      <div class="mt-12 flex flex-wrap items-center justify-center gap-6">
        <a href="rituals.html" class="group flex items-center gap-4 font-serif text-2xl"><span class="grid h-14 w-14 place-items-center rounded-full bg-forest-soft transition group-hover:bg-lime group-hover:text-forest"><i class="fa-solid fa-play" aria-hidden="true"></i></span>Our story</a>
        <span class="hidden h-20 w-px bg-white/20 sm:block"></span>
        <a href="rituals.html" class="group flex items-center gap-4"><img src="https://images.unsplash.com/photo-1608571423902-eed4a5ad8108?auto=format&fit=crop&w=160&h=160&q=70" alt="" class="h-16 w-16 rounded-full object-cover"><span class="text-lg underline underline-offset-8 transition group-hover:text-lime">Discover the ritual <i class="fa-solid fa-arrow-up inline-block rotate-45" aria-hidden="true"></i></span></a>
      </div>
    </div>
    <div class="order-3 hidden flex-col gap-6 lg:flex">
      <div class="flex flex-wrap justify-end gap-2 font-serif text-2xl">
        <a href="journal.html" class="grid h-14 w-14 place-items-center rounded-full bg-lime text-forest" aria-label="Read the journal"><i class="fa-solid fa-arrow-up inline-block rotate-45" aria-hidden="true"></i></a>
        <a href="journal.html" class="rounded-full border border-white/20 px-6 py-2 transition hover:border-lime">#cleanbeauty</a>
        <a href="journal.html" class="rounded-full border border-white/20 px-6 py-2 transition hover:border-lime">#skinritual</a>
        <a href="journal.html" class="rounded-full bg-lime px-6 py-2 text-forest">#glowup</a>
      </div>
      <a href="rituals.html" class="group mt-auto block bg-cream text-forest" data-reveal style="--reveal-delay: 200ms">
        <span class="block overflow-hidden bg-forest-soft"><img src="https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?auto=format&fit=crop&w=600&h=760&q=80" alt="Woman with dark hair looking at the camera" class="aspect-[3/4] w-full object-cover transition duration-500 group-hover:scale-105"></span>
        <span class="flex items-center justify-between gap-4 p-5"><span class="font-serif text-3xl leading-none">Freshly made for radiant skin</span><i class="fa-solid fa-leaf text-5xl" aria-hidden="true"></i></span>
      </a>
    </div>
  </section>
  <!-- block:end hero -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
    const bag = { get: () => { try { return Number(localStorage.getItem('oleandra-bag')) || 0; } catch (error) { return 0; } }, add: (n) => { try { localStorage.setItem('oleandra-bag', String(bag.get() + n)); } catch (error) { /* storage unavailable */ } document.querySelectorAll('[data-bag-count]').forEach((el) => { el.textContent = bag.get(); }); } };
    document.querySelectorAll('[data-bag-count]').forEach((el) => { el.textContent = bag.get(); });

    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-dropdown]').forEach((root) => {
      const toggle = root.querySelector('[data-dropdown-toggle]');
      const menu = document.getElementById(toggle.getAttribute('aria-controls'));
      const set = (open) => { menu.hidden = !open; toggle.setAttribute('aria-expanded', String(open)); };
      toggle.addEventListener('click', () => set(menu.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-add-bag]').forEach((button) => button.addEventListener('click', () => {
      bag.add(1);
      const label = button.innerHTML;
      button.textContent = 'Added ✓';
      setTimeout(() => { button.innerHTML = label; }, 1500);
    }));

    document.querySelectorAll('[data-builder]').forEach((root) => {
      const catalog = {
        cleanse: { dry: ['Milk Cleanser', 24], oily: ['Clay Gel Wash', 22], combo: ['Balancing Gel', 22], sensitive: ['Oat Cream Wash', 24] },
        treat: { dull: ['Vitamin Glow Serum', 38], lines: ['Night Renewal Serum', 35], breakouts: ['Willow Clear Drops', 32], redness: ['Calm Green Serum', 34] },
        seal: { dry: ['Rose Geranium Oil', 85], oily: ['Cloud Water Cream', 42], combo: ['Cloud Water Cream', 42], sensitive: ['Barrier Balm', 39] }
      };
      const paint = () => {
        const skin = root.querySelector('[name="skin"]:checked').value;
        const concern = root.querySelector('[name="concern"]:checked').value;
        const picks = [catalog.cleanse[skin], catalog.treat[concern], catalog.seal[skin]];
        picks.forEach(([name, price], i) => { root.querySelector(`[data-step-name="${i}"]`).textContent = name; root.querySelector(`[data-step-price="${i}"]`).textContent = `$${price}`; });
        const full = picks.reduce((sum, [, price]) => sum + price, 0);
        root.querySelector('[data-builder-total]').textContent = Math.round(full * 0.85);
        root.querySelector('[data-builder-saving]').textContent = `save $${full - Math.round(full * 0.85)}`;
        root.querySelector('[data-builder-status]').textContent = '';
      };
      root.addEventListener('change', paint);
      root.querySelector('[data-builder-add]').addEventListener('click', () => { bag.add(3); root.querySelector('[data-builder-status]').textContent = 'Your three-step ritual is in the bag.'; });
      paint();
    });

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

    document.querySelectorAll('[data-newsletter]').forEach((form) => {
      const status = form.querySelector('[data-form-status]');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        if (!form.elements.email.checkValidity()) { status.textContent = 'Please enter a valid email address.'; form.elements.email.focus(); return; }
        const topics = [...form.querySelectorAll('[name="topics"]:checked')].map((box) => box.value.toLowerCase());
        status.textContent = `Welcome! Expect notes on ${topics.join(', ') || 'everything'} — and your 10% code.`;
        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));
    }
  </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

Oleandra screenshot Premium

E-commerce

Oleandra

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