Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PromptVault // Cyberpunk System</title> | |
| <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=Outfit:wght@300;500;700;900&family=Consolas&display=swap" | |
| rel="stylesheet"> | |
| <script src="https://unpkg.com/lucide@latest"></script> | |
| <!-- CDNs for Import/Export --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/mammoth/1.6.0/mammoth.browser.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script> | |
| <script> | |
| pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js'; | |
| </script> | |
| <style> | |
| :root { | |
| --primary: #00f3ff; | |
| --secondary: #bc13fe; | |
| --bg-dark: #050510; | |
| --glass-border: rgba(0, 243, 255, 0.2); | |
| --glass-bg: rgba(0, 20, 40, 0.75); | |
| --glass-bg-hover: rgba(0, 20, 40, 0.85); | |
| --text-main: #ffffff; | |
| --text-muted: rgba(255, 255, 255, 0.7); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| scrollbar-width: thin; | |
| scrollbar-color: var(--primary) var(--bg-dark); | |
| } | |
| body { | |
| font-family: 'Outfit', sans-serif; | |
| background-color: var(--bg-dark); | |
| background-image: | |
| radial-gradient(ellipse at 20% 80%, rgba(188, 19, 254, 0.15) 0%, transparent 50%), | |
| radial-gradient(ellipse at 80% 20%, rgba(0, 243, 255, 0.15) 0%, transparent 50%), | |
| radial-gradient(ellipse at 50% 50%, rgba(0, 20, 40, 0.8) 0%, var(--bg-dark) 100%); | |
| background-size: cover; | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| background-attachment: fixed; | |
| color: var(--text-main); | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| /* --- Global Overlay --- */ | |
| .overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0); | |
| z-index: -1; | |
| pointer-events: none; | |
| } | |
| /* --- Header / Title Bar --- */ | |
| .header-bar { | |
| width: 98%; | |
| max-width: 1800px; | |
| height: 70px; | |
| margin-top: 10px; | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 12px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 0 1rem; | |
| flex-shrink: 0; | |
| z-index: 10; | |
| box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); | |
| } | |
| @keyframes data-flow { | |
| 0% { | |
| background-position: 0% 50%; | |
| } | |
| 50% { | |
| background-position: 100% 50%; | |
| } | |
| 100% { | |
| background-position: 0% 50%; | |
| } | |
| } | |
| @keyframes tech-glitch { | |
| 0%, | |
| 90%, | |
| 100% { | |
| transform: skew(0deg); | |
| filter: drop-shadow(0 0 5px var(--primary)); | |
| } | |
| 92% { | |
| transform: skew(10deg); | |
| filter: drop-shadow(-2px 0 10px var(--secondary)); | |
| } | |
| 94% { | |
| transform: skew(-10deg); | |
| filter: drop-shadow(2px 0 10px var(--primary)); | |
| } | |
| 96% { | |
| transform: skew(5deg); | |
| } | |
| } | |
| .app-title { | |
| font-size: 1.2rem; | |
| font-weight: 800; | |
| letter-spacing: 2px; | |
| text-transform: uppercase; | |
| background: linear-gradient(90deg, | |
| #fff, | |
| var(--primary), | |
| var(--secondary), | |
| #fff); | |
| background-size: 300% auto; | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| animation: | |
| data-flow 4s linear infinite, | |
| tech-glitch 5s ease-in-out infinite alternate; | |
| } | |
| .app-title i { | |
| color: var(--primary); | |
| -webkit-text-fill-color: var(--primary); | |
| filter: drop-shadow(0 0 8px var(--primary)); | |
| } | |
| .app-title:hover { | |
| animation-duration: 2s, 0.5s; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .built-with { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| padding: 5px 10px; | |
| border-radius: 6px; | |
| background: rgba(0, 243, 255, 0.1); | |
| border: 1px solid rgba(0, 243, 255, 0.2); | |
| transition: all 0.3s ease; | |
| } | |
| .built-with:hover { | |
| color: var(--primary); | |
| background: rgba(0, 243, 255, 0.2); | |
| box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); | |
| } | |
| .status-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| background: rgba(0, 0, 0, 0.3); | |
| padding: 5px 12px; | |
| border-radius: 20px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .status-dot { | |
| width: 6px; | |
| height: 6px; | |
| background-color: #00ff00; | |
| border-radius: 50%; | |
| box-shadow: 0 0 8px #00ff00; | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.5; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } | |
| /* Mobile Menu Toggle */ | |
| .mobile-menu-toggle { | |
| display: none; | |
| background: none; | |
| border: none; | |
| color: var(--primary); | |
| cursor: pointer; | |
| padding: 8px; | |
| } | |
| /* --- Main Layout --- */ | |
| .main-container { | |
| display: flex; | |
| width: 98%; | |
| max-width: 1800px; | |
| height: calc(100vh - 100px); | |
| margin-top: 10px; | |
| gap: 10px; | |
| } | |
| /* --- Sidebar --- */ | |
| .sidebar { | |
| width: 260px; | |
| min-width: 260px; | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(12px); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2rem; | |
| flex-shrink: 0; | |
| transition: transform 0.3s ease, opacity 0.3s ease; | |
| overflow-y: auto; | |
| } | |
| .nav-section h3 { | |
| font-size: 0.75rem; | |
| text-transform: uppercase; | |
| letter-spacing: 2px; | |
| color: var(--secondary); | |
| margin-bottom: 1rem; | |
| opacity: 0.8; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 10px 12px; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| color: var(--text-muted); | |
| font-size: 0.95rem; | |
| } | |
| .nav-item:hover, | |
| .nav-item.active { | |
| background: rgba(0, 243, 255, 0.1); | |
| color: var(--primary); | |
| border-left: 3px solid var(--primary); | |
| } | |
| .nav-item i { | |
| width: 18px; | |
| } | |
| .category-wrapper { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .category-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| width: 100%; | |
| } | |
| .category-toggle { | |
| padding: 4px; | |
| cursor: pointer; | |
| opacity: 0.5; | |
| transition: all 0.2s; | |
| border-radius: 4px; | |
| } | |
| .category-toggle:hover { | |
| opacity: 1; | |
| background: rgba(255, 255, 255, 0.1); | |
| } | |
| .subcategories-container { | |
| display: none; | |
| flex-direction: column; | |
| gap: 2px; | |
| overflow: hidden; | |
| border-left: 1px solid rgba(255, 255, 255, 0.05); | |
| margin-left: 15px; | |
| } | |
| .subcategories-container.expanded { | |
| display: flex; | |
| animation: slideDown 0.2s ease-out; | |
| } | |
| @keyframes slideDown { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-5px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .category-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 5px; | |
| } | |
| /* --- Content Area --- */ | |
| .content-area { | |
| flex: 1; | |
| background: transparent; | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| border-radius: 12px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| position: relative; | |
| min-width: 0; | |
| } | |
| /* --- Toolbar --- */ | |
| .toolbar { | |
| padding: 1rem; | |
| display: flex; | |
| gap: 1rem; | |
| align-items: center; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| background: rgba(0, 0, 0, 0.75); | |
| flex-wrap: wrap; | |
| } | |
| .search-bar { | |
| flex: 1; | |
| position: relative; | |
| min-width: 200px; | |
| } | |
| .search-bar input { | |
| width: 100%; | |
| background: rgba(0, 0, 0, 0.3); | |
| border: 1px solid rgba(0, 243, 255, 0.3); | |
| border-radius: 8px; | |
| padding: 10px 10px 10px 40px; | |
| color: white; | |
| font-family: 'Outfit', sans-serif; | |
| font-size: 0.9rem; | |
| transition: all 0.3s; | |
| } | |
| .search-bar input:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| box-shadow: 0 0 15px rgba(0, 243, 255, 0.1); | |
| } | |
| .search-icon { | |
| position: absolute; | |
| left: 12px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| color: var(--text-muted); | |
| width: 16px; | |
| } | |
| .btn { | |
| padding: 10px 16px; | |
| border-radius: 8px; | |
| border: none; | |
| cursor: pointer; | |
| font-family: 'Outfit', sans-serif; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| transition: all 0.2s; | |
| font-size: 0.9rem; | |
| white-space: nowrap; | |
| } | |
| .btn-primary { | |
| background: var(--primary); | |
| color: #000; | |
| box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); | |
| } | |
| .btn-primary:hover { | |
| background: #fff; | |
| box-shadow: 0 0 25px rgba(0, 243, 255, 0.6); | |
| } | |
| .btn-secondary { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: white; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .btn-secondary:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| } | |
| /* --- Prompt Grid --- */ | |
| .prompt-grid { | |
| flex: 1; | |
| padding: 1.5rem; | |
| overflow-y: auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 1.5rem; | |
| align-content: start; | |
| } | |
| .prompt-card { | |
| background: rgba(0, 20, 40, 0.75); | |
| border: 1px solid rgba(0, 243, 255, 0.1); | |
| border-radius: 10px; | |
| padding: 1.2rem; | |
| transition: all 0.3s; | |
| cursor: pointer; | |
| position: relative; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| height: auto; | |
| min-height: 80px; | |
| } | |
| .card-content-wrapper { | |
| display: none; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .prompt-card.expanded .card-content-wrapper { | |
| display: block; | |
| } | |
| .prompt-card:hover { | |
| transform: translateY(-2px); | |
| border-color: var(--primary); | |
| box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); | |
| background: rgba(0, 0, 0, 0.85); | |
| } | |
| .prompt-card:hover .card-title { | |
| text-shadow: 2px 0 var(--secondary), -2px 0 var(--primary); | |
| } | |
| .card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| } | |
| .card-title { | |
| font-weight: 700; | |
| color: white; | |
| font-size: 1.1rem; | |
| margin-bottom: 5px; | |
| word-break: break-word; | |
| } | |
| .card-category { | |
| font-size: 0.75rem; | |
| color: var(--primary); | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| background: rgba(0, 243, 255, 0.1); | |
| padding: 2px 8px; | |
| border-radius: 4px; | |
| display: inline-block; | |
| } | |
| .card-preview { | |
| font-size: 0.9rem; | |
| color: var(--text-muted); | |
| line-height: 1.5; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 3; | |
| line-clamp: 3; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| font-family: 'Consolas', monospace; | |
| } | |
| .card-footer { | |
| margin-top: auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| padding-top: 10px; | |
| } | |
| .rating { | |
| color: #ffd700; | |
| font-size: 0.9rem; | |
| } | |
| .card-actions { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .icon-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| transition: color 0.2s; | |
| padding: 4px; | |
| } | |
| .icon-btn:hover { | |
| color: white; | |
| } | |
| .icon-btn.favorite { | |
| color: #ff4081; | |
| } | |
| /* --- Modal --- */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.8); | |
| backdrop-filter: blur(5px); | |
| z-index: 100; | |
| display: none; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 1rem; | |
| overflow-y: auto; | |
| } | |
| .modal-overlay.active { | |
| display: flex; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .modal { | |
| width: 100%; | |
| max-width: 600px; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| background: #0a0a15; | |
| border: 1px solid var(--primary); | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| box-shadow: 0 0 50px rgba(0, 243, 255, 0.2); | |
| position: relative; | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| } | |
| .modal-title { | |
| font-size: 1.5rem; | |
| color: white; | |
| } | |
| .form-group { | |
| margin-bottom: 1.2rem; | |
| } | |
| .form-group label { | |
| display: block; | |
| color: var(--text-muted); | |
| margin-bottom: 8px; | |
| font-size: 0.9rem; | |
| } | |
| .form-control { | |
| width: 100%; | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| border-radius: 6px; | |
| padding: 10px; | |
| color: white; | |
| font-family: 'Outfit', sans-serif; | |
| } | |
| select.form-control { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| cursor: pointer; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 10px center; | |
| background-size: 16px; | |
| padding-right: 30px; | |
| } | |
| select.form-control option { | |
| background-color: #0a0a15; | |
| color: white; | |
| padding: 10px; | |
| } | |
| .form-control:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| } | |
| textarea.form-control { | |
| height: 150px; | |
| resize: vertical; | |
| font-family: 'Consolas', monospace; | |
| } | |
| .star-rating-input { | |
| display: flex; | |
| gap: 5px; | |
| font-size: 1.2rem; | |
| } | |
| .star-rating-input span { | |
| cursor: pointer; | |
| } | |
| .star-rating-input i, | |
| .star-rating-input svg { | |
| color: rgba(255, 255, 255, 0.2); | |
| transition: all 0.2s; | |
| } | |
| .star-rating-input i.active, | |
| .star-rating-input svg.active { | |
| color: #ffd700; | |
| fill: #ffd700; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: scale(0.95); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: scale(1); | |
| } | |
| } | |
| @keyframes slideIn { | |
| from { | |
| transform: translateX(100%); | |
| opacity: 0; | |
| } | |
| to { | |
| transform: translateX(0); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes fadeOut { | |
| to { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| } | |
| .tag-chip { | |
| background: rgba(0, 243, 255, 0.2); | |
| border: 1px solid var(--primary); | |
| color: var(--primary); | |
| padding: 2px 8px; | |
| border-radius: 12px; | |
| font-size: 0.8rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| .tag-chip:hover { | |
| background: rgba(0, 243, 255, 0.3); | |
| } | |
| .tag-chip i, | |
| .tag-chip svg { | |
| cursor: pointer; | |
| width: 14px; | |
| height: 14px; | |
| opacity: 0.7; | |
| } | |
| .tag-chip i:hover, | |
| .tag-chip svg:hover { | |
| opacity: 1; | |
| color: #fff; | |
| } | |
| .filter-item { | |
| padding: 8px 12px; | |
| cursor: pointer; | |
| border-radius: 4px; | |
| color: var(--text-main); | |
| transition: background 0.2s; | |
| font-size: 0.9rem; | |
| } | |
| .filter-item:hover { | |
| background: rgba(0, 243, 255, 0.1); | |
| color: var(--primary); | |
| } | |
| /* --- Refactored Classes (Cleanup) --- */ | |
| .rating-menu { | |
| display: none; | |
| flex-direction: column; | |
| gap: 2px; | |
| overflow: hidden; | |
| margin-left: 15px; | |
| border-left: 1px solid rgba(255, 255, 255, 0.05); | |
| } | |
| .rating-item { | |
| padding-left: 1.5rem; | |
| font-size: 0.85rem; | |
| } | |
| .tag-input-container { | |
| height: auto; | |
| min-height: 42px; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 5px; | |
| padding: 5px; | |
| } | |
| .tag-list-wrapper { | |
| display: contents; | |
| } | |
| .tag-input-field { | |
| background: transparent; | |
| border: none; | |
| color: white; | |
| flex: 1; | |
| min-width: 100px; | |
| outline: none; | |
| font-family: inherit; | |
| } | |
| .settings-category-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| padding: 15px; | |
| border-radius: 8px; | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .settings-header-row { | |
| display: flex; | |
| gap: 10px; | |
| margin-bottom: 10px; | |
| align-items: center; | |
| flex-wrap: wrap; | |
| } | |
| .settings-input-bold { | |
| flex: 1; | |
| font-weight: bold; | |
| min-width: 150px; | |
| } | |
| .settings-sub-list { | |
| padding-left: 1rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .settings-sub-row { | |
| display: flex; | |
| gap: 10px; | |
| align-items: center; | |
| flex-wrap: wrap; | |
| } | |
| .settings-sub-input { | |
| flex: 1; | |
| padding: 6px 10px; | |
| font-size: 0.9rem; | |
| min-width: 120px; | |
| } | |
| .settings-add-btn { | |
| align-self: flex-start; | |
| margin-top: 5px; | |
| font-size: 0.8rem; | |
| padding: 5px 10px; | |
| } | |
| .nav-section-bottom { | |
| margin-top: auto; | |
| } | |
| .sub-item-nested { | |
| padding-left: 1.5rem; | |
| font-size: 0.85rem; | |
| } | |
| .category-nav-item { | |
| padding-right: 5px; | |
| } | |
| .category-nav-content { | |
| display: flex; | |
| flex: 1; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| /* Empty State */ | |
| .empty-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| height: 100%; | |
| color: var(--text-muted); | |
| text-align: center; | |
| padding: 2rem; | |
| } | |
| .empty-state i, | |
| .empty-state svg { | |
| width: 64px; | |
| height: 64px; | |
| margin-bottom: 1rem; | |
| opacity: 0.5; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 1024px) { | |
| .sidebar { | |
| position: fixed; | |
| left: 0; | |
| top: 90px; | |
| height: calc(100vh - 100px); | |
| z-index: 50; | |
| transform: translateX(-100%); | |
| border-radius: 0 12px 12px 0; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| .mobile-menu-toggle { | |
| display: block; | |
| } | |
| .main-container { | |
| width: 100%; | |
| padding: 0 10px; | |
| } | |
| .content-area { | |
| width: 100%; | |
| } | |
| .sidebar-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.5); | |
| z-index: 40; | |
| display: none; | |
| } | |
| .sidebar-overlay.active { | |
| display: block; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .header-bar { | |
| height: auto; | |
| min-height: 60px; | |
| padding: 0.5rem 1rem; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .app-title { | |
| font-size: 1rem; | |
| } | |
| .header-right { | |
| gap: 0.5rem; | |
| } | |
| .built-with { | |
| font-size: 0.65rem; | |
| padding: 3px 6px; | |
| } | |
| .status-badge { | |
| font-size: 0.7rem; | |
| padding: 3px 8px; | |
| } | |
| .main-container { | |
| height: calc(100vh - 80px); | |
| } | |
| .toolbar { | |
| padding: 0.75rem; | |
| gap: 0.5rem; | |
| } | |
| .search-bar { | |
| width: 100%; | |
| order: 2; | |
| } | |
| .btn { | |
| padding: 8px 12px; | |
| font-size: 0.85rem; | |
| } | |
| .prompt-grid { | |
| padding: 1rem; | |
| gap: 1rem; | |
| grid-template-columns: 1fr; | |
| } | |
| .modal { | |
| padding: 1rem; | |
| margin: 0.5rem; | |
| } | |
| .modal-title { | |
| font-size: 1.2rem; | |
| } | |
| .form-row { | |
| flex-direction: column; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .app-title { | |
| font-size: 0.85rem; | |
| letter-spacing: 1px; | |
| } | |
| .app-title span { | |
| display: none; | |
| } | |
| .header-bar { | |
| justify-content: space-between; | |
| } | |
| .prompt-card { | |
| padding: 1rem; | |
| } | |
| .card-title { | |
| font-size: 1rem; | |
| } | |
| .card-actions { | |
| gap: 4px; | |
| } | |
| .icon-btn { | |
| padding: 2px; | |
| } | |
| } | |
| /* Form row for category/subcategory */ | |
| .form-row { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .form-row > div { | |
| flex: 1; | |
| } | |
| /* Modal button row */ | |
| .modal-actions { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="overlay"></div> | |
| <div class="sidebar-overlay" id="sidebarOverlay" onclick="toggleSidebar()"></div> | |
| <!-- Header --> | |
| <header class="header-bar"> | |
| <button class="mobile-menu-toggle" onclick="toggleSidebar()"> | |
| <i data-lucide="menu"></i> | |
| </button> | |
| <div class="app-title"> | |
| <i data-lucide="cpu"></i> | |
| PromptVault <span>// v2.0.6</span> | |
| </div> | |
| <div class="header-right"> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with"> | |
| Built with anycoder | |
| </a> | |
| <div class="status-badge"> | |
| <div class="status-dot"></div> | |
| <span class="status-text">ONLINE</span> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Layout --> | |
| <div class="main-container"> | |
| <!-- Sidebar --> | |
| <aside class="sidebar" id="sidebar"> | |
| <div class="nav-section"> | |
| <h3>Library</h3> | |
| <div class="nav-item active" onclick="filterPrompts('all')"> | |
| <i data-lucide="grid"></i> | |
| All Prompts | |
| </div> | |
| <div class="nav-item" onclick="filterPrompts('favorites')"> | |
| <i data-lucide="heart"></i> | |
| Favorites | |
| </div> | |
| <!-- Rating Filter --> | |
| <div class="nav-item" onclick="toggleRatingMenu()"> | |
| <i data-lucide="star"></i> | |
| By Rating | |
| <div style="margin-left: auto; opacity: 0.5;"> | |
| <i data-lucide="chevron-down" id="ratingChevron" style="width: 14px;"></i> | |
| </div> | |
| </div> | |
| <div id="ratingMenu" class="rating-menu"> | |
| <div class="nav-item sub-item rating-item" onclick="filterPrompts('rating', 5)"> | |
| 5 Stars | |
| </div> | |
| <div class="nav-item sub-item rating-item" onclick="filterPrompts('rating', 4)"> | |
| 4+ Stars | |
| </div> | |
| <div class="nav-item sub-item rating-item" onclick="filterPrompts('rating', 3)"> | |
| 3+ Stars | |
| </div> | |
| <div class="nav-item sub-item rating-item" onclick="filterPrompts('rating', 2)"> | |
| 2+ Stars | |
| </div> | |
| <div class="nav-item sub-item rating-item" onclick="filterPrompts('rating', 1)"> | |
| 1+ Stars | |
| </div> | |
| </div> | |
| </div> | |
| <div class="nav-section"> | |
| <h3>Categories</h3> | |
| <div class="category-list" id="categoryList"> | |
| <!-- Categories injected by JS --> | |
| </div> | |
| </div> | |
| <div class="nav-section nav-section-bottom"> | |
| <h3>Data</h3> | |
| <div class="nav-item" onclick="document.getElementById('importFile').click()"> | |
| <i data-lucide="upload"></i> | |
| Import | |
| </div> | |
| <div class="nav-item" onclick="openExportModal()"> | |
| <i data-lucide="download"></i> | |
| Export | |
| </div> | |
| </div> | |
| <div class="nav-section"> | |
| <div class="nav-item" onclick="openSettingsModal()"> | |
| <i data-lucide="settings"></i> | |
| Category Management | |
| </div> | |
| </div> | |
| </aside> | |
| <!-- Main Content --> | |
| <main class="content-area"> | |
| <!-- Toolbar --> | |
| <div class="toolbar"> | |
| <div class="search-bar"> | |
| <i data-lucide="search" class="search-icon"></i> | |
| <input type="text" placeholder="Search prompts, tags, or content... (Press Enter)" id="searchInput"> | |
| </div> | |
| <button class="btn btn-primary" onclick="openModal(true)"> | |
| <i data-lucide="plus" style="width: 16px; height: 16px;"></i> | |
| <span>New Prompt</span> | |
| </button> | |
| </div> | |
| <!-- Prompt Grid --> | |
| <div class="prompt-grid" id="promptGrid"> | |
| <!-- Prompts injected by JS --> | |
| </div> | |
| </main> | |
| </div> | |
| <!-- Create/Edit Modal --> | |
| <div class="modal-overlay" id="promptModal"> | |
| <div class="modal"> | |
| <div class="modal-header"> | |
| <h2 class="modal-title" id="modalTitle">New Prompt</h2> | |
| <button class="icon-btn" onclick="closeModal()"><i data-lucide="x"></i></button> | |
| </div> | |
| <div class="form-group"> | |
| <label>Title</label> | |
| <input type="text" id="inpTitle" class="form-control" placeholder="e.g., Cyberpunk Character Generator"> | |
| </div> | |
| <div class="form-group"> | |
| <label style="display: flex; align-items: center; gap: 10px; cursor: pointer;"> | |
| <input type="checkbox" id="inpFavorite" style="width: auto;"> | |
| Mark as Favorite | |
| </label> | |
| </div> | |
| <div class="form-group form-row"> | |
| <div> | |
| <label>Category</label> | |
| <select id="inpCategory" class="form-control" onchange="updateSubcategorySelect()"> | |
| <option value="">Select Category...</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label>Subcategory</label> | |
| <select id="inpSubcategory" class="form-control"> | |
| <option value="">Select Subcategory...</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <label>Tags</label> | |
| <div class="form-control tag-input-container"> | |
| <div id="tagList" class="tag-list-wrapper"></div> | |
| <input type="text" id="tagInput" class="tag-input-field" placeholder="Type tag & press Enter"> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <label>Rating</label> | |
| <div class="star-rating-input" id="inpRating"> | |
| <span onclick="setRating(1)"><i data-lucide="star"></i></span> | |
| <span onclick="setRating(2)"><i data-lucide="star"></i></span> | |
| <span onclick="setRating(3)"><i data-lucide="star"></i></span> | |
| <span onclick="setRating(4)"><i data-lucide="star"></i></span> | |
| <span onclick="setRating(5)"><i data-lucide="star"></i></span> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <label>Prompt Content</label> | |
| <textarea id="inpContent" class="form-control" placeholder="Enter your prompt here..."></textarea> | |
| </div> | |
| <div class="modal-actions"> | |
| <button class="btn btn-secondary" onclick="closeModal()">Cancel</button> | |
| <button class="btn btn-primary" onclick="savePrompt()">Save Prompt</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Confirmation Modal --> | |
| <div class="modal-overlay" id="confirmModal"> | |
| <div class="modal" style="max-width: 400px; border-color: #ff4444; box-shadow: |