Create index.html
Browse files- static/index.html +68 -0
static/index.html
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- static/index.html – FULL FILE -->
|
| 2 |
+
<!doctype html><html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 6 |
+
<title>AnyCoder AI Code Generator</title>
|
| 7 |
+
<meta name="description" content="Generate, modify & understand code with advanced AI models.">
|
| 8 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<header>
|
| 12 |
+
<h1>🚀 AnyCoder AI</h1>
|
| 13 |
+
<p>Your AI partner for generating, modifying & understanding code.</p>
|
| 14 |
+
</header>
|
| 15 |
+
|
| 16 |
+
<main>
|
| 17 |
+
<!-- 1 Model -->
|
| 18 |
+
<section>
|
| 19 |
+
<h2>1. Select Model</h2>
|
| 20 |
+
<label class="visually-hidden" for="model">AI Model</label>
|
| 21 |
+
<select id="model"></select>
|
| 22 |
+
</section>
|
| 23 |
+
|
| 24 |
+
<!-- 2 Context -->
|
| 25 |
+
<section>
|
| 26 |
+
<h2>2. Provide Context</h2>
|
| 27 |
+
<div class="tabs" role="tablist">
|
| 28 |
+
<button role="tab" aria-selected="true" id="tab-prompt" aria-controls="p-prompt">Prompt</button>
|
| 29 |
+
<button role="tab" aria-selected="false"id="tab-file" aria-controls="p-file">File</button>
|
| 30 |
+
<button role="tab" aria-selected="false"id="tab-website" aria-controls="p-web">Website</button>
|
| 31 |
+
</div>
|
| 32 |
+
<div id="p-prompt" role="tabpanel"><textarea id="prompt" placeholder="Describe what you want to build…"></textarea></div>
|
| 33 |
+
<div id="p-file" role="tabpanel" hidden><input type="file" id="reference-file" accept=".pdf,.docx,.txt"></div>
|
| 34 |
+
<div id="p-web" role="tabpanel" hidden><input type="url" id="website-url" placeholder="https://example.com"></div>
|
| 35 |
+
</section>
|
| 36 |
+
|
| 37 |
+
<!-- 3 Output -->
|
| 38 |
+
<section>
|
| 39 |
+
<h2>3. Configure Output</h2>
|
| 40 |
+
<label for="language">Target Language</label>
|
| 41 |
+
<select id="language"></select>
|
| 42 |
+
<div class="search-toggle">
|
| 43 |
+
<input type="checkbox" id="web-search"><label for="web-search">Enable Web Search</label>
|
| 44 |
+
</div>
|
| 45 |
+
</section>
|
| 46 |
+
|
| 47 |
+
<!-- actions -->
|
| 48 |
+
<section class="actions">
|
| 49 |
+
<button id="clear" type="button">Clear Session</button>
|
| 50 |
+
<button id="generate"type="button">Generate Code</button>
|
| 51 |
+
</section>
|
| 52 |
+
|
| 53 |
+
<!-- output -->
|
| 54 |
+
<section>
|
| 55 |
+
<h2 class="visually-hidden">Output</h2>
|
| 56 |
+
<div class="tabs" role="tablist">
|
| 57 |
+
<button role="tab" aria-selected="true" id="tab-code" aria-controls="o-code">Code</button>
|
| 58 |
+
<button role="tab" aria-selected="false"id="tab-preview" aria-controls="o-prev">Live Preview</button>
|
| 59 |
+
<button role="tab" aria-selected="false"id="tab-history" aria-controls="o-hist">History</button>
|
| 60 |
+
</div>
|
| 61 |
+
<div id="o-code" role="tabpanel"><pre><code id="code-output" class="language-text"></code></pre></div>
|
| 62 |
+
<div id="o-prev" role="tabpanel" hidden><iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe></div>
|
| 63 |
+
<div id="o-hist" role="tabpanel" hidden><ul id="history-list" aria-live="polite"></ul></div>
|
| 64 |
+
</section>
|
| 65 |
+
</main>
|
| 66 |
+
|
| 67 |
+
<script type="module" src="/static/index.js"></script>
|
| 68 |
+
</body></html>
|