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

Graftly Llamada a la acción

A llamada a la acción block extracted from the Graftly template, available in Tailwind CSS.

0 0
Graftly Llamada a la acción 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 Call to action | Tailwind CSS UI Block</title>
  <meta name="description" content="A call to action 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 cta -->
    <section class="grid bg-forest text-white lg:grid-cols-2">
      <div class="relative min-h-[20rem]">
        <img src="https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&amp;fit=crop&amp;w=1200&amp;q=80" alt="Site crew in high-visibility vests standing in a row" class="absolute inset-0 h-full w-full object-cover">
      </div>
      <div class="px-5 py-16 md:px-14 md:py-24">
        <p class="tag text-xl">For employers</p>
        <h2 class="shout mt-2 text-5xl text-pink md:text-7xl">Short two people by Monday?</h2>
        <p class="mt-5 max-w-lg text-lg text-white/85">Tell us the shift, the pay and what the work is really like. We send people who have already heard the honest version, and you pay nothing until they have stayed four weeks.</p>
        <p class="mt-8 flex flex-wrap items-center gap-5">
          <a href="employers.html" class="bg-pink px-7 py-4 font-bold text-night transition hover:bg-white">How hiring works</a>
          <a href="tel:+441315550162" class="font-bold underline decoration-teal decoration-4 underline-offset-4">0131 555 0162</a>
        </p>
      </div>
    </section>
    <!-- block:end cta -->
<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