Responsive Contact Form
Web2tailwind.com

Output

Code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>
    <link href="https://unpkg.com/[email protected]^1.0/dist/tailwind.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script>
    <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Roboto&display=swap" rel="stylesheet">
</head>

<body style="font-family:Roboto">
   <section id="contact" class="contact">
    <div class="container">
        <div class="mb-4">
            <h2 class="font-bold text-4xl text-gray-800">Contact Us</h2>
        </div>
        <div class="md:flex">

            <div class="w-full mb-8 md:w-1/3">
                <div class="">
                    <h3 class="font-open-sans font-semibold text-2xl text-gray-800">Vesperr</h3>
                    <p class="text-gray-700 font-open-sans">Cras fermentum odio eu feugiat. Justo eget magna fermentum iaculis eu non diam phasellus.
                        Scelerisque felis imperdiet proin fermentum leo. Amet volutpat consequat mauris nunc congue.</p>
                    <div class="social-links">
                        <a href="#" class="twitter"><i class="icofont-twitter"></i></a>
                        <a href="#" class="facebook"><i class="icofont-facebook"></i></a>
                        <a href="#" class="instagram"><i class="icofont-instagram"></i></a>
                        <a href="#" class="linkedin"><i class="icofont-linkedin"></i></a>
                    </div>
                </div>
            </div>

            <div class="w-full md:w-1/3" data-aos="fade-up" data-aos-delay="200">
                <div class="info">
                    <div class="flex items-start mb-8">
                        <i class="fas ml-1 text-3xl fa-map-marker-alt text-green-400"></i>
                        <p class="pl-4 text-gray-700">A108 Adam Street<br>New York, NY 535022</p>
                    </div>

                    <div class="flex items-start my-8">
                        <i class="fas fa-envelope-open text-3xl text-green-400"></i>
                        <p class="pl-3 text-gray-700">[email protected]</p>
                    </div>

                    <div class="flex items-start my-8">
                        <i class="fas fa-id-card-alt text-3xl text-green-400"></i>
                        <p class="pl-3 text-gray-700">+1 5589 55488 55s</p>
                    </div>

                </div>
            </div>

            <div class="w-full md:w-1/3" data-aos="fade-up" data-aos-delay="300">
                <form action="forms/contact.php" method="post" role="form" class="php-email-form">
                    <div class="form-group">
                        <input type="text" name="name" class="w-full border mb-2 px-3 py-2" id="name"
                            placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 chars">
                        <div class="validate"></div>
                    </div>
                    <div class="form-group">
                        <input type="email" class="w-full border mb-2 px-3 py-2" name="email" id="email"
                            placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email">
                        <div class="validate"></div>
                    </div>
               
                    <div class="form-group">
                        <textarea class="w-full border mb-2 px-3 py-2" name="message" rows="5" data-rule="required"
                            data-msg="Please write something for us" placeholder="Message"></textarea>
                        <div class="validate"></div>
                    </div>

                    <div class="text-center">
                        <button type="submit"
                            class="bg-blue-600 text-gray-200 rounded rounded-full px-4 py-2 font-open-sans">Send
                            Message</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>


</body>

</html>
© 2019 - 2022 Web2tailwind.com