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

Pivotra Hero

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

0 90
Pivotra Hero preview

Download Codebase

Commercial License

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

pivotra.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>Pivotra Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Pivotra template, available in Tailwind CSS.">
  <meta name="keywords" content="Pivotra, Tailwind CSS template, HTML website template, agency template, digital agency, creative studio, portfolio, case studies, testimonials carousel">
  <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="Pivotra | Tailwind CSS Agency Template">
  <meta property="og:description" content="A bright, confident Tailwind CSS digital agency template with a quote-capture hero, service cards, featured projects, a draggable process slider, testimonials and a journal.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Pivotra template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Pivotra | Tailwind CSS Agency Template">
  <meta name="twitter:description" content="A bright, confident Tailwind CSS digital agency template with a quote-capture hero, service cards, featured projects, a draggable process slider, testimonials and a journal.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Pivotra template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Instrument+Serif:ital@1&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            cobalt: '#3b55e3',
            sky: '#b9cee1',
            graphite: '#2a2a2d',
            mist: '#e0e4ec'
          },
          fontFamily: {
            sans: ['Outfit', 'ui-sans-serif', 'system-ui', 'sans-serif'],
            accent: ['"Instrument Serif"', 'Georgia', '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 spin-slow { to { transform: rotate(360deg); } }
    html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
    [hidden] { display: none !important; }
    .plus-grid { background-image: linear-gradient(#d9dde6 1px, transparent 1px), linear-gradient(90deg, #d9dde6 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
    .no-scrollbar { scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    [data-drag-scroll] { cursor: grab; }
    [data-drag-scroll].is-dragging { cursor: grabbing; user-select: none; }
    .spin-badge { animation: spin-slow 16s linear infinite; }
    .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; }
      .spin-badge { animation: none; }
      [data-carousel-track] { transition: none !important; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-white font-sans font-light text-graphite antialiased">
<!-- block:start hero -->
  <section id="hero" class="px-6 py-16 lg:px-10 lg:py-24">
    <div class="mx-auto grid max-w-7xl items-center gap-14 lg:grid-cols-2">
      <div data-reveal>
        <h1 class="text-5xl font-medium leading-[1.05] tracking-tight md:text-6xl lg:text-7xl">Take your business to its <span class="font-accent font-normal italic text-cobalt underline decoration-1 underline-offset-[10px]">next peak</span></h1>
        <p class="mt-8 max-w-md text-lg text-graphite/70">Like every good studio, our reputation rests on one thing: the results our latest projects deliver.</p>
        <hr class="my-12 max-w-md border-graphite/30">
        <h2 class="text-3xl font-normal">Request a free estimate</h2>
        <p class="mt-1 text-graphite/70">Drop your email and we'll reply within a day.</p>
        <form class="mt-8 flex max-w-md flex-col border border-graphite/30 sm:flex-row" onsubmit="event.preventDefault();">
          <label for="quote-topic" class="sr-only">Topic</label>
          <select id="quote-topic" class="border-b border-graphite/30 bg-white px-5 py-4 text-sm font-medium focus:outline-none sm:border-b-0 sm:border-r">
            <option>Select topic</option>
            <option>Branding</option>
            <option>Web &amp; app</option>
            <option>Marketing</option>
          </select>
          <label for="quote-email" class="sr-only">Your email</label>
          <div class="flex flex-1 items-center gap-3 px-5">
            <i class="fa-regular fa-envelope text-graphite/60" aria-hidden="true"></i>
            <input id="quote-email" type="email" required placeholder="Your email ..." class="w-full py-4 text-sm focus:outline-none">
            <button type="submit" aria-label="Send" class="text-lg"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
          </div>
        </form>
      </div>
      <div data-reveal style="--reveal-delay:120ms" class="relative mx-auto aspect-square w-full max-w-xl">
        <div class="plus-grid absolute -left-10 top-0 h-2/3 w-2/3" aria-hidden="true"></div>
        <div class="absolute inset-[10%] overflow-hidden bg-sky" style="clip-path: polygon(40% 0, 60% 0, 60% 30%, 82% 8%, 96% 22%, 74% 40%, 100% 40%, 100% 60%, 74% 60%, 96% 78%, 82% 92%, 60% 70%, 60% 100%, 40% 100%, 40% 70%, 18% 92%, 4% 78%, 26% 60%, 0 60%, 0 40%, 26% 40%, 4% 22%, 18% 8%, 40% 30%);">
          <img src="https://images.unsplash.com/photo-1758691030817-a6271a533c42?auto=format&fit=crop&w=900&h=900&q=80" alt="Smiling client reviewing results on a tablet" class="h-full w-full object-cover grayscale">
        </div>
        <div class="absolute right-0 top-[22%] bg-white p-4 shadow-xl">
          <p class="text-[11px] text-graphite/50">Report <i class="fa-solid fa-caret-down" aria-hidden="true"></i></p>
          <div class="mt-2 flex h-10 items-end gap-2" aria-hidden="true">
            <span class="h-4 w-3 bg-mist"></span><span class="h-10 w-3 bg-cobalt"></span><span class="h-7 w-3 bg-mist"></span><span class="h-2 w-3 bg-mist"></span>
          </div>
          <p class="mt-3 border-t border-mist pt-2 text-sm font-medium"><span data-count-to="12375">12,375</span> <span class="text-[10px] font-normal text-emerald-500">&uarr; 5.2%</span></p>
          <p class="text-[10px] text-graphite/50">Daily visitors</p>
        </div>
        <div class="absolute bottom-[14%] left-0 w-44 bg-cobalt p-5 text-white shadow-2xl">
          <p class="flex justify-between text-[11px] font-medium uppercase tracking-wide">Profit <span class="text-emerald-300">&uarr; 15.5%</span></p>
          <p class="mt-4 text-3xl font-medium">$<span data-count-to="2682">2,682</span></p>
        </div>
      </div>
    </div>
  </section>
  <!-- block:end hero -->
<script>
    const menuToggle = document.getElementById('menu-toggle');
    const mobileMenu = document.getElementById('mobile-menu');
    if (menuToggle && mobileMenu) {
      menuToggle.addEventListener('click', () => {
        const expanded = menuToggle.getAttribute('aria-expanded') === 'true';
        menuToggle.setAttribute('aria-expanded', String(!expanded));
        mobileMenu.hidden = expanded;
      });
    }

    document.querySelectorAll('[data-drag-scroll]').forEach((rail) => {
      let startX = 0, startScroll = 0, dragging = false;
      rail.addEventListener('pointerdown', (event) => {
        if (event.pointerType !== 'mouse') return;
        dragging = true; startX = event.clientX; startScroll = rail.scrollLeft;
        rail.classList.add('is-dragging');
      });
      window.addEventListener('pointermove', (event) => {
        if (!dragging) return;
        rail.scrollLeft = startScroll - (event.clientX - startX);
      });
      window.addEventListener('pointerup', () => { dragging = false; rail.classList.remove('is-dragging'); });
    });

    document.querySelectorAll('[data-carousel]').forEach((carousel) => {
      const track = carousel.querySelector('[data-carousel-track]');
      const dots = carousel.querySelectorAll('[data-carousel-dot]');
      const count = track.children.length;
      let index = 0;
      const goTo = (next) => {
        index = (next + count) % count;
        track.style.transform = `translateX(-${index * 100}%)`;
        dots.forEach((dot, i) => {
          dot.classList.toggle('bg-cobalt', i === index);
          dot.classList.toggle('bg-white/30', i !== index);
          dot.setAttribute('aria-current', String(i === index));
        });
      };
      carousel.querySelector('[data-carousel-prev]').addEventListener('click', () => goTo(index - 1));
      carousel.querySelector('[data-carousel-next]').addEventListener('click', () => goTo(index + 1));
      dots.forEach((dot) => dot.addEventListener('click', () => goTo(Number(dot.dataset.carouselDot))));
    });

    document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });

    const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    if (!reduceMotion && !navigator.webdriver && 'IntersectionObserver' in window) {
      document.body.classList.add('reveal-ready');
      const revealObserver = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add('is-visible');
          revealObserver.unobserve(entry.target);
        });
      }, { threshold: 0.15 });
      document.querySelectorAll('[data-reveal]').forEach((el) => revealObserver.observe(el));

      const countObserver = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          const el = entry.target;
          const target = parseInt(el.dataset.countTo, 10);
          const start = performance.now();
          const step = (now) => {
            const progress = Math.min((now - start) / 700, 1);
            el.textContent = Math.round(progress * target).toLocaleString('en-US');
            if (progress < 1) requestAnimationFrame(step);
          };
          requestAnimationFrame(step);
          countObserver.unobserve(el);
        });
      }, { threshold: 0.4 });
      document.querySelectorAll('[data-count-to]').forEach((el) => countObserver.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

Pivotra screenshot Premium

Agency

Pivotra

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