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

SparkWise Contact

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

0 140
SparkWise Contact 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 Contact | Tailwind CSS UI Block</title>
    <meta name="description" content="A contact 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 contact -->
    <section id="contact" class="py-32 bg-white">
        <div class="max-w-7xl mx-auto px-6">
            <div class="flex flex-col lg:flex-row rounded-[60px] overflow-hidden shadow-2xl border border-gray-100">
                <!-- Contact Form -->
                <div class="lg:w-1/2 p-12 md:p-20 bg-white">
                    <h2 class="text-5xl font-black font-fredoka mb-4">Let's Ignite<br>The Spark</h2>
                    <p class="text-gray-500 font-medium mb-12">Have questions? We'd love to hear from you. Send us a message and we'll respond within 24 hours.</p>

                    <form class="space-y-6">
                        <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">
                            <input type="text" placeholder="Your Name" class="w-full bg-gray-50 border border-gray-100 rounded-2xl px-6 py-4 text-sm font-bold focus:ring-2 focus:ring-brand-yellow transition outline-none">
                            <input type="email" placeholder="Email Address" class="w-full bg-gray-50 border border-gray-100 rounded-2xl px-6 py-4 text-sm font-bold focus:ring-2 focus:ring-brand-yellow transition outline-none">
                        </div>
                        <input type="text" placeholder="Subject" class="w-full bg-gray-50 border border-gray-100 rounded-2xl px-6 py-4 text-sm font-bold focus:ring-2 focus:ring-brand-yellow transition outline-none">
                        <textarea rows="5" placeholder="Your Message" class="w-full bg-gray-50 border border-gray-100 rounded-2xl px-6 py-4 text-sm font-bold focus:ring-2 focus:ring-brand-yellow transition outline-none resize-none"></textarea>
                        <button class="w-full bg-brand-yellow text-brand-dark py-5 rounded-2xl font-black text-lg hover:scale-[1.02] transition shadow-xl shadow-brand-yellow/20">Send Spark</button>
                    </form>
                </div>

                <!-- Map Area -->
                <div class="lg:w-1/2 bg-gray-100 relative min-h-[400px]">
                    <!-- Map Example -->
                    <div class="relative h-[400px] lg:absolute lg:inset-0 lg:h-auto overflow-hidden">
                        <iframe
                            class="w-full h-full border-0"
                            title="Map showing SparkWise Academy in San Francisco"
                            src="https://www.google.com/maps?q=San+Francisco,+CA&z=13&output=embed"
                            loading="lazy"
                            referrerpolicy="no-referrer-when-downgrade"
                            allowfullscreen>
                        </iframe>

                        <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center pointer-events-none">
                            <div class="relative inline-block">
                                <div class="w-16 h-16 bg-brand-yellow rounded-full flex items-center justify-center text-brand-dark text-3xl shadow-2xl animate-bounce relative z-10">
                                    <i class="fa-solid fa-location-dot"></i>
                                </div>
                                <div class="absolute bottom-0 left-1/2 -translate-x-1/2 w-8 h-4 bg-black/10 rounded-[100%] blur-sm"></div>
                            </div>
                            <div class="mt-4 bg-white px-6 py-3 rounded-2xl shadow-xl whitespace-nowrap">
                                <p class="font-black font-fredoka">SparkWise Academy</p>
                                <p class="text-xs text-gray-400 font-bold">Main St, San Francisco, CA</p>
                            </div>
                        </div>
                    </div>

                    <!-- Contact Cards Overlay -->
                    <div class="relative grid grid-cols-1 sm:grid-cols-2 gap-4 p-6 lg:absolute lg:bottom-10 lg:left-10 lg:right-10 lg:p-0">
                        <div class="bg-brand-accent p-6 rounded-3xl text-white shadow-2xl">
                            <i class="fa-solid fa-phone text-brand-yellow text-xl mb-4 block"></i>
                            <p class="text-xs font-bold uppercase tracking-widest opacity-60 mb-1">Call Us</p>
                            <p class="font-bold">+1 (555) 000-1111</p>
                        </div>
                        <div class="bg-white p-6 rounded-3xl text-brand-dark shadow-2xl">
                            <i class="fa-solid fa-envelope text-brand-yellow text-xl mb-4 block"></i>
                            <p class="text-xs font-bold uppercase tracking-widest opacity-60 mb-1">Email Us</p>
                            <p class="font-bold">hello@sparkwise.edu</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- block:end contact -->
<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