Minimalistic Section - 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>Minimalistic Section</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <style> body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; background: linear-gradient(135deg, #e0eafc, #cfdef3); display: flex; justify-content: center; align-items: center; height: 100vh; } .minimalistic-section { background: #ffffff; border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); padding: 40px; text-align: center; width: 85%; max-width: 950px; animation: fadeIn 1s ease-out; } .minimalistic-section h1 { font-size: 2.2em; margin-bottom: 20px; color: #333; } .minimalistic-section p { font-size: 1em; color: #444; margin-bottom: 20px; } .minimalistic-section button { background: #e0eafc; color: #444; border: none; padding: 10px 20px; font-size: 1em; border-radius: 5px; cursor: pointer; transition: background 0.3s ease; } .minimalistic-section button:hover { background: #cfdef3; color: #333; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } </style> </head> <body> <div class="minimalistic-section"> <h1>Minimalistic Design</h1> <p>Etiam convallis ultricies felis, non congue magna. Nulla facilisi. Cras et urna nec felis dictum vehicula.</p> <button>Learn More <i class="fas fa-arrow-right"></i></button> </div> <script> document.querySelector('button').addEventListener('click', function() { alert('Learn more about the Minimalistic Design!'); }); </script> </body> </html>