Tech Sidebar - 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>Tech Sidebar</title> <style> body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; background: #2c3e50; display: flex; height: 100vh; overflow: hidden; } .tech-sidebar { width: 250px; height: 100vh; background: #34495e; color: #ecf0f1; display: flex; flex-direction: column; align-items: center; position: relative; transition: width 0.5s ease; } .tech-sidebar:hover { width: 300px; } .tech-sidebar .logo { font-size: 2em; margin: 20px 0; color: #e74c3c; } .tech-sidebar .nav-links { width: 100%; list-style: none; padding: 0; } .tech-sidebar .nav-links li { width: 100%; } .tech-sidebar .nav-links li a { text-decoration: none; color: #ecf0f1; padding: 15px; display: flex; align-items: center; transition: background 0.3s ease; } .tech-sidebar .nav-links li a:hover { background: #2c3e50; } .tech-sidebar .nav-links li a i { font-size: 1.5em; margin-right: 15px; color: #e74c3c; } .tech-sidebar .nav-links li a span { opacity: 1; transition: opacity 0.5s ease; } .tech-sidebar:hover .nav-links li a span { opacity: 1; } @media (max-width: 768px) { .tech-sidebar { width: 100px; } .tech-sidebar:hover { width: 100px; } .tech-sidebar .nav-links li a span { display: none; } } </style> </head> <body> <div class="tech-sidebar"> <div class="logo">Tech</div> <ul class="nav-links"> <li><a href="#"><i class="fas fa-home"></i><span>Home</span></a></li> <li><a href="#"><i class="fas fa-user"></i><span>Profile</span></a></li> <li><a href="#"><i class="fas fa-bell"></i><span>Notifications</span></a></li> <li><a href="#"><i class="fas fa-cog"></i><span>Settings</span></a></li> <li><a href="#"><i class="fas fa-sign-out-alt"></i><span>Logout</span></a></li> </ul> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>