mgbam commited on
Commit
b07d55c
·
verified ·
1 Parent(s): a18bd58

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +89 -59
static/index.html CHANGED
@@ -1,68 +1,98 @@
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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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, and understand code with the most advanced AI models." />
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 & understanding code.</p>
17
+ </header>
18
 
19
+ <main>
20
+ <!-- 1 · Model -->
21
+ <section aria-labelledby="model‑h">
22
+ <h2 id="model‑h">1. Select Model</h2>
23
+ <label class="visuallyhidden" for="model">AI model</label>
24
+ <select id="model"></select>
25
+ </section>
26
 
27
+ <!-- 2 · Context -->
28
+ <section aria-labelledby="context‑h">
29
+ <h2 id="context‑h">2. Provide Context</h2>
 
 
 
 
 
 
 
 
 
30
 
31
+ <div class="tabs" role="tablist">
32
+ <button role="tab" id="tab‑prompt" aria-controls="pane‑prompt" aria-selected="true">Prompt</button>
33
+ <button role="tab" id="tab‑file" aria-controls="pane‑file" aria-selected="false">File</button>
34
+ <button role="tab" id="tab‑website" aria-controls="pane‑website" aria-selected="false">Website</button>
35
+ </div>
 
 
 
 
36
 
37
+ <div role="tabpanel" id="pane‑prompt">
38
+ <textarea id="prompt" placeholder="Describe what you want to build…"
39
+ aria-label="Prompt"></textarea>
40
+ </div>
 
41
 
42
+ <div role="tabpanel" id="pane‑file" hidden>
43
+ <label for="reference‑file">Reference file</label>
44
+ <input id="reference‑file" type="file" accept=".pdf,.docx,.txt" />
45
+ </div>
 
 
 
 
 
 
 
 
 
46
 
47
+ <div role="tabpanel" id="pane‑website" hidden>
48
+ <label for="website‑url">Website URL</label>
49
+ <input id="website‑url" type="url" placeholder="https://example.com" />
50
+ </div>
51
+ </section>
52
+
53
+ <!-- 3 · Output -->
54
+ <section aria-labelledby="output‑h">
55
+ <h2 id="output‑h">3. Configure Output</h2>
56
+ <label for="language">Target language</label>
57
+ <select id="language"></select>
58
+
59
+ <div class="search‑toggle">
60
+ <input id="web‑search" type="checkbox" />
61
+ <label for="web‑search">Enable web search</label>
62
+ </div>
63
+ </section>
64
+
65
+ <!-- actions -->
66
+ <section class="actions">
67
+ <button id="clear" type="button">Clear session</button>
68
+ <button id="generate" type="button">Generate code</button>
69
+ </section>
70
+
71
+ <!-- Output panes -->
72
+ <section aria-labelledby="panes‑h">
73
+ <h2 id="panes‑h" class="visually‑hidden">Output</h2>
74
+
75
+ <div class="tabs" role="tablist">
76
+ <button role="tab" id="tab‑code" aria-controls="pane‑code" aria-selected="true">Code</button>
77
+ <button role="tab" id="tab‑preview" aria-controls="pane‑preview" aria-selected="false">Live preview</button>
78
+ <button role="tab" id="tab‑history" aria-controls="pane‑history" aria-selected="false">History</button>
79
+ </div>
80
+
81
+ <div role="tabpanel" id="pane‑code">
82
+ <pre><code id="code‑out"></code></pre>
83
+ </div>
84
+
85
+ <div role="tabpanel" id="pane‑preview" hidden>
86
+ <iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe>
87
+ </div>
88
+
89
+ <div role="tabpanel" id="pane‑history" hidden>
90
+ <ul id="history‑list" aria-live="polite"></ul>
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>