Update static/index.html
Browse files- static/index.html +44 -48
static/index.html
CHANGED
@@ -1,98 +1,94 @@
|
|
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,
|
7 |
<title>AnyCoder AI Code Generator</title>
|
8 |
<meta name="description"
|
9 |
-
content="Generate, modify
|
10 |
-
<!-- dark‑theme stylesheet -->
|
11 |
<link rel="stylesheet" href="file=/static/style.css" />
|
12 |
</head>
|
13 |
<body>
|
14 |
<header>
|
15 |
<h1>🚀 AnyCoder AI</h1>
|
16 |
-
<p>Your AI partner for generating, modifying
|
17 |
</header>
|
18 |
|
19 |
<main>
|
20 |
-
<!-- 1 ·
|
21 |
-
<section aria-labelledby="
|
22 |
-
<h2 id="
|
23 |
-
<
|
24 |
-
<select id="model"></select>
|
25 |
</section>
|
26 |
|
27 |
-
<!-- 2 ·
|
28 |
-
<section aria-labelledby="
|
29 |
-
<h2 id="
|
30 |
|
31 |
<div class="tabs" role="tablist">
|
32 |
-
<button role="tab" id="
|
33 |
-
<button role="tab" id="
|
34 |
-
<button role="tab" id="
|
35 |
</div>
|
36 |
|
37 |
-
<div role="tabpanel" id="
|
38 |
-
<textarea id="prompt" placeholder="Describe what you want to build…"
|
39 |
-
aria-label="Prompt"></textarea>
|
40 |
</div>
|
41 |
|
42 |
-
<div role="tabpanel" id="
|
43 |
-
<label for="
|
44 |
-
<input id="
|
45 |
</div>
|
46 |
|
47 |
-
<div role="tabpanel" id="
|
48 |
-
<label for="
|
49 |
-
<input id="
|
50 |
</div>
|
51 |
</section>
|
52 |
|
53 |
-
<!-- 3 ·
|
54 |
-
<section aria-labelledby="
|
55 |
-
<h2 id="
|
56 |
-
<label for="
|
57 |
-
<select id="
|
58 |
|
59 |
-
<div class="search
|
60 |
-
<input id="
|
61 |
-
<label for="
|
62 |
</div>
|
63 |
</section>
|
64 |
|
65 |
-
<!--
|
66 |
<section class="actions">
|
67 |
-
<button id="clear"
|
68 |
-
<button id="
|
69 |
</section>
|
70 |
|
71 |
-
<!--
|
72 |
-
<section aria-labelledby="
|
73 |
-
<h2 id="
|
74 |
|
75 |
<div class="tabs" role="tablist">
|
76 |
-
<button role="tab" id="
|
77 |
-
<button role="tab" id="
|
78 |
-
<button role="tab" id="
|
79 |
</div>
|
80 |
|
81 |
-
<div role="tabpanel" id="
|
82 |
-
<pre><code id="code
|
83 |
</div>
|
84 |
|
85 |
-
<div role="tabpanel" id="
|
86 |
<iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe>
|
87 |
</div>
|
88 |
|
89 |
-
<div role="tabpanel" id="
|
90 |
-
<ul id="
|
91 |
</div>
|
92 |
</section>
|
93 |
</main>
|
94 |
|
95 |
-
<!-- Front‑end logic -->
|
96 |
<script type="module" src="file=/static/index.js"></script>
|
97 |
</body>
|
98 |
</html>
|
|
|
1 |
+
<!-- static/index.html – AnyCoder AI (dark theme) -->
|
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 |
<title>AnyCoder AI Code Generator</title>
|
8 |
<meta name="description"
|
9 |
+
content="Generate, modify & understand code with the most advanced AI models." />
|
|
|
10 |
<link rel="stylesheet" href="file=/static/style.css" />
|
11 |
</head>
|
12 |
<body>
|
13 |
<header>
|
14 |
<h1>🚀 AnyCoder AI</h1>
|
15 |
+
<p>Your AI partner for generating, modifying & understanding code.</p>
|
16 |
</header>
|
17 |
|
18 |
<main>
|
19 |
+
<!-- 1 · MODEL -->
|
20 |
+
<section aria-labelledby="m‑h">
|
21 |
+
<h2 id="m‑h">1. Select Model</h2>
|
22 |
+
<select id="model" aria-label="AI Model"></select>
|
|
|
23 |
</section>
|
24 |
|
25 |
+
<!-- 2 · CONTEXT -->
|
26 |
+
<section aria-labelledby="c‑h">
|
27 |
+
<h2 id="c‑h">2. Provide Context</h2>
|
28 |
|
29 |
<div class="tabs" role="tablist">
|
30 |
+
<button role="tab" id="t‑prompt" aria-controls="p‑prompt" aria-selected="true">Prompt</button>
|
31 |
+
<button role="tab" id="t‑file" aria-controls="p‑file" aria-selected="false">File</button>
|
32 |
+
<button role="tab" id="t‑web" aria-controls="p‑web" aria-selected="false">Website</button>
|
33 |
</div>
|
34 |
|
35 |
+
<div role="tabpanel" id="p‑prompt">
|
36 |
+
<textarea id="prompt" placeholder="Describe what you want to build…"></textarea>
|
|
|
37 |
</div>
|
38 |
|
39 |
+
<div role="tabpanel" id="p‑file" hidden>
|
40 |
+
<label for="file">Reference file</label>
|
41 |
+
<input id="file" type="file" accept=".pdf,.docx,.txt" />
|
42 |
</div>
|
43 |
|
44 |
+
<div role="tabpanel" id="p‑web" hidden>
|
45 |
+
<label for="url">Website URL</label>
|
46 |
+
<input id="url" type="url" placeholder="https://example.com" />
|
47 |
</div>
|
48 |
</section>
|
49 |
|
50 |
+
<!-- 3 · OUTPUT -->
|
51 |
+
<section aria-labelledby="o‑h">
|
52 |
+
<h2 id="o‑h">3. Configure Output</h2>
|
53 |
+
<label for="lang">Target language</label>
|
54 |
+
<select id="lang"></select>
|
55 |
|
56 |
+
<div class="search">
|
57 |
+
<input id="search" type="checkbox" />
|
58 |
+
<label for="search">Enable web search</label>
|
59 |
</div>
|
60 |
</section>
|
61 |
|
62 |
+
<!-- ACTIONS -->
|
63 |
<section class="actions">
|
64 |
+
<button id="clear">Clear session</button>
|
65 |
+
<button id="gen">Generate code</button>
|
66 |
</section>
|
67 |
|
68 |
+
<!-- OUTPUT PANES -->
|
69 |
+
<section aria-labelledby="out‑h">
|
70 |
+
<h2 id="out‑h" class="visually‑hidden">Output</h2>
|
71 |
|
72 |
<div class="tabs" role="tablist">
|
73 |
+
<button role="tab" id="t‑code" aria-controls="p‑code" aria-selected="true">Code</button>
|
74 |
+
<button role="tab" id="t‑preview" aria-controls="p‑preview" aria-selected="false">Preview</button>
|
75 |
+
<button role="tab" id="t‑hist" aria-controls="p‑hist" aria-selected="false">History</button>
|
76 |
</div>
|
77 |
|
78 |
+
<div role="tabpanel" id="p‑code">
|
79 |
+
<pre><code id="code"></code></pre>
|
80 |
</div>
|
81 |
|
82 |
+
<div role="tabpanel" id="p‑preview" hidden>
|
83 |
<iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe>
|
84 |
</div>
|
85 |
|
86 |
+
<div role="tabpanel" id="p‑hist" hidden>
|
87 |
+
<ul id="hist" aria-live="polite"></ul>
|
88 |
</div>
|
89 |
</section>
|
90 |
</main>
|
91 |
|
|
|
92 |
<script type="module" src="file=/static/index.js"></script>
|
93 |
</body>
|
94 |
</html>
|