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

MindPlay Call to action

A call to action block extracted from the MindPlay template, available in Tailwind CSS.

0 120
MindPlay Call to action preview

Download Codebase

Commercial License

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

mindplay.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>MindPlay Call to action | Tailwind CSS UI Block</title>
    <meta name="description" content="A call to action block extracted from the MindPlay template, available in Tailwind CSS.">
    <meta name="keywords" content="MindPlay, Tailwind CSS template, HTML website template, kids education template, school landing page, learning games, responsive education design">
    <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="MindPlay | Tailwind CSS Kids Education Template">
    <meta property="og:description" content="A playful Tailwind CSS education website template for children&#39;s activities, learning games, creative exercises, and school programs.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="MindPlay template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="MindPlay | Tailwind CSS Kids Education Template">
    <meta name="twitter:description" content="A playful Tailwind CSS education website template for children&#39;s activities, learning games, creative exercises, and school programs.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="MindPlay template preview">
<!-- Scripts & Styles -->
    <script src="https://cdn.tailwindcss.com/3.4.17"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
    
    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#7c3aed',
                        secondary: '#fb923c',
                        accent: '#fbbf24',
                        dark: '#1e1b4b'
                    },
                    fontFamily: {
                        sans: ['Outfit', 'sans-serif'],
                    },
                    borderRadius: {
                        '4xl': '2rem',
                        '5xl': '3rem',
                    }
                }
            }
        }
    </script>

    <style>
        .squiggle-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50 Q 25 25 40 50 T 70 50 T 100 50' stroke='%237c3aed' stroke-width='2' fill='none' opacity='0.1'/%3E%3C/svg%3E");
        }
        .marquee {
            display: flex;
            overflow: hidden;
            user-select: none;
            gap: 2rem;
        }
        .marquee-content {
            flex-shrink: 0;
            display: flex;
            justify-content: space-around;
            gap: 2rem;
            min-width: 100%;
            animation: scroll 30s linear infinite;
        }
        @keyframes scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        [hidden] { display: none !important; }
        .mp-mobile-nav:not([hidden]) {
            display: flex;
        }
        @media (min-width: 1024px) {
            .mp-mobile-nav,
            .mp-mobile-nav:not([hidden]) { display: none !important; }
        }
        .mp-nav-link.is-active {
            color: #7c3aed !important;
            background: rgba(124, 58, 237, 0.1) !important;
        }
    </style>
</head>
<body class="bg-[#fdfcfd] text-dark overflow-x-hidden">
<!-- block:start cta -->
    <section class="py-20 px-6">
        <div class="max-w-7xl mx-auto bg-primary rounded-[4rem] p-10 md:p-20 text-white relative overflow-hidden">
            <div class="absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"></div>
            <div class="relative z-10 flex flex-col lg:flex-row items-center justify-between gap-12">
                <div class="lg:w-1/2">
                    <h2 class="text-4xl md:text-5xl font-extrabold mb-6 leading-tight">Discover Fun and Engaging <span class="text-accent">Learning</span> for Kids</h2>
                    <p class="text-white/80 font-medium mb-10 leading-relaxed">Our programs offer a dynamic blend of interactive activities, creative exercises, and educational games that spark young minds.</p>
                    <div class="flex flex-wrap items-center gap-6">
                        <button class="bg-white text-primary px-10 py-5 rounded-3xl font-black shadow-xl hover:bg-accent hover:text-dark transition">Contact Us <i class="fa-solid fa-paper-plane ml-2"></i></button>
                        <div class="flex items-center gap-3">
                            <div class="flex -space-x-3">
                                <img class="w-10 h-10 rounded-full border-2 border-white" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-1.jpg" alt="child">
                                <img class="w-10 h-10 rounded-full border-2 border-white" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-3.jpg" alt="child">
                                <img class="w-10 h-10 rounded-full border-2 border-white" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-5.jpg" alt="child">
                            </div>
                            <span class="text-sm font-bold text-white/90">Join 10k+ Happy Kids</span>
                        </div>
                    </div>
                </div>
                <div class="lg:w-1/3">
                    <div class="relative p-4 bg-white/10 backdrop-blur-md rounded-[3rem]">
                        <img class="w-full h-80 object-cover rounded-[2.5rem]" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/gen_0231a12b03_25fffcffbcc0ca94.png" alt="happy children group playing together, educational background, vibrant colors, primary school settin" />
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- block:end cta -->
<script>
      (function () {
        var links = document.querySelectorAll("[data-nav-link]");
        var menuButton = document.getElementById("mp-menu-button");
        var mobileNav = document.getElementById("mp-mobile-nav");

        function setActive(href) {
          links.forEach(function (link) {
            var isActive = link.getAttribute("href") === href;
            link.classList.toggle("is-active", isActive);
            if (isActive) {
              link.setAttribute("aria-current", "page");
            } else {
              link.removeAttribute("aria-current");
            }
          });
        }

        links.forEach(function (link) {
          link.addEventListener("click", function () {
            setActive(link.getAttribute("href"));
          });
        });

        function setMenuOpen(open) {
          if (!menuButton || !mobileNav) return;
          mobileNav.hidden = !open;
          menuButton.setAttribute("aria-expanded", String(open));
          menuButton.setAttribute("aria-label", open ? "Close navigation menu" : "Open navigation menu");
        }

        if (menuButton && mobileNav) {
          menuButton.addEventListener("click", function () {
            setMenuOpen(mobileNav.hidden);
          });
          mobileNav.querySelectorAll("a, button").forEach(function (item) {
            item.addEventListener("click", function () { setMenuOpen(false); });
          });
          document.addEventListener("click", function (event) {
            if (!menuButton.contains(event.target) && !mobileNav.contains(event.target)) {
              setMenuOpen(false);
            }
          });
          document.addEventListener("keydown", function (event) {
            if (event.key === "Escape") setMenuOpen(false);
          });
          window.addEventListener("resize", function () {
            if (window.innerWidth >= 1024) setMenuOpen(false);
          });
        }
      })();
    </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

MindPlay screenshot Premium

Education

MindPlay

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