Modern Feedback - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> <title>Modern Feedback</title> <style> @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'); body { background: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%); font-family: 'Roboto', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .feedback-form-container { background: #fff; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); width: 350px; padding: 20px; animation: bounceIn 0.7s; } .feedback-form-container h2 { text-align: center; margin-bottom: 20px; color: #444; } .feedback-form-container form { display: flex; flex-direction: column; } .feedback-form-container form .form-group { margin-bottom: 15px; position: relative; } .feedback-form-container form .form-group input, .feedback-form-container form .form-group textarea { width: 92%; padding: 12px; border: 2px solid #e4e4e4; border-radius: 5px; outline: none; transition: border-color 0.3s; } .feedback-form-container form .form-group input:focus, .feedback-form-container form .form-group textarea:focus { border-color: #ff4a57; } .feedback-form-container form .form-group i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #ccc; } .feedback-form-container form button { background: #ff4a57; color: #fff; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s; } .feedback-form-container form button:hover { background: #e03d50; } @keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 0.9; transform: scale(1.05); } 70% { opacity: 1; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } } </style> </head> <body> <div class="feedback-form-container"> <h2>Modern Feedback</h2> <form id="modernFeedbackForm"> <div class="form-group"> <input type="text" id="name" placeholder="Your Name" required> <i class="fa fa-user"></i> </div> <div class="form-group"> <input type="email" id="email" placeholder="Your Email" required> <i class="fa fa-envelope"></i> </div> <div class="form-group"> <textarea id="message" rows="4" placeholder="Your Feedback" required></textarea> <i class="fa fa-comment"></i> </div> <button type="submit">Submit Feedback</button> </form> </div> <script src="https://kit.fontawesome.com/a076d05399.js"></script> <script> document.getElementById('modernFeedbackForm').addEventListener('submit', function(event) { event.preventDefault(); alert('Thank you for your modern feedback!'); }); </script> </body> </html>