Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Webmail Client</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .email-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .compose-btn { | |
| transition: all 0.3s ease; | |
| } | |
| .compose-btn:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .sidebar-item:hover { | |
| background-color: rgba(255, 255, 255, 0.1); | |
| } | |
| .unread-dot { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| .avatar-placeholder { | |
| background: linear-gradient(45deg, #667eea, #764ba2); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 min-h-screen"> | |
| <!-- Background Animation --> | |
| <div id="vanta-bg" class="absolute inset-0 z-0"></div> | |
| <!-- Main Container --> | |
| <div class="relative z-10 min-h-screen flex flex-col"> | |
| <!-- Header --> | |
| <header class="bg-white bg-opacity-10 backdrop-blur-lg border-b border-white border-opacity-20 py-4 px-6"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="flex items-center"> | |
| <i data-feather="mail" class="text-white mr-2"></i> | |
| <h1 class="text-2xl font-bold text-white">WebMail</h1> | |
| </div> | |
| </div> | |
| <div class="flex-1 max-w-2xl mx-8"> | |
| <div class="relative"> | |
| <input | |
| type="text" | |
| placeholder="Search emails..." | |
| class="w-full py-2 px-4 pl-10 rounded-full bg-white bg-opacity-20 backdrop-blur-sm text-white placeholder-white placeholder-opacity-70 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50" | |
| > | |
| <i data-feather="search" class="absolute left-3 top-2.5 text-white text-opacity-70"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-2 rounded-full hover:bg-white hover:bg-opacity-20 transition"> | |
| <i data-feather="settings" class="text-white"></i> | |
| </button> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center"> | |
| <span class="text-white font-medium">U</span> | |
| </div> | |
| <span class="text-white font-medium">User</span> | |
| </div> | |
| <a href="login.html" class="text-white text-opacity-80 hover:text-opacity-100 text-sm transition">Logout</a> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <div class="flex flex-1 overflow-hidden"> | |
| <!-- Sidebar --> | |
| <aside class="w-64 bg-white bg-opacity-10 backdrop-blur-lg border-r border-white border-opacity-20 p-4"> | |
| <button class="compose-btn w-full bg-gradient-to-r from-blue-500 to-purple-600 text-white py-3 px-4 rounded-lg font-medium flex items-center justify-center mb-6"> | |
| <i data-feather="edit-3" class="mr-2"></i> | |
| Compose | |
| </button> | |
| <nav class="space-y-1"> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white bg-white bg-opacity-20"> | |
| <i data-feather="inbox" class="mr-3"></i> | |
| Inbox | |
| <span class="ml-auto bg-white bg-opacity-20 rounded-full px-2 py-1 text-xs">12</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <i data-feather="star" class="mr-3"></i> | |
| Starred | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <i data-feather="send" class="mr-3"></i> | |
| Sent | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <i data-feather="file-text" class="mr-3"></i> | |
| Drafts | |
| <span class="ml-auto bg-white bg-opacity-20 rounded-full px-2 py-1 text-xs">3</span> | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <i data-feather="trash-2" class="mr-3"></i> | |
| Trash | |
| </a> | |
| </nav> | |
| <div class="mt-8"> | |
| <h3 class="text-white text-sm font-medium px-3 mb-2">Labels</h3> | |
| <div class="space-y-1"> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <span class="w-3 h-3 rounded-full bg-blue-400 mr-3"></span> | |
| Work | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <span class="w-3 h-3 rounded-full bg-green-400 mr-3"></span> | |
| Personal | |
| </a> | |
| <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white"> | |
| <span class="w-3 h-3 rounded-full bg-yellow-400 mr-3"></span> | |
| Important | |
| </a> | |
| </div> | |
| </div> | |
| </aside> | |
| <!-- Email List --> | |
| <main class="flex-1 bg-white bg-opacity-10 backdrop-blur-lg overflow-y-auto"> | |
| <div class="p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-xl font-bold text-white">Inbox</h2> | |
| <div class="flex space-x-2"> | |
| <button class="p-2 rounded-lg bg-white bg-opacity-20 hover:bg-opacity-30 transition"> | |
| <i data-feather="refresh-cw" class="text-white"></i> | |
| </button> | |
| <button class="p-2 rounded-lg bg-white bg-opacity-20 hover:bg-opacity-30 transition"> | |
| <i data-feather="more-vertical" class="text-white"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Email Items --> | |
| <div class="space-y-3"> | |
| <!-- Email 1 --> | |
| <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mr-4"> | |
| <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center"> | |
| <span class="text-white font-medium">JD</span> | |
| </div> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-white font-medium truncate">John Doe</h3> | |
| <div class="flex items-center space-x-3"> | |
| <span class="text-white text-opacity-70 text-sm">10:30 AM</span> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="star" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <p class="text-white text-opacity-90 font-medium truncate mt-1">Project Update - Q3 Results</p> | |
| <p class="text-white text-opacity-70 truncate mt-1">Hi there, I wanted to share the latest updates on our project progress and the Q3 results...</p> | |
| </div> | |
| <div class="flex-shrink-0 ml-4 flex space-x-2"> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="paperclip" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="archive" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Email 2 --> | |
| <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mr-4"> | |
| <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center"> | |
| <span class="text-white font-medium">AC</span> | |
| </div> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-white font-medium truncate">Amazon Customer</h3> | |
| <div class="flex items-center space-x-3"> | |
| <span class="text-white text-opacity-70 text-sm">Yesterday</span> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="star" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <p class="text-white text-opacity-90 font-medium truncate mt-1">Your Order #12345 Has Shipped</p> | |
| <p class="text-white text-opacity-70 truncate mt-1">Great news! Your order has been shipped and is on its way to you...</p> | |
| </div> | |
| <div class="flex-shrink-0 ml-4 flex space-x-2"> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="paperclip" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="archive" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Email 3 --> | |
| <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mr-4"> | |
| <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center"> | |
| <span class="text-white font-medium">TW</span> | |
| </div> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-white font-medium truncate">Team Workshop</h3> | |
| <div class="flex items-center space-x-3"> | |
| <span class="text-white text-opacity-70 text-sm">Oct 12</span> | |
| <button class="text-yellow-300"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <p class="text-white text-opacity-90 font-medium truncate mt-1">Reminder: Design Workshop Tomorrow</p> | |
| <p class="text-white text-opacity-70 truncate mt-1">This is a reminder that our quarterly design workshop will be held tomorrow at 2 PM...</p> | |
| </div> | |
| <div class="flex-shrink-0 ml-4 flex space-x-2"> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="paperclip" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="archive" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Email 4 --> | |
| <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mr-4"> | |
| <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center"> | |
| <span class="text-white font-medium">SP</span> | |
| </div> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-white font-medium truncate">Sarah Parker</h3> | |
| <div class="flex items-center space-x-3"> | |
| <span class="text-white text-opacity-70 text-sm">Oct 11</span> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="star" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <p class="text-white text-opacity-90 font-medium truncate mt-1">Meeting Notes - Product Launch</p> | |
| <p class="text-white text-opacity-70 truncate mt-1">Here are the notes from yesterday's meeting regarding the upcoming product launch...</p> | |
| </div> | |
| <div class="flex-shrink-0 ml-4 flex space-x-2"> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="paperclip" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-white text-opacity-70 hover:text-opacity-100"> | |
| <i data-feather="archive" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Initialize Vanta.js Background | |
| VANTA.GLOBE({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x667eea, | |
| color2: 0x764ba2, | |
| backgroundColor: 0x0, | |
| size: 1.00 | |
| }); | |
| // Add hover effects to email cards | |
| document.querySelectorAll('.email-card').forEach(card => { | |
| card.addEventListener('mouseenter', () => { | |
| card.style.transform = 'translateY(-2px)'; | |
| }); | |
| card.addEventListener('mouseleave', () => { | |
| card.style.transform = 'translateY(0)'; | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |