Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Simple Hover Menu</title> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| body { | |
| font-family: 'Segoe UI', sans-serif; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| margin: 0; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .menu-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| width: 280px; | |
| } | |
| .menu-item { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| padding: 15px 20px; | |
| background: rgba(255, 255, 255, 0.1); | |
| backdrop-filter: blur(10px); | |
| border-radius: 12px; | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.1); | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| color: white; | |
| border: 1px solid rgba(255,255,255,0.2); | |
| } | |
| .menu-item:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| transform: translateY(-3px); | |
| } | |
| .menu-item i { | |
| margin-right: 15px; | |
| color: white; | |
| width: 24px; | |
| text-align: center; | |
| } | |
| .submenu { | |
| position: absolute; | |
| left: 100%; | |
| top: 0; | |
| width: 200px; | |
| display: none; | |
| background: rgba(255, 255, 255, 0.9); | |
| border-radius: 12px; | |
| box-shadow: 0 10px 25px rgba(0,0,0,0.15); | |
| overflow: hidden; | |
| transform-origin: left center; | |
| animation: scaleIn 0.2s ease-out forwards; | |
| } | |
| @keyframes scaleIn { | |
| 0% { | |
| transform: scaleX(0.8); | |
| opacity: 0; | |
| } | |
| 100% { | |
| transform: scaleX(1); | |
| opacity: 1; | |
| } | |
| } | |
| .menu-item:hover .submenu { | |
| display: block; | |
| } | |
| .submenu a { | |
| display: flex; | |
| align-items: center; | |
| padding: 12px 15px; | |
| color: #333; | |
| text-decoration: none; | |
| transition: all 0.2s ease; | |
| border-bottom: 1px solid rgba(0,0,0,0.05); | |
| } | |
| .submenu a:hover { | |
| background: #f8f9fa; | |
| padding-left: 20px; | |
| } | |
| .submenu a i { | |
| color: #667eea; | |
| font-size: 14px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="menu-container"> | |
| <div class="menu-item"> | |
| <i data-feather="home"></i> | |
| <span>Dashboard</span> | |
| <div class="submenu"> | |
| <a href="#"><i data-feather="bar-chart-2"></i> Analytics</a> | |
| <a href="#"><i data-feather="activity"></i> Statistics</a> | |
| <a href="#"><i data-feather="clock"></i> Recent</a> | |
| </div> | |
| </div> | |
| <div class="menu-item"> | |
| <i data-feather="shopping-bag"></i> | |
| <span>Products</span> | |
| <div class="submenu"> | |
| <a href="#"><i data-feather="plus-circle"></i> Add New</a> | |
| <a href="#"><i data-feather="list"></i> Inventory</a> | |
| <a href="#"><i data-feather="tag"></i> Categories</a> | |
| </div> | |
| </div> | |
| <div class="menu-item"> | |
| <i data-feather="users"></i> | |
| <span>Customers</span> | |
| <div class="submenu"> | |
| <a href="#"><i data-feather="user-plus"></i> New Customers</a> | |
| <a href="#"><i data-feather="user-check"></i> Loyalty</a> | |
| <a href="#"><i data-feather="credit-card"></i> Payments</a> | |
| </div> | |
| </div> | |
| <div class="menu-item"> | |
| <i data-feather="settings"></i> | |
| <span>Settings</span> | |
| <div class="submenu"> | |
| <a href="#"><i data-feather="lock"></i> Security</a> | |
| <a href="#"><i data-feather="bell"></i> Notifications</a> | |
| <a href="#"><i data-feather="database"></i> Backup</a> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |