Update static/index.html
Browse files- static/index.html +108 -87
static/index.html
CHANGED
|
@@ -1,94 +1,115 @@
|
|
| 1 |
-
<!-- static/index.html
|
| 2 |
<!DOCTYPE html>
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
-
<meta charset="
|
| 6 |
-
<meta name="viewport" content="width=device-width,initial-scale=1.0"
|
| 7 |
-
|
| 8 |
-
<
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
-
<header>
|
| 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 |
</body>
|
| 94 |
</html>
|
|
|
|
| 1 |
+
<!-- /static/index.html -->
|
| 2 |
<!DOCTYPE html>
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
+
<meta charset="UTF-8" />
|
| 6 |
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
| 7 |
+
|
| 8 |
+
<title>AnyCoder AI</title>
|
| 9 |
+
<meta
|
| 10 |
+
name="description"
|
| 11 |
+
content="Generate, modify and understand code with today’s most advanced AI models."
|
| 12 |
+
/>
|
| 13 |
+
|
| 14 |
+
<!-- one dark‑mode friendly stylesheet -->
|
| 15 |
+
<link rel="stylesheet" href="/static/style.css" />
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
+
<header>
|
| 19 |
+
<h1>🚀 AnyCoder AI</h1>
|
| 20 |
+
<p class="tagline">
|
| 21 |
+
Your AI partner for generating, modifying & understanding code.
|
| 22 |
+
</p>
|
| 23 |
+
</header>
|
| 24 |
+
|
| 25 |
+
<!-- ───────────── MAIN LAYOUT ───────────── -->
|
| 26 |
+
<main>
|
| 27 |
+
<!-- 1 · Model -->
|
| 28 |
+
<section class="card" aria-labelledby="h‑model">
|
| 29 |
+
<h2 id="h‑model">1. Select Model</h2>
|
| 30 |
+
<label class="visually‑hidden" for="model">AI Model</label>
|
| 31 |
+
<select id="model"></select>
|
| 32 |
+
</section>
|
| 33 |
+
|
| 34 |
+
<!-- 2 · Context -->
|
| 35 |
+
<section class="card" aria-labelledby="h‑context">
|
| 36 |
+
<h2 id="h‑context">2. Provide Context</h2>
|
| 37 |
+
|
| 38 |
+
<!-- tab buttons -->
|
| 39 |
+
<div class="tabs" role="tablist">
|
| 40 |
+
<button role="tab" id="tab‑prompt" aria‑selected="true"
|
| 41 |
+
aria‑controls="panel‑prompt">Prompt</button>
|
| 42 |
+
<button role="tab" id="tab‑file" aria‑selected="false"
|
| 43 |
+
aria‑controls="panel‑file">File</button>
|
| 44 |
+
<button role="tab" id="tab‑website" aria‑selected="false"
|
| 45 |
+
aria‑controls="panel‑website">Website</button>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<!-- tab panels -->
|
| 49 |
+
<div id="panel‑prompt" role="tabpanel">
|
| 50 |
+
<textarea id="prompt" placeholder="Describe what you want to build…" aria‑label="Prompt"></textarea>
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
+
<div id="panel‑file" role="tabpanel" hidden>
|
| 54 |
+
<label for="reference‑file">Reference File</label>
|
| 55 |
+
<input type="file" id="reference‑file"
|
| 56 |
+
accept=".pdf,.docx,.txt" />
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div id="panel‑website" role="tabpanel" hidden>
|
| 60 |
+
<label for="website‑url">Website URL</label>
|
| 61 |
+
<input type="url" id="website‑url" placeholder="https://example.com" />
|
| 62 |
+
</div>
|
| 63 |
+
</section>
|
| 64 |
+
|
| 65 |
+
<!-- 3 · Output -->
|
| 66 |
+
<section class="card" aria-labelledby="h‑output">
|
| 67 |
+
<h2 id="h‑output">3. Configure Output</h2>
|
| 68 |
+
|
| 69 |
+
<label for="language">Target Language</label>
|
| 70 |
+
<select id="language"></select>
|
| 71 |
+
|
| 72 |
+
<div class="checkbox‑row">
|
| 73 |
+
<input type="checkbox" id="web‑search" />
|
| 74 |
+
<label for="web‑search">Enable Web Search</label>
|
| 75 |
+
</div>
|
| 76 |
+
</section>
|
| 77 |
+
|
| 78 |
+
<!-- 4 · Actions -->
|
| 79 |
+
<section class="actions">
|
| 80 |
+
<button id="clear" type="button">Clear Session</button>
|
| 81 |
+
<button id="generate" type="button" class="primary">Generate Code</button>
|
| 82 |
+
</section>
|
| 83 |
+
|
| 84 |
+
<!-- 5 · Output tabs -->
|
| 85 |
+
<section class="card" aria-labelledby="h‑tabs">
|
| 86 |
+
<h2 id="h‑tabs" class="visually‑hidden">Output</h2>
|
| 87 |
+
|
| 88 |
+
<div class="tabs" role="tablist">
|
| 89 |
+
<button role="tab" id="tab‑code" aria‑selected="true"
|
| 90 |
+
aria‑controls="panel‑code">Code</button>
|
| 91 |
+
<button role="tab" id="tab‑preview" aria‑selected="false"
|
| 92 |
+
aria‑controls="panel‑preview">Live Preview</button>
|
| 93 |
+
<button role="tab" id="tab‑history" aria‑selected="false"
|
| 94 |
+
aria‑controls="panel‑history">History</button>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<div id="panel‑code" role="tabpanel">
|
| 98 |
+
<pre><code id="code‑output" class="language‑html"></></code></pre>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<div id="panel‑preview" role="tabpanel" hidden>
|
| 102 |
+
<iframe id="preview" title="Live preview"
|
| 103 |
+
sandbox="allow‑scripts allow‑same‑origin"></iframe>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div id="panel‑history" role="tabpanel" hidden>
|
| 107 |
+
<ul id="history‑list" aria‑live="polite"></ul>
|
| 108 |
+
</div>
|
| 109 |
+
</section>
|
| 110 |
+
</main>
|
| 111 |
+
|
| 112 |
+
<!-- front‑end logic -->
|
| 113 |
+
<script type="module" src="/static/index.js"></script>
|
| 114 |
</body>
|
| 115 |
</html>
|