Spaces:
Runtime error
Runtime error
Download public/css/style.css from Rajorganization/Bot-panel: direct link, hf CLI and curl.
- Browser
- Download file 14.3 kB
-
https://huggingface.co/spaces/Rajorganization/Bot-panel/resolve/main/public/css/style.css
- Command line
-
hf download hf://spaces/Rajorganization/Bot-panel/public/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Rajorganization/Bot-panel/resolve/main/public/css/style.css
14.3 kB
| /* ============================================ | |
| Bot Hosting Panel - Complete Stylesheet | |
| Dark Theme Pterodactyl-like UI | |
| ============================================ */ | |
| :root { | |
| --bg-primary: #1a1b2e; | |
| --bg-secondary: #1e2036; | |
| --bg-tertiary: #252742; | |
| --bg-card: #282a48; | |
| --bg-hover: #303256; | |
| --text-primary: #e4e6f0; | |
| --text-secondary: #a0a3bd; | |
| --text-muted: #6b6f93; | |
| --accent-primary: #6366f1; | |
| --accent-hover: #5558e6; | |
| --accent-secondary: #818cf8; | |
| --success: #34d399; | |
| --danger: #f87171; | |
| --warning: #fbbf24; | |
| --info: #60a5fa; | |
| --border-color: #363960; | |
| --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); | |
| --radius: 8px; | |
| --sidebar-width: 240px; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; | |
| background: var(--bg-primary); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| line-height: 1.6; | |
| } | |
| /* Login Page */ | |
| .login-page { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 100vh; | |
| background: linear-gradient(135deg, #1a1b2e 0%, #1e2036 50%, #252742 100%); | |
| } | |
| .login-container { | |
| width: 100%; | |
| max-width: 420px; | |
| padding: 20px; | |
| } | |
| .login-box { | |
| background: var(--bg-secondary); | |
| border-radius: 12px; | |
| padding: 40px; | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); | |
| border: 1px solid var(--border-color); | |
| } | |
| .login-header { | |
| text-align: center; | |
| margin-bottom: 32px; | |
| } | |
| .login-header img { | |
| width: 64px; | |
| height: 64px; | |
| margin-bottom: 16px; | |
| } | |
| .login-header h1 { | |
| font-size: 24px; | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| color: var(--text-primary); | |
| } | |
| .login-header p { | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| } | |
| .login-form .form-group { | |
| margin-bottom: 20px; | |
| } | |
| .login-form label { | |
| display: block; | |
| margin-bottom: 6px; | |
| font-size: 13px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .login-form input { | |
| width: 100%; | |
| padding: 12px 16px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius); | |
| color: var(--text-primary); | |
| font-size: 15px; | |
| transition: border-color 0.2s; | |
| } | |
| .login-form input:focus { | |
| outline: none; | |
| border-color: var(--accent-primary); | |
| box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); | |
| } | |
| .login-form input::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .error-message { | |
| color: var(--danger); | |
| font-size: 13px; | |
| margin-bottom: 12px; | |
| min-height: 20px; | |
| } | |
| /* App Layout */ | |
| .app-container { | |
| display: flex; | |
| min-height: 100vh; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: var(--sidebar-width); | |
| background: var(--bg-secondary); | |
| border-right: 1px solid var(--border-color); | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; | |
| z-index: 100; | |
| } | |
| .sidebar-header { | |
| padding: 24px 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .sidebar-header h2 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .sidebar-nav { | |
| flex: 1; | |
| padding: 12px 8px; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 12px 16px; | |
| color: var(--text-secondary); | |
| text-decoration: none; | |
| border-radius: var(--radius); | |
| margin-bottom: 4px; | |
| transition: all 0.2s; | |
| font-size: 14px; | |
| } | |
| .nav-item:hover { | |
| background: var(--bg-hover); | |
| color: var(--text-primary); | |
| } | |
| .nav-item.active { | |
| background: rgba(99, 102, 241, 0.15); | |
| color: var(--accent-secondary); | |
| } | |
| .nav-item svg { | |
| width: 20px; | |
| height: 20px; | |
| fill: currentColor; | |
| flex-shrink: 0; | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| flex: 1; | |
| margin-left: var(--sidebar-width); | |
| padding: 24px; | |
| min-height: 100vh; | |
| } | |
| .top-bar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 28px; | |
| } | |
| .top-bar h1 { | |
| font-size: 24px; | |
| font-weight: 600; | |
| } | |
| /* Buttons */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: var(--radius); | |
| font-size: 14px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-decoration: none; | |
| color: var(--text-primary); | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| } | |
| .btn:hover { | |
| background: var(--bg-hover); | |
| } | |
| .btn-primary { | |
| background: var(--accent-primary); | |
| border-color: var(--accent-primary); | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background: var(--accent-hover); | |
| } | |
| .btn-danger { | |
| background: rgba(248, 113, 113, 0.15); | |
| border-color: var(--danger); | |
| color: var(--danger); | |
| } | |
| .btn-danger:hover { | |
| background: rgba(248, 113, 113, 0.25); | |
| } | |
| .btn-success { | |
| background: rgba(52, 211, 153, 0.15); | |
| border-color: var(--success); | |
| color: var(--success); | |
| } | |
| .btn-success:hover { | |
| background: rgba(52, 211, 153, 0.25); | |
| } | |
| .btn-small { | |
| padding: 6px 12px; | |
| font-size: 12px; | |
| } | |
| .btn-block { | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| .btn svg { | |
| fill: currentColor; | |
| } | |
| /* Bot Cards Grid */ | |
| .bots-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| gap: 20px; | |
| } | |
| .bot-card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| padding: 24px; | |
| transition: all 0.2s; | |
| box-shadow: var(--shadow); | |
| } | |
| .bot-card:hover { | |
| border-color: var(--accent-primary); | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); | |
| } | |
| .bot-card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| margin-bottom: 16px; | |
| } | |
| .bot-name { | |
| font-size: 18px; | |
| font-weight: 600; | |
| } | |
| .bot-type { | |
| display: inline-block; | |
| padding: 4px 10px; | |
| border-radius: 20px; | |
| font-size: 11px; | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .bot-type.nodejs { | |
| background: rgba(131, 205, 41, 0.15); | |
| color: #83cd29; | |
| } | |
| .bot-type.python { | |
| background: rgba(69, 132, 182, 0.15); | |
| color: #4584b6; | |
| } | |
| .bot-type.unknown { | |
| background: rgba(160, 163, 189, 0.15); | |
| color: var(--text-secondary); | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-bottom: 16px; | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background: var(--text-muted); | |
| } | |
| .status-dot.online { | |
| background: var(--success); | |
| box-shadow: 0 0 10px rgba(52, 211, 153, 0.5); | |
| animation: pulse 2s infinite; | |
| } | |
| .status-dot.offline { | |
| background: var(--danger); | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.6; } | |
| } | |
| .bot-stats { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 12px; | |
| margin-bottom: 16px; | |
| } | |
| .stat-item { | |
| background: var(--bg-tertiary); | |
| padding: 10px 12px; | |
| border-radius: var(--radius); | |
| } | |
| .stat-label { | |
| font-size: 11px; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| margin-bottom: 4px; | |
| } | |
| .stat-value { | |
| font-size: 16px; | |
| font-weight: 600; | |
| } | |
| .bot-actions { | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| /* Modal */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.7); | |
| z-index: 1000; | |
| align-items: center; | |
| justify-content: center; | |
| backdrop-filter: blur(4px); | |
| } | |
| .modal.active { | |
| display: flex; | |
| } | |
| .modal-content { | |
| background: var(--bg-secondary); | |
| border-radius: 12px; | |
| width: 90%; | |
| max-width: 500px; | |
| max-height: 80vh; | |
| overflow-y: auto; | |
| border: 1px solid var(--border-color); | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); | |
| } | |
| .console-modal { | |
| max-width: 800px; | |
| max-height: 90vh; | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px 24px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .modal-header h2 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| } | |
| .console-actions { | |
| display: flex; | |
| gap: 8px; | |
| align-items: center; | |
| } | |
| .close-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-secondary); | |
| font-size: 24px; | |
| cursor: pointer; | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| transition: all 0.2s; | |
| } | |
| .close-btn:hover { | |
| background: var(--bg-hover); | |
| color: var(--text-primary); | |
| } | |
| .modal-body { | |
| padding: 24px; | |
| } | |
| /* Form Elements */ | |
| .form-group { | |
| margin-bottom: 20px; | |
| } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 6px; | |
| font-size: 13px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .form-group input { | |
| width: 100%; | |
| padding: 10px 14px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius); | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| } | |
| .form-group input:focus { | |
| outline: none; | |
| border-color: var(--accent-primary); | |
| } | |
| /* File Upload Area */ | |
| .file-upload-area { | |
| border: 2px dashed var(--border-color); | |
| border-radius: var(--radius); | |
| padding: 32px; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| background: var(--bg-tertiary); | |
| } | |
| .file-upload-area:hover { | |
| border-color: var(--accent-primary); | |
| background: var(--bg-hover); | |
| } | |
| .file-upload-area p { | |
| color: var(--text-muted); | |
| margin-top: 8px; | |
| } | |
| .file-upload-area input[type="file"] { | |
| position: absolute; | |
| opacity: 0; | |
| cursor: pointer; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; | |
| left: 0; | |
| } | |
| /* Progress Bar */ | |
| .upload-progress { | |
| margin-top: 16px; | |
| } | |
| .progress-bar { | |
| width: 100%; | |
| height: 6px; | |
| background: var(--bg-tertiary); | |
| border-radius: 3px; | |
| overflow: hidden; | |
| margin-bottom: 8px; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: var(--accent-primary); | |
| border-radius: 3px; | |
| width: 0%; | |
| transition: width 0.3s; | |
| animation: progress-indeterminate 1.5s ease-in-out infinite; | |
| } | |
| @keyframes progress-indeterminate { | |
| 0% { width: 0%; margin-left: 0; } | |
| 50% { width: 70%; margin-left: 15%; } | |
| 100% { width: 0%; margin-left: 100%; } | |
| } | |
| .progress-text { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| text-align: center; | |
| } | |
| /* Console Output */ | |
| .console-output { | |
| background: #0a0b1a; | |
| color: #00ff88; | |
| padding: 20px; | |
| border-radius: var(--radius); | |
| font-family: 'Courier New', monospace; | |
| font-size: 13px; | |
| line-height: 1.5; | |
| max-height: 500px; | |
| overflow-y: auto; | |
| white-space: pre-wrap; | |
| word-break: break-all; | |
| } | |
| .console-output::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .console-output::-webkit-scrollbar-track { | |
| background: #0a0b1a; | |
| } | |
| .console-output::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 4px; | |
| } | |
| /* File Manager */ | |
| .file-manager-container { | |
| display: flex; | |
| gap: 20px; | |
| height: calc(100vh - 100px); | |
| } | |
| .file-manager-sidebar { | |
| width: 200px; | |
| background: var(--bg-card); | |
| border-radius: var(--radius); | |
| padding: 16px; | |
| border: 1px solid var(--border-color); | |
| overflow-y: auto; | |
| } | |
| .file-manager-sidebar h3 { | |
| font-size: 14px; | |
| font-weight: 600; | |
| margin-bottom: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| color: var(--text-muted); | |
| } | |
| .bot-file-list { | |
| list-style: none; | |
| } | |
| .bot-file-list li { | |
| padding: 8px 12px; | |
| cursor: pointer; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| transition: all 0.2s; | |
| } | |
| .bot-file-list li:hover { | |
| background: var(--bg-hover); | |
| color: var(--text-primary); | |
| } | |
| .bot-file-list li.active { | |
| background: rgba(99, 102, 241, 0.15); | |
| color: var(--accent-secondary); | |
| } | |
| .file-manager-main { | |
| flex: 1; | |
| background: var(--bg-card); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border-color); | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .file-toolbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px 16px; | |
| border-bottom: 1px solid var(--border-color); | |
| background: var(--bg-tertiary); | |
| } | |
| .breadcrumb { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| } | |
| .file-actions { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .file-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 8px; | |
| } | |
| .file-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 10px 12px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .file-item:hover { | |
| background: var(--bg-hover); | |
| } | |
| .file-item-icon { | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 18px; | |
| } | |
| .file-item-info { | |
| flex: 1; | |
| } | |
| .file-item-name { | |
| font-size: 14px; | |
| font-weight: 500; | |
| } | |
| .file-item-meta { | |
| font-size: 11px; | |
| color: var(--text-muted); | |
| } | |
| /* Loading */ | |
| .loading { | |
| text-align: center; | |
| padding: 40px; | |
| color: var(--text-muted); | |
| } | |
| /* Scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-primary); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-muted); | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| width: 60px; | |
| } | |
| .sidebar-header h2, | |
| .nav-item span { | |
| display: none; | |
| } | |
| .nav-item { | |
| justify-content: center; | |
| padding: 12px; | |
| } | |
| .main-content { | |
| margin-left: 60px; | |
| padding: 16px; | |
| } | |
| .bots-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .file-manager-container { | |
| flex-direction: column; | |
| height: auto; | |
| } | |
| .file-manager-sidebar { | |
| width: 100%; | |
| } | |
| .top-bar { | |
| flex-direction: column; | |
| gap: 12px; | |
| align-items: flex-start; | |
| } | |
| .modal-content { | |
| width: 95%; | |
| margin: 10px; | |
| } | |
| } |