Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard | Glass Interface</title> | |
| <!-- Importing Inter font for clean, premium typography --> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet"> | |
| <!-- Importing Phosphor Icons for modern, minimal icons --> | |
| <script src="https://unpkg.com/@phosphor-icons/web"></script> | |
| <style> | |
| :root { | |
| /* Color Palette - Dark Muted & Glass */ | |
| --bg-color-1: #1a1c20; | |
| --bg-color-2: #252830; | |
| --bg-color-3: #2e323c; | |
| --glass-border: rgba(255, 255, 255, 0.06); | |
| --glass-bg: rgba(30, 32, 40, 0.4); | |
| --glass-highlight: rgba(255, 255, 255, 0.03); | |
| --text-primary: #e2e4e9; | |
| --text-secondary: #8b8f9e; | |
| --text-tertiary: #5c6170; | |
| --accent-glow: rgba(100, 116, 139, 0.15); | |
| --spacing-xs: 8px; | |
| --spacing-sm: 16px; | |
| --spacing-md: 24px; | |
| --spacing-lg: 32px; | |
| --radius-sm: 8px; | |
| --radius-md: 12px; | |
| --radius-lg: 20px; | |
| --font-main: 'Inter', sans-serif; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| body { | |
| font-family: var(--font-main); | |
| background-color: var(--bg-color-1); | |
| /* Muted dark gradient background */ | |
| background-image: | |
| radial-gradient(circle at 15% 50%, rgba(50, 60, 80, 0.15) 0%, transparent 25%), | |
| radial-gradient(circle at 85% 30%, rgba(30, 35, 45, 0.15) 0%, transparent 25%); | |
| color: var(--text-primary); | |
| height: 100vh; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* --- Header --- */ | |
| header { | |
| height: 60px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 var(--spacing-md); | |
| border-bottom: 1px solid var(--glass-border); | |
| background: rgba(20, 22, 28, 0.5); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| z-index: 10; | |
| } | |
| .brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| font-weight: 500; | |
| letter-spacing: -0.01em; | |
| color: var(--text-primary); | |
| } | |
| .brand-icon { | |
| font-size: 24px; | |
| color: var(--text-secondary); | |
| } | |
| .built-with { | |
| font-size: 12px; | |
| color: var(--text-tertiary); | |
| text-decoration: none; | |
| opacity: 0.6; | |
| transition: opacity 0.2s; | |
| } | |
| .built-with:hover { | |
| opacity: 1; | |
| } | |
| /* --- Main Layout --- */ | |
| main { | |
| flex: 1; | |
| display: flex; | |
| padding: var(--spacing-md); | |
| gap: var(--spacing-md); | |
| overflow: hidden; | |
| max-width: 1600px; | |
| margin: 0 auto; | |
| width: 100%; | |
| } | |
| /* --- Sidebar (Desktop) --- */ | |
| .sidebar { | |
| width: 280px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--spacing-md); | |
| /* Glassmorphism Panel */ | |
| background: var(--glass-bg); | |
| border: 1px solid var(--glass-border); | |
| border-radius: var(--radius-md); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| padding: var(--spacing-md); | |
| flex-shrink: 0; | |
| } | |
| .nav-label { | |
| font-size: 11px; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| color: var(--text-tertiary); | |
| margin-bottom: var(--spacing-xs); | |
| font-weight: 600; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 12px 16px; | |
| border-radius: var(--radius-sm); | |
| color: var(--text-secondary); | |
| text-decoration: none; | |
| font-size: 14px; | |
| font-weight: 400; | |
| transition: all 0.2s ease; | |
| cursor: pointer; | |
| } | |
| .nav-item:hover { | |
| background: var(--glass-highlight); | |
| color: var(--text-primary); | |
| } | |
| .nav-item.active { | |
| background: var(--accent-glow); | |
| color: var(--text-primary); | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| } | |
| .nav-item i { | |
| font-size: 18px; | |
| margin-right: 12px; | |
| } | |
| /* --- Central Content --- */ | |
| .content-area { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--spacing-md); | |
| overflow-y: auto; | |
| padding-right: 4px; /* For scrollbar */ | |
| } | |
| /* Custom Scrollbar */ | |
| .content-area::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .content-area::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .content-area::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 3px; | |
| } | |
| .content-area::-webkit-scrollbar-thumb:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| } | |
| /* --- Glass Panels --- */ | |
| .glass-panel { | |
| background: var(--glass-bg); | |
| border: 1px solid var(--glass-border); | |
| border-radius: var(--radius-md); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| overflow: hidden; | |
| transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| } | |
| /* Public Area */ | |
| .public-section { | |
| flex: 1; | |
| min-height: 300px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .section-header { | |
| padding: var(--spacing-md); | |
| border-bottom: 1px solid var(--glass-border); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .section-title { | |
| font-size: 16px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| } | |
| .announcement-badge { | |
| font-size: 10px; | |
| background: rgba(255, 255, 255, 0.08); | |
| padding: 4px 8px; | |
| border-radius: 20px; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .chat-list { | |
| list-style: none; | |
| overflow-y: auto; | |
| flex: 1; | |
| } | |
| .chat-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 16px 20px; | |
| border-bottom: 1px solid var(--glass-border); | |
| cursor: pointer; | |
| transition: background 0.2s ease; | |
| text-decoration: none; | |
| color: var(--text-primary); | |
| } | |
| .chat-item:last-child { | |
| border-bottom: none; | |
| } | |
| .chat-item:hover { | |
| background: rgba(255, 255, 255, 0.02); | |
| } | |
| .chat-info { | |
| flex: 1; | |
| padding-left: 16px; | |
| } | |
| .chat-name { | |
| font-size: 14px; | |
| font-weight: 500; | |
| margin-bottom: 4px; | |
| } | |
| .chat-preview { | |
| font-size: 12px; | |
| color: var(--text-tertiary); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| max-width: 300px; | |
| } | |
| .chat-meta { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| color: var(--text-tertiary); | |
| font-size: 11px; | |
| } | |
| .divider { | |
| height: 1px; | |
| background: var(--glass-border); | |
| margin: 0 var(--spacing-md); | |
| } | |
| /* Private Rooms */ | |
| .rooms-section { | |
| height: 300px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .rooms-list { | |
| list-style: none; | |
| overflow-y: auto; | |
| flex: 1; | |
| } | |
| .room-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 14px 20px; | |
| cursor: pointer; | |
| transition: background 0.2s ease; | |
| text-decoration: none; | |
| color: var(--text-primary); | |
| border-left: 2px solid transparent; | |
| } | |
| .room-item:hover { | |
| background: rgba(255, 255, 255, 0.02); | |
| border-left: 2px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .room-icon { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, 0.05); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-right: 16px; | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| } | |
| .room-name { | |
| font-size: 14px; | |
| font-weight: 500; | |
| } | |
| /* --- Responsive Design --- */ | |
| @media (max-width: 900px) { | |
| main { | |
| flex-direction: column; | |
| padding: var(--spacing-sm); | |
| } | |
| .sidebar { | |
| width: 100%; | |
| flex-direction: row; | |
| padding: var(--spacing-sm); | |
| overflow-x: auto; | |
| height: auto; | |
| } | |
| .nav-item { | |
| white-space: nowrap; | |
| padding: 8px 12px; | |
| } | |
| .nav-label { | |
| display: none; | |
| } | |
| .nav-item i { | |
| margin-right: 8px; | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| .sidebar { | |
| display: none; /* Hide sidebar on very small screens for minimalism */ | |
| } | |
| .content-area { | |
| padding: 0; | |
| } | |
| .glass-panel { | |
| border-radius: 0; | |
| border-left: none; | |
| border-right: none; | |
| border-bottom: 1px solid var(--glass-border); | |
| } | |
| header { | |
| padding: 0 var(--spacing-sm); | |
| } | |
| .brand span { | |
| display: none; /* Hide text on mobile header */ | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Header --> | |
| <header> | |
| <div class="brand"> | |
| <i class="ph-fill ph-hexagon brand-icon"></i> | |
| <span>NexusGlass</span> | |
| </div> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with"> | |
| Built with anycoder | |
| </a> | |
| </header> | |
| <!-- Main Layout --> | |
| <main> | |
| <!-- Sidebar Navigation --> | |
| <aside class="sidebar"> | |
| <div class="nav-label">Menu</div> | |
| <a href="#" class="nav-item active"> | |
| <i class="ph ph-squares-four"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="nav-item"> | |
| <i class="ph ph-chat-circle-dots"></i> | |
| <span>Chats</span> | |
| </a> | |
| <a href="#" class="nav-item"> | |
| <i class="ph ph-users"></i> | |
| <span>Contacts</span> | |
| </a> | |
| <a href="#" class="nav-item"> | |
| <i class="ph ph-gear"></i> | |
| <span>Settings</span> | |
| </a> | |
| <div class="nav-label" style="margin-top: auto;">System</div> | |
| <a href="#" class="nav-item"> | |
| <i class="ph ph-cloud-arrow-up"></i> | |
| <span>Export</span> | |
| </a> | |
| <a href="#" class="nav-item"> | |
| <i class="ph ph-sign-out"></i> | |
| <span>Logout</span> | |
| </a> | |
| </aside> | |
| <!-- Central Content --> | |
| <div class="content-area"> | |
| <!-- Public Area: Broadcast & Chats --> | |
| <section class="glass-panel public-section"> | |
| <div class="section-header"> | |
| <h2 class="section-title">Public Broadcast</h2> | |
| <span class="announcement-badge">Admin Update</span> | |
| </div> | |
| <ul class="chat-list"> | |
| <li class="chat-item"> | |
| <div class="chat-info"> | |
| <div class="chat-name">System Maintenance (Oct 24)</div> | |
| <div class="chat-preview">Scheduled downtime for server upgrades between 2 AM and 4 AM UTC.</div> | |
| </div> | |
| <div class="chat-meta"> | |
| <span>2h ago</span> | |
| </div> | |
| </li> | |
| <li class="chat-item"> | |
| <div class="chat-info"> | |
| <div class="chat-name">Welcome to NexusGlass</div> | |
| <div class="chat-preview">Read our community guidelines and start exploring public channels.</div> | |
| </div> | |
| <div class="chat-meta"> | |
| <span>1d ago</span> | |
| </div> | |
| </li> | |
| <li class="chat-item"> | |
| <div class="chat-info"> | |
| <div class="chat-name">Feature Request: Dark Mode</div> | |
| <div class="chat-preview">Community feedback on the new visual direction.</div> | |
| </div> | |
| <div class="chat-meta"> | |
| <span>3d ago</span> | |
| </div> | |
| </li> | |
| <li class="chat-item"> | |
| <div class="chat-info"> | |
| <div class="chat-name">Weekly Recap</div> | |
| <div class="chat-preview">Top contributors and active discussions from the last week.</div> | |
| </div> | |
| <div class="chat-meta"> | |
| <span>5d ago</span> | |
| </div> | |
| </li> | |
| </ul> | |
| </section> | |
| <div class="divider"></div> | |
| <!-- Private Chats / Rooms --> | |
| <section class="glass-panel rooms-section"> | |
| <div class="section-header"> | |
| <h2 class="section-title">Private Rooms</h2> | |
| </div> | |
| <ul class="rooms-list"> | |
| <a href="#" class="room-item"> | |
| <div class="room-icon"> | |
| <i class="ph ph-lock-key-open"></i> | |
| </div> | |
| <span class="room-name">Design Team Alpha</span> | |
| </a> | |
| <a href="#" class="room-item"> | |
| <div class="room-icon"> | |
| <i class="ph ph-lock-key-open"></i> | |
| </div> | |
| <span class="room-name">Backend Architecture</span> | |
| </a> | |
| <a href="#" class="room-item"> | |
| <div class="room-icon"> | |
| <i class="ph ph-lock-key-open"></i> | |
| </div> | |
| <span class="room-name">Project Phoenix</span> | |
| </a> | |
| <a href="#" class="room-item"> | |
| <div class="room-icon"> | |
| <i class="ph ph-lock-key-open"></i> | |
| </div> | |
| <span class="room-name">Random Dev Logs</span> | |
| </a> | |
| <a href="#" class="room-item"> | |
| <div class="room-icon"> | |
| <i class="ph ph-lock-key-open"></i> | |
| </div> | |
| <span class="room-name">UX Research Group</span> | |
| </a> | |
| </ul> | |
| </section> | |
| </div> | |
| </main> | |
| <!-- Interactive Logic --> | |
| <script> | |
| // Simple script to handle active state switching for navigation | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const navItems = document.querySelectorAll('.nav-item'); | |
| navItems.forEach(item => { | |
| item.addEventListener('click', (e) => { | |
| e.preventDefault(); | |
| // Remove active class from all | |
| navItems.forEach(nav => nav.classList.remove('active')); | |
| // Add active class to clicked (if it's a link) | |
| if(item.tagName === 'A') { | |
| item.classList.add('active'); | |
| } | |
| }); | |
| }); | |
| // Add subtle interaction to chat items | |
| const chatItems = document.querySelectorAll('.chat-item, .room-item'); | |
| chatItems.forEach(item => { | |
| item.addEventListener('click', () => { | |
| // Visual feedback only | |
| console.log('Navigating to:', item.querySelector('.chat-name')?.innerText || item.querySelector('.room-name')?.innerText); | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |