Neumorphism - 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>Neumorphism</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrQdErkf8TZ4lT2M2IQ6uG4cywZqzVZoua3b2d6Q2s3oN1y2Z1k8dCtmwixWyOoJLvX02fT9/Tm2T5y/sA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body { background: #ecf0f3; display: flex; justify-content: center; align-items: center; height: 100vh; flex-direction: column; } .product-listing { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px; } .product-card { background: #ecf0f3; border-radius: 15px; box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.1), -7px -7px 15px rgba(255, 255, 255, 0.7); transition: transform 0.3s ease-in-out; width: 300px; text-align: center; position: relative; padding: 20px; } .product-card:hover { transform: translateY(-10px); } .product-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; } .product-details { padding: 20px; color: #333; } .product-title { font-size: 1.5em; margin-bottom: 10px; } .product-description { font-size: 1em; margin-bottom: 20px; } .product-price { font-size: 1.2em; margin-bottom: 20px; } .buy-now { background: #3498db; color: #fff; padding: 10px 20px; border-radius: 25px; text-transform: uppercase; text-decoration: none; transition: background 0.3s ease-in-out; } .buy-now:hover { background: #2980b9; } .product-card .fa-heart { position: absolute; top: 20px; right: 20px; font-size: 1.5em; color: #e74c3c; cursor: pointer; transition: color 0.3s ease-in-out; } .product-card .fa-heart:hover { color: #c0392b; } </style> </head> <body> <div class="product-listing"> <div class="product-card"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 19</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$209.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <div class="product-card"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 20</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$219.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> <div class="product-card"> <i class="fa fa-heart"></i> <img src="https://via.placeholder.com/300x200" alt="Product Image"> <div class="product-details"> <h2 class="product-title">Product 21</h2> <p class="product-description">This is a brief description of the product.</p> <p class="product-price">$229.99</p> <a href="#" class="buy-now">Buy Now</a> </div> </div> </div> </body> </html>