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

Graftly Portada

A portada block extracted from the Graftly template, available in Tailwind CSS.

0 0
Graftly Portada preview

Download Codebase

Commercial License

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

graftly.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>Graftly Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Graftly template, available in Tailwind CSS.">
  <meta name="keywords" content="Graftly, Tailwind CSS template, HTML website template, recruiting agency template, job board website, staffing agency template, jobs list with filters, employer page, business template">
  <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="Graftly | Tailwind CSS Business Template">
  <meta property="og:description" content="A loud Tailwind CSS template for recruiting agencies and local job boards, with a photo slider, a jobs list with filters, a week planner, a job page, an employers page and a contact form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Graftly template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Graftly | Tailwind CSS Business Template">
  <meta name="twitter:description" content="A loud Tailwind CSS template for recruiting agencies and local job boards, with a photo slider, a jobs list with filters, a week planner, a job page, an employers page and a contact form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Graftly 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=Anton&family=Archivo:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            night: { DEFAULT: '#0b120d', soft: '#18221a' },
            forest: { DEFAULT: '#124a0d', deep: '#0b3308' },
            pink: { DEFAULT: '#ff4d7e', deep: '#d81f58' },
            teal: { DEFAULT: '#1fb8c9', deep: '#0c7f8c' },
            cream: { DEFAULT: '#f4f1e8', deep: '#e6e1d3' },
            line: '#d8d3c4'
          },
          fontFamily: {
            sans: ['Archivo', 'sans-serif'],
            display: ['Anton', 'Impact', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .shout { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
    .tag { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .03em; color: #1fb8c9; }
    .stamp { display: inline-block; background: #124a0d; color: #ff4d7e; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; line-height: 1; padding: .45rem .7rem .4rem; letter-spacing: .02em; }
    .disc { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; transition: transform .25s ease, background-color .25s ease; }
    .disc:hover { transform: scale(1.08); }
    .dots { flex: 1; min-width: 2rem; height: 0; border-top: 4px dotted currentColor; }
    .hero-photo { transition: opacity .7s ease; }
    .marquee { display: flex; overflow: hidden; gap: 2.5rem; }
    .marquee-track { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; animation: marquee 38s linear infinite; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    @keyframes marquee { to { transform: translateX(calc(-100% - 2.5rem)); } }
    .cell[aria-pressed="true"] { background: #ff4d7e; border-color: #ff4d7e; color: #0b120d; }
    .stack-card { position: absolute; inset: 0; transition: transform .45s ease, opacity .45s ease; }
    .stack-card:nth-child(1) { z-index: 3; }
    .stack-card:nth-child(2) { z-index: 2; transform: translate(14px, 14px) rotate(2deg); }
    .stack-card:nth-child(3) { z-index: 1; transform: translate(28px, 28px) rotate(4deg); }
    .stack-card:nth-child(n+4) { opacity: 0; transform: translate(28px, 28px) rotate(4deg); }
    .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) {
      .marquee { overflow-x: auto; }
      .marquee-track { animation: none; }
      .hero-photo, .stack-card, .disc { transition: none; }
    }
  </style>
</head>
<body class="bg-cream font-sans text-night antialiased">
<!-- block:start hero -->
    <section class="relative flex min-h-[46rem] flex-col justify-end overflow-hidden bg-night text-white lg:min-h-[52rem]" data-hero>
        <img src="https://images.unsplash.com/photo-1600565193348-f74bd3c7ccdf?auto=format&amp;fit=crop&amp;w=1600&amp;q=80" alt="Cook tossing a flaming pan in a restaurant kitchen" data-hero-photo class="hero-photo absolute inset-0 h-full w-full object-cover opacity-100">
        <img src="https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&amp;fit=crop&amp;w=1600&amp;q=80" alt="Tall warehouse aisle lined with stacked pallets" data-hero-photo class="hero-photo absolute inset-0 h-full w-full object-cover opacity-0">
        <img src="https://images.unsplash.com/photo-1594824476967-48c8b964273f?auto=format&amp;fit=crop&amp;w=1600&amp;q=80" alt="Care worker in teal scrubs standing with her arms folded" data-hero-photo class="hero-photo absolute inset-0 h-full w-full object-cover opacity-0">
        <img src="https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&amp;fit=crop&amp;w=1600&amp;q=80" alt="Shop assistant taking a card payment at the till" data-hero-photo class="hero-photo absolute inset-0 h-full w-full object-cover opacity-0">
      <div class="absolute inset-0 bg-night/55" aria-hidden="true"></div>
      <div class="absolute left-0 top-0 h-[78%] w-[82%] bg-forest sm:w-[26rem] md:left-10 lg:w-[30rem]" aria-hidden="true"></div>

      <div class="relative px-5 pb-10 pt-40 md:px-10 md:pb-14 md:pl-20">
        <p class="tag text-2xl md:text-3xl"><span data-hero-kind>Kitchens</span> &middot; <span data-hero-open>42</span> open this week</p>
        <h1 class="shout mt-3 text-[3.6rem] text-pink sm:text-7xl md:text-8xl xl:text-[9.5rem]">
          <span class="block" data-hero-line>Honest work</span>
          <span class="block" data-hero-line>starts Monday</span>
        </h1>
        <div class="mt-7 flex max-w-[24rem] items-center gap-3 text-teal">
          <span class="h-4 w-4 shrink-0 rounded-full bg-teal"></span>
          <span class="dots"></span>
          <button type="button" data-hero-prev aria-label="Previous kind of work" class="disc h-12 w-12 shrink-0 bg-teal text-xl text-night"><i class="fa-solid fa-arrow-left"></i></button>
          <button type="button" data-hero-next aria-label="Next kind of work" class="disc h-12 w-12 shrink-0 bg-teal text-xl text-night"><i class="fa-solid fa-arrow-right"></i></button>
        </div>
        <div class="mt-10 grid gap-6 border-t border-white/25 pt-6 md:grid-cols-[1.4fr_1fr] md:items-end">
          <p class="max-w-xl text-lg text-white/90" data-hero-text>Porters, line cooks and breakfast chefs for kitchens that pay on time and feed you on shift.</p>
          <p class="flex flex-wrap gap-3 md:justify-end">
            <a href="jobs.html" class="bg-pink px-7 py-4 font-bold text-night transition hover:bg-white">See all 126 jobs</a>
            <a href="employers.html" class="border-2 border-white px-7 py-3.5 font-bold transition hover:bg-white hover:text-night">I need staff</a>
          </p>
        </div>
      </div>

      <div class="absolute right-5 top-1/2 flex -translate-y-1/2 flex-col gap-6 md:right-10" role="tablist" aria-label="Kinds of work">
          <button type="button" role="tab" data-hero-dot aria-selected="true" aria-label="Kitchens" class="h-3 w-3 rounded-full transition bg-white"></button>
          <button type="button" role="tab" data-hero-dot aria-selected="false" aria-label="Warehouses" class="h-3 w-3 rounded-full transition bg-white/40"></button>
          <button type="button" role="tab" data-hero-dot aria-selected="false" aria-label="Care" class="h-3 w-3 rounded-full transition bg-white/40"></button>
          <button type="button" role="tab" data-hero-dot aria-selected="false" aria-label="Shops" class="h-3 w-3 rounded-full transition bg-white/40"></button>
      </div>
      <script type="application/json" data-hero-slides>[{"kind":"Kitchens","open":42,"lines":["Honest work","starts Monday"],"text":"Porters, line cooks and breakfast chefs for kitchens that pay on time and feed you on shift."},{"kind":"Warehouses","open":31,"lines":["Real shifts","real wages"],"text":"Pickers, packers and forklift drivers on rotas you see two weeks ahead, never the night before."},{"kind":"Care","open":27,"lines":["Good people","wanted now"],"text":"Care assistants and ward hosts for homes and clinics that train you properly before your first shift."},{"kind":"Shops","open":26,"lines":["Local jobs","no nonsense"],"text":"Till, shelves and stockroom work a bus ride from home, with hours that fit around school runs."}]</script>
    </section>
    <!-- block:end hero -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((toggle) => {
      const menu = document.getElementById(toggle.getAttribute("aria-controls"));
      if (!menu) return;
      toggle.addEventListener("click", () => {
        const open = toggle.getAttribute("aria-expanded") !== "true";
        toggle.setAttribute("aria-expanded", String(open));
        menu.hidden = !open;
      });
    });

    document.querySelectorAll("[data-hero]").forEach((hero) => {
      const slides = JSON.parse(hero.querySelector("[data-hero-slides]").textContent);
      const photos = hero.querySelectorAll("[data-hero-photo]");
      const dots = hero.querySelectorAll("[data-hero-dot]");
      const lines = hero.querySelectorAll("[data-hero-line]");
      let current = 0;
      const show = (index) => {
        current = (index + slides.length) % slides.length;
        const slide = slides[current];
        photos.forEach((photo, i) => { photo.classList.toggle("opacity-100", i === current); photo.classList.toggle("opacity-0", i !== current); });
        dots.forEach((dot, i) => { dot.setAttribute("aria-selected", String(i === current)); dot.classList.toggle("bg-white", i === current); dot.classList.toggle("bg-white/40", i !== current); });
        hero.querySelector("[data-hero-kind]").textContent = slide.kind;
        hero.querySelector("[data-hero-open]").textContent = slide.open;
        hero.querySelector("[data-hero-text]").textContent = slide.text;
        lines.forEach((line, i) => { line.textContent = slide.lines[i]; });
      };
      hero.querySelector("[data-hero-prev]").addEventListener("click", () => show(current - 1));
      hero.querySelector("[data-hero-next]").addEventListener("click", () => show(current + 1));
      dots.forEach((dot, i) => dot.addEventListener("click", () => show(i)));
    });

    document.querySelectorAll("[data-filter-group]").forEach((group) => {
      const items = group.closest("section").querySelectorAll("[data-filter-list] [data-category]");
      group.querySelectorAll("[data-filter]").forEach((button) => {
        button.addEventListener("click", () => {
          group.querySelectorAll("[data-filter]").forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
          items.forEach((item) => { item.hidden = button.dataset.filter !== "all" && item.dataset.category !== button.dataset.filter; });
        });
      });
    });

    document.querySelectorAll("[data-week]").forEach((week) => {
      const pool = [
        { name: "Care assistant, Portobello", pay: 13.4, part: "Early" },
        { name: "Breakfast chef, Old Town", pay: 15.2, part: "Early" },
        { name: "Weekend till, Stockbridge", pay: 12.6, part: "Early" },
        { name: "Kitchen porter, Leith", pay: 12.8, part: "Late" },
        { name: "Forklift driver, Granton", pay: 15.9, part: "Late" },
        { name: "Evening cleaner, New Town", pay: 12.9, part: "Late" },
        { name: "Night picker, Newhaven", pay: 14.1, part: "Night" },
        { name: "Night care assistant, Trinity", pay: 14.8, part: "Night" },
        { name: "Bakery hand, Canonmills", pay: 13.6, part: "Night" }
      ];
      const open = { Early: 38, Late: 52, Night: 36 };
      const cells = week.querySelectorAll("[data-cell]");
      const update = () => {
        const picked = [...cells].filter((cell) => cell.getAttribute("aria-pressed") === "true");
        const parts = [...new Set(picked.map((cell) => cell.dataset.part))];
        const fits = pool.filter((job) => parts.includes(job.part));
        const rate = fits.length ? fits.reduce((sum, job) => sum + job.pay, 0) / fits.length : 0;
        week.querySelector("[data-week-shifts]").textContent = picked.length;
        week.querySelector("[data-week-hours]").textContent = picked.length * 8;
        week.querySelector("[data-week-pay]").textContent = Math.round(picked.length * 8 * rate).toLocaleString("en-GB");
        week.querySelector("[data-week-count]").textContent = parts.reduce((sum, part) => sum + open[part], 0);
        week.querySelector("[data-week-jobs]").innerHTML = fits.length
          ? fits.slice(0, 3).map((job) => `<li class="flex items-baseline justify-between gap-4"><span>${job.name}</span><span class="font-bold text-pink">&pound;${job.pay.toFixed(2)}</span></li>`).join("")
          : `<li class="text-white/70">Tap a shift on the left and the jobs appear here.</li>`;
        const link = week.querySelector("[data-week-link]");
        link.href = link.getAttribute("href").split("?")[0] + (picked.length ? "?week=" + encodeURIComponent(picked.map((cell) => cell.dataset.cell).join(", ")) : "");
      };
      cells.forEach((cell) => cell.addEventListener("click", () => {
        cell.setAttribute("aria-pressed", String(cell.getAttribute("aria-pressed") !== "true"));
        update();
      }));
      update();
    });

    document.querySelectorAll("[data-stack]").forEach((stack) => {
      stack.querySelector("[data-stack-next]")?.addEventListener("click", () => {
        const cards = stack.querySelector("[data-stack-cards]");
        cards.append(cards.firstElementChild);
      });
    });

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();
  </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

Graftly screenshot Premium

Business

Graftly

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