Main Content Area Neumorphism Design - 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>Main Content Area - Neumorphism Design</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f0f3; margin: 0; } .main-content { background: linear-gradient(to top left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0)); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6); border-radius: 15px; padding: 40px; width: 80%; max-width: 800px; transition: all 0.3s ease; position: relative; overflow: hidden; } .main-content:hover { transform: translateY(-10px); box-shadow: 5px 5px 15px rgba(0, 0, 0, .2), -5px -5px 15px rgba(255, 255, 255, .6); } .content-header { text-align: center; margin-bottom: 20px; } .content-header h1 { font-size: 2em; color: #333; } .content-body { font-size: 1.1em; line-height: 1.6; color: #666; } .icon-list { display: flex; justify-content: space-around; margin-top: 20px; } .icon-list i { font-size: 2em; color: #666; transition: color 0.3s ease, transform 0.3s ease; } .icon-list i:hover { color: #007bff; transform: scale(1.2); } </style> </head> <body> <div class="main-content"> <div class="content-header"> <h1>Welcome to Neumorphic Design</h1> </div> <div class="content-body"> <p> This is a highly professional "Main Content Area" utilizing neumorphism design principles. The design includes subtle shadows and gradients to create a soft, extruded effect. Additionally, the content area features animations and icons to enhance its attractiveness and usability. </p> </div> <div class="icon-list"> <i class="fas fa-home"></i> <i class="fas fa-envelope"></i> <i class="fas fa-bell"></i> <i class="fas fa-cog"></i> </div> </div> <script> document.querySelectorAll('.icon-list i').forEach(icon => { icon.addEventListener('mouseover', () => { icon.style.transform = 'rotate(360deg)'; icon.style.transition = 'transform 0.5s ease'; }); icon.addEventListener('mouseout', () => { icon.style.transform = 'rotate(0deg)'; }); }); </script> </body> </html>