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

SparkWise Hero

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

0 137
SparkWise Hero preview

Download Codebase

Commercial License

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

sparkwise.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>SparkWise Hero | Tailwind CSS UI Block</title>
    <meta name="description" content="A hero block extracted from the SparkWise template, available in Tailwind CSS.">
    <meta name="keywords" content="SparkWise, Tailwind CSS template, HTML website template, school website template, preschool landing page, kids education, responsive learning 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="SparkWise | Tailwind CSS School Website Template">
    <meta property="og:description" content="A colorful Tailwind CSS school website template for children&#39;s learning activities, classes, teachers, and education programs.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="SparkWise template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="SparkWise | Tailwind CSS School Website Template">
    <meta name="twitter:description" content="A colorful Tailwind CSS school website template for children&#39;s learning activities, classes, teachers, and education programs.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="SparkWise 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=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap" rel="stylesheet">

    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        brand: {
                            yellow: '#f5d547',
                            dark: '#2d2610',
                            accent: '#3b3014'
                        }
                    },
                    fontFamily: {
                        fredoka: ['Fredoka', 'sans-serif'],
                        outfit: ['Outfit', 'sans-serif'],
                    }
                }
            }
        }
    </script>

    <style>
        body {
            font-family: 'Outfit', sans-serif;
        }
        .hero-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 3rem;
            line-height: 0.9;
        }
        @media (min-width: 400px) {
            .hero-title { font-size: 3.5rem; }
        }
        @media (min-width: 768px) {
            .hero-title { font-size: 8.75rem; }
        }
        .squiggle-path {
            stroke-dasharray: 10;
            animation: dash 20s linear infinite;
        }
        @keyframes dash {
            to { stroke-dashoffset: 1000; }
        }
    </style>
</head>
<body class="bg-brand-yellow text-brand-dark overflow-x-hidden">
<!-- block:start hero -->
    <section id="hero" class="relative min-h-[900px] flex flex-col items-center pt-12 md:pt-20">
        <!-- Floating Illustrations -->
        <div class="absolute top-20 left-10 md:left-40 bg-white p-3 rounded-2xl shadow-xl rotate-[-15deg] hidden sm:block z-10">
            <div class="w-12 h-12 flex items-center justify-center bg-red-50 text-red-500 rounded-xl">
                <i class="fa-solid fa-brain text-2xl"></i>
            </div>
        </div>
        <div class="absolute top-32 right-10 md:right-60 bg-white p-3 rounded-2xl shadow-xl rotate-[10deg] hidden sm:block z-10">
            <div class="w-12 h-12 flex items-center justify-center bg-orange-50 text-orange-500 rounded-xl">
                <i class="fa-solid fa-puzzle-piece text-2xl"></i>
            </div>
        </div>
        <div class="absolute top-[40%] right-[10%] bg-white p-3 rounded-2xl shadow-xl rotate-[-5deg] hidden lg:block z-10">
            <div class="w-12 h-12 flex items-center justify-center bg-blue-50 text-blue-500 rounded-xl">
                <i class="fa-solid fa-atom text-2xl"></i>
            </div>
        </div>

        <!-- Decorative Squiggles -->
        <svg class="absolute top-[40%] right-[20%] w-64 h-32 opacity-20 pointer-events-none hidden md:block" viewBox="0 0 200 100">
            <path d="M0 50 Q 50 0 100 50 T 200 50" fill="none" stroke="currentColor" stroke-width="2" class="squiggle-path" />
        </svg>

        <!-- Hero Content -->
        <div class="max-w-6xl mx-auto px-6 text-center relative z-10">
            <h1 class="hero-title font-black uppercase mb-8 tracking-tighter">
                GROWING WITH<br>KNOWLEDGE
            </h1>
            <p class="text-lg md:text-xl font-medium max-w-md mx-auto mb-12 opacity-80 leading-relaxed">
                Inspire curiosity, build confidence, and make every day a new adventure in learning.
            </p>
        </div>

        <!-- Main Image Container -->
        <div class="relative w-full max-w-2xl mx-auto -mt-20 md:-mt-40 pointer-events-none z-20">
            <img class="w-full h-auto object-contain" src="https://res.cloudinary.com/dh3jrqbfx/image/upload/v1785962271/Copilot_20260803_233205_dxjgvk_rziq5i.png" alt="portrait of a happy young boy with glasses and a backpack, arms crossed, holding books, smiling at c" />
        </div>

        <!-- Hero Grid Cards -->
        <div class="w-full max-w-6xl mx-auto px-6 -mt-32 md:-mt-48 relative z-30">
            <div class="grid grid-cols-1 md:grid-cols-4 items-stretch shadow-2xl rounded-[40px] overflow-hidden">
                <!-- Card 1: Dark -->
                <div class="bg-brand-accent p-10 text-white flex flex-col justify-between min-h-[300px]">
                    <h3 class="text-3xl font-black font-fredoka leading-tight">Bright Starts for Bright Minds</h3>
                    <div class="opacity-20">
                        <i class="fa-solid fa-sun text-8xl"></i>
                    </div>
                </div>
                <!-- Card 2: White -->
                <div class="bg-white p-10 flex flex-col justify-end min-h-[300px]">
                    <div class="mb-4">
                        <span class="text-6xl font-black text-brand-yellow font-fredoka">50+</span>
                    </div>
                    <p class="text-lg font-bold text-gray-500 uppercase tracking-widest leading-none">Qualified<br>Teachers</p>
                </div>
                <!-- Card 3: White with Link -->
                <div class="bg-white p-10 flex flex-col justify-between min-h-[300px] border-l border-gray-100">
                    <div>
                        <span class="text-6xl font-black text-orange-400 font-fredoka">20+</span>
                        <p class="text-lg font-bold text-gray-500 uppercase tracking-widest leading-none mt-2">Fun Learning<br>Activities</p>
                    </div>
                    <a href="#" class="text-brand-dark font-black border-b-2 border-brand-dark pb-1 inline-block self-start hover:opacity-70 transition">Join Now</a>
                </div>
                <!-- Card 4: Dark with Avatars -->
                <div class="bg-brand-accent p-10 text-white flex flex-col justify-end min-h-[300px]">
                    <div class="flex -space-x-3 mb-6">
                        <img class="w-12 h-12 rounded-full border-4 border-brand-accent" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-1.jpg" alt="student">
                        <img class="w-12 h-12 rounded-full border-4 border-brand-accent" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" alt="student">
                        <img class="w-12 h-12 rounded-full border-4 border-brand-accent" src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-3.jpg" alt="student">
                    </div>
                    <div class="mb-2">
                        <span class="text-6xl font-black font-fredoka">500+</span>
                    </div>
                    <p class="text-sm font-bold text-gray-400 uppercase tracking-widest">Happy Students</p>
                </div>
            </div>
        </div>
    </section>
    <!-- block:end hero -->
<script>
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenu = document.getElementById('mobile-menu');
        const menuBars = {
            top: mobileMenuButton.querySelector('[data-menu-bar="top"]'),
            middle: mobileMenuButton.querySelector('[data-menu-bar="middle"]'),
            bottom: mobileMenuButton.querySelector('[data-menu-bar="bottom"]')
        };

        const setMobileMenuOpen = (isOpen) => {
            mobileMenuButton.setAttribute('aria-expanded', String(isOpen));
            mobileMenuButton.setAttribute('aria-label', isOpen ? 'Close navigation menu' : 'Open navigation menu');
            mobileMenu.classList.toggle('hidden', !isOpen);
            mobileMenu.classList.toggle('flex', isOpen);
            menuBars.top.classList.toggle('translate-y-2', isOpen);
            menuBars.top.classList.toggle('rotate-45', isOpen);
            menuBars.middle.classList.toggle('opacity-0', isOpen);
            menuBars.bottom.classList.toggle('-translate-y-2', isOpen);
            menuBars.bottom.classList.toggle('-rotate-45', isOpen);
        };

        mobileMenuButton.addEventListener('click', () => {
            setMobileMenuOpen(mobileMenuButton.getAttribute('aria-expanded') !== 'true');
        });

        mobileMenu.addEventListener('click', (event) => {
            if (event.target.closest('a')) setMobileMenuOpen(false);
        });

        document.addEventListener('click', (event) => {
            if (!mobileMenuButton.contains(event.target) && !mobileMenu.contains(event.target)) {
                setMobileMenuOpen(false);
            }
        });

        document.addEventListener('keydown', (event) => {
            if (event.key === 'Escape' && mobileMenuButton.getAttribute('aria-expanded') === 'true') {
                setMobileMenuOpen(false);
                mobileMenuButton.focus();
            }
        });
    </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>

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