File size: 10,803 Bytes
a185655 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GameForge - AI Game Asset Pipeline</title>
<link rel="stylesheet" href="/static/css/app.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
</head>
<body>
<div id="app">
<!-- Sidebar -->
<nav class="sidebar">
<div class="logo">
<span class="logo-icon">⚔️</span>
<span class="logo-text">GameForge</span>
</div>
<ul class="nav">
<li class="nav-item active" data-tab="dashboard">
<span class="nav-icon">📊</span> Dashboard
</li>
<li class="nav-item" data-tab="generate">
<span class="nav-icon">✨</span> Generate
</li>
<li class="nav-item" data-tab="pipelines">
<span class="nav-icon">🔗</span> Pipelines
</li>
<li class="nav-item" data-tab="assets">
<span class="nav-icon">📁</span> Assets
</li>
<li class="nav-item" data-tab="models">
<span class="nav-icon">🧠</span> Models
</li>
<li class="nav-item" data-tab="batch">
<span class="nav-icon">📦</span> Batch
</li>
</ul>
<div class="sidebar-footer">
<div class="gpu-status">
<span class="status-dot"></span>
<span>ZeroGPU Ready</span>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="main">
<!-- Dashboard -->
<section class="tab-content active" id="tab-dashboard">
<h1>Dashboard</h1>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-value" id="stat-models">--</div>
<div class="stat-label">Models Available</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-free">--</div>
<div class="stat-label">Free (ZeroGPU)</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-pipelines">--</div>
<div class="stat-label">Pipelines</div>
</div>
<div class="stat-card">
<div class="stat-value" id="stat-assets">--</div>
<div class="stat-label">Generated Assets</div>
</div>
</div>
<h2>Quick Generate</h2>
<div class="quick-gen-grid">
<button class="quick-gen-card" data-pipeline="character" data-prompt="fantasy knight in silver armor">
<span class="qg-icon">⚔️</span>
<span class="qg-label">Character</span>
</button>
<button class="quick-gen-card" data-pipeline="prop" data-prompt="enchanted magic sword with glowing runes">
<span class="qg-icon">🗡️</span>
<span class="qg-label">Prop</span>
</button>
<button class="quick-gen-card" data-pipeline="environment" data-prompt="dark fantasy forest clearing at twilight">
<span class="qg-icon">🌲</span>
<span class="qg-label">Environment</span>
</button>
<button class="quick-gen-card" data-pipeline="npc_voice" data-prompt="Welcome, traveler. What brings you to our village?">
<span class="qg-icon">🗣️</span>
<span class="qg-label">NPC Voice</span>
</button>
<button class="quick-gen-card" data-pipeline="audio" data-prompt="epic orchestral battle theme">
<span class="qg-icon">🎵</span>
<span class="qg-label">Music</span>
</button>
<button class="quick-gen-card" data-pipeline="audio" data-prompt="sword slash whoosh with metallic ring">
<span class="qg-icon">💥</span>
<span class="qg-label">SFX</span>
</button>
</div>
</section>
<!-- Generate -->
<section class="tab-content" id="tab-generate">
<h1>Generate Asset</h1>
<div class="generate-panel">
<div class="gen-form">
<div class="form-group">
<label>Asset Type</label>
<select id="gen-type">
<option value="image">Image (FLUX)</option>
<option value="3d">3D Model (TRELLIS.2)</option>
<option value="voice">NPC Voice (MeloTTS)</option>
<option value="music">Music (ACE-Step)</option>
<option value="video">Video (LTX 2.3)</option>
<option value="sfx">Sound Effect (TangoFlux)</option>
</select>
</div>
<div class="form-group">
<label>Prompt</label>
<textarea id="gen-prompt" placeholder="Describe your asset..." rows="4"></textarea>
</div>
<div class="form-group" id="neg-prompt-group">
<label>Negative Prompt (optional)</label>
<input type="text" id="gen-negative" placeholder="blurry, low quality, watermark">
</div>
<div class="form-group" id="ref-image-group" style="display:none">
<label>Reference Image (for 3D)</label>
<input type="file" id="gen-ref-image" accept="image/*">
</div>
<button class="btn btn-primary btn-lg" id="gen-btn">
<span class="btn-text">Generate</span>
<span class="btn-loading" style="display:none">Generating...</span>
</button>
</div>
<div class="gen-preview">
<div class="preview-box" id="gen-preview-box">
<div class="preview-placeholder">
<span>✨</span>
<p>Your generated asset will appear here</p>
</div>
</div>
<div class="gen-result-info" id="gen-result-info" style="display:none">
<div id="gen-result-meta"></div>
<button class="btn btn-secondary" id="gen-download">Download</button>
</div>
</div>
</div>
</section>
<!-- Pipelines -->
<section class="tab-content" id="tab-pipelines">
<h1>Pipelines</h1>
<div class="pipeline-grid" id="pipeline-grid">
<!-- Loaded dynamically -->
</div>
</section>
<!-- Assets -->
<section class="tab-content" id="tab-assets">
<h1>Generated Assets</h1>
<div class="assets-toolbar">
<select id="asset-filter">
<option value="">All Types</option>
</select>
<button class="btn btn-secondary" id="asset-refresh">Refresh</button>
</div>
<div class="assets-grid" id="assets-grid">
<!-- Loaded dynamically -->
</div>
</section>
<!-- Models -->
<section class="tab-content" id="tab-models">
<h1>Model Registry</h1>
<div class="models-filters">
<select id="model-filter-type">
<option value="">All Asset Types</option>
</select>
<label><input type="checkbox" id="model-filter-free"> Free Only</label>
<label><input type="checkbox" id="model-filter-safe"> Commercial Safe</label>
</div>
<table class="models-table" id="models-table">
<thead>
<tr>
<th>Asset Type</th>
<th>Variant</th>
<th>Model</th>
<th>Type</th>
<th>License</th>
<th>Hardware</th>
<th>Free</th>
<th>Safe</th>
</tr>
</thead>
<tbody id="models-tbody"></tbody>
</table>
</section>
<!-- Batch -->
<section class="tab-content" id="tab-batch">
<h1>Batch Generator</h1>
<div class="batch-form">
<div class="form-group">
<label>Pipeline</label>
<select id="batch-pipeline"></select>
</div>
<div class="form-group">
<label>Base Prompt</label>
<textarea id="batch-prompt" placeholder="enchanted sword with glowing runes" rows="2"></textarea>
</div>
<div class="form-group">
<label>Variants: <span id="batch-count-val">3</span></label>
<input type="range" id="batch-count" min="1" max="10" value="3">
</div>
<button class="btn btn-primary" id="batch-btn">Generate Variants</button>
</div>
<div class="batch-results" id="batch-results"></div>
</section>
</main>
<!-- Toast notifications -->
<div id="toast-container"></div>
</div>
<script type="module" src="/static/js/app.js"></script>
</body>
</html>
|