Gradient Search Bar - 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"> <title>Gradient Search Bar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #ff7e5f, #feb47b); font-family: 'Arial', sans-serif; } .search-container { width: 400px; } .search-input { width: 100%; padding: 15px 20px; border: none; border-radius: 50px; background: #fff; font-size: 18px; outline: none; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: box-shadow 0.3s ease; } .search-input:focus { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } </style> </head> <body> <div class="search-container"> <input type="text" class="search-input" placeholder="Gradient Search..."> </div> <script> document.querySelector('.search-input').addEventListener('keypress', (e) => { if (e.key === 'Enter') { alert(`Searching for: ${document.querySelector('.search-input').value}`); } }); </script> </body> </html>