Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Glass Dashboard</title> | |
| <!-- Import Inter Font for 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"> | |
| <!-- Import Phosphor Icons for minimal iconography --> | |
| <script src="https://unpkg.com/@phosphor-icons/web"></script> | |
| <style> | |
| :root { | |
| /* Color Palette - Dark, Muted, Premium */ | |
| --bg-gradient-start: #1a1c23; | |
| --bg-gradient-end: #121418; | |
| --glass-bg: rgba(255, 255, 255, 0.03); | |
| --glass-border: rgba(255, 255, 255, 0.06); | |
| --glass-highlight: rgba(255, 255, 255, 0.08); | |
| --glass-blur: 20px; | |
| --text-primary: rgba(255, 255, 255, 0.9); | |
| --text-secondary: rgba(255, 255, 255, 0.45); | |
| --text-muted: rgba(255, 255, 255, 0.3); | |
| --accent-subtle: rgba(255, 255, 255, 0.05); | |
| /* Spacing */ | |
| --space-xs: 8px; | |
| --space-sm: 16px; | |
| --space-md: 24px; | |
| --space-lg: 32px; | |
| --space-xl: 64px; | |
| /* Typography */ | |
| --font-family: 'Inter', sans-serif; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: var(--font-family); | |
| background: radial-gradient(circle at 50% 0%, #232730 0%, var(--bg-gradient-end) 100%); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| overflow-x: hidden; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| /* --- Header --- */ | |
| header { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 70px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 var(--space-lg); | |
| z-index: 100; | |
| /* Glass Header Effect */ | |
| background: rgba(18, 20, 24, 0.7); | |
| backdrop-filter: blur(var(--glass-blur)); | |
| border-bottom: 1px solid var(--glass-border); | |
| } | |
| .logo { | |
| font-weight: 500; | |
| font-size: 1.1rem; | |
| letter-spacing: -0.02em; | |
| color: var(--text-primary); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| text-decoration: none; | |
| } | |
| .logo i { | |
| font-size: 1.2rem; | |
| color: var(--text-secondary); | |
| } | |
| .branding-link { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .branding-link:hover { | |
| color: var(--text-primary); | |
| } | |
| /* --- Main Layout --- */ | |
| main { | |
| flex: 1; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; /* Center vertically */ | |
| padding: 100px var(--space-md) var(--space-xl); /* Top padding for fixed header */ | |
| width: 100%; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .dashboard-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; /* Two equal columns */ | |
| gap: var(--space-lg); | |
| width: 100%; | |
| } | |
| /* --- Glass Panels --- */ | |
| .glass-panel { | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(var(--glass-blur)); | |
| -webkit-backdrop-filter: blur(var(--glass-blur)); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 24px; | |
| padding: var(--space-lg); | |
| box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2); | |
| display: flex; | |
| flex-direction: column; | |
| height: 500px; /* Fixed height for consistent look */ | |
| transition: border-color 0.3s ease; | |
| } | |
| .glass-panel:hover { | |
| border-color: rgba(255, 255, 255, 0.1); | |
| } | |
| .panel-header { | |
| margin-bottom: var(--space-md); | |
| padding-bottom: var(--space-sm); | |
| border-bottom: 1px solid var(--glass-border); | |
| } | |
| .panel-title { | |
| font-size: 1rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin-bottom: 4px; | |
| } | |
| .panel-subtitle { | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| font-weight: 300; | |
| } | |
| /* --- Lists --- */ | |
| .chat-list { | |
| list-style: none; | |
| overflow-y: auto; | |
| flex: 1; | |
| /* Custom scrollbar styling */ | |
| scrollbar-width: thin; | |
| scrollbar-color: var(--glass-border) transparent; | |
| } | |
| .chat-list::-webkit-scrollbar { | |
| width: 4px; | |
| } | |
| .chat-list::-webkit-scrollbar-thumb { | |
| background-color: var(--glass-border); | |
| border-radius: 4px; | |
| } | |
| .chat-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 14px 10px; | |
| margin-bottom: 4px; | |
| border-radius: 12px; | |
| color: var(--text-secondary); | |
| text-decoration: none; | |
| transition: all 0.25s ease; | |
| cursor: pointer; | |
| font-size: 0.95rem; | |
| font-weight: 400; | |
| } | |
| .chat-item i { | |
| margin-right: 12px; | |
| font-size: 1.1rem; | |
| color: var(--text-muted); | |
| transition: color 0.25s ease; | |
| } | |
| /* Hover Interaction */ | |
| .chat-item:hover { | |
| background: var(--accent-subtle); | |
| color: var(--text-primary); | |
| transform: translateX(2px); | |
| } | |
| .chat-item:hover i { | |
| color: var(--text-primary); | |
| } | |
| /* Specific styles for Public Area (Broadcast) */ | |
| .broadcast-item { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .broadcast-header { | |
| display: flex; | |
| align-items: center; | |
| width: 100%; | |
| margin-bottom: 4px; | |
| } | |
| .broadcast-meta { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| margin-top: 2px; | |
| font-weight: 300; | |
| } | |
| /* --- Responsive Design --- */ | |
| @media (max-width: 900px) { | |
| .dashboard-grid { | |
| grid-template-columns: 1fr; /* Stack on tablet/mobile */ | |
| max-width: 600px; | |
| } | |
| .glass-panel { | |
| height: 400px; | |
| } | |
| main { | |
| padding-top: 90px; | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| header { | |
| padding: 0 var(--space-md); | |
| } | |
| main { | |
| padding: 90px var(--space-sm) var(--space-lg); | |
| align-items: flex-start; /* Align top on mobile for easier scrolling */ | |
| } | |
| .glass-panel { | |
| height: auto; | |
| min-height: 300px; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <a href="#" class="logo"> | |
| <i class="ph ph-hexagon"></i> | |
| <span>Nexus</span> | |
| </a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="branding-link"> | |
| Built with anycoder | |
| </a> | |
| </header> | |
| <main> | |
| <div class="dashboard-grid"> | |
| <!-- Public Area Section --> | |
| <section class="glass-panel" id="public-section"> | |
| <div class="panel-header"> | |
| <h2 class="panel-title">Public Channels</h2> | |
| <p class="panel-subtitle">Announcements & Community</p> | |
| </div> | |
| <ul class="chat-list"> | |
| <li> | |
| <a href="#chat/announcements" class="chat-item broadcast-item"> | |
| <div class="broadcast-header"> | |
| <i class="ph ph-megaphone-simple"></i> | |
| <span>System Announcements</span> | |
| </div> | |
| <span class="broadcast-meta">Admin • Updates & Maintenance</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/general" class="chat-item broadcast-item"> | |
| <div class="broadcast-header"> | |
| <i class="ph ph-globe"></i> | |
| <span>General Discussion</span> | |
| </div> | |
| <span class="broadcast-meta">Public • Open to everyone</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/design" class="chat-item broadcast-item"> | |
| <div class="broadcast-header"> | |
| <i class="ph ph-paint-brush-broad"></i> | |
| <span>Design Resources</span> | |
| </div> | |
| <span class="broadcast-meta">Community • Share Inspiration</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/feedback" class="chat-item broadcast-item"> | |
| <div class="broadcast-header"> | |
| <i class="ph ph-chat-text"></i> | |
| <span>Product Feedback</span> | |
| </div> | |
| <span class="broadcast-meta">Moderated • Help us improve</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </section> | |
| <!-- Private Chats / Rooms Section --> | |
| <section class="glass-panel" id="private-section"> | |
| <div class="panel-header"> | |
| <h2 class="panel-title">Your Rooms</h2> | |
| <p class="panel-subtitle">Private Conversations</p> | |
| </div> | |
| <ul class="chat-list"> | |
| <li> | |
| <a href="#chat/project-alpha" class="chat-item"> | |
| <i class="ph ph-lock-key"></i> | |
| <span>Project Alpha</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/design-team" class="chat-item"> | |
| <i class="ph ph-users-three"></i> | |
| <span>Design Team Sync</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/sarah-connor" class="chat-item"> | |
| <i class="ph ph-user"></i> | |
| <span>Sarah Connor</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/marketing-q4" class="chat-item"> | |
| <i class="ph ph-chart-line-up"></i> | |
| <span>Marketing Q4 Strategy</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#chat/development" class="chat-item"> | |
| <i class="ph ph-code"></i> | |
| <span>Development Log</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </section> | |
| </div> | |
| </main> | |
| <script> | |
| // Simple interaction handler to simulate navigation | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const links = document.querySelectorAll('.chat-item'); | |
| links.forEach(link => { | |
| link.addEventListener('click', (e) => { | |
| e.preventDefault(); | |
| // Extract the room name for the log | |
| const roomName = link.querySelector('span').innerText; | |
| const targetUrl = link.getAttribute('href'); | |
| console.log(`Navigating to: ${targetUrl} (${roomName})`); | |
| // Visual feedback - subtle fade out effect could go here | |
| // For now, we just log it as requested for a static page | |
| // In a real app, this would be: window.location.href = targetUrl; | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |