mgbam commited on
Commit
c0b43a6
·
verified ·
1 Parent(s): c558be9

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +108 -87
static/index.html CHANGED
@@ -1,94 +1,115 @@
1
- <!-- static/index.html – AnyCoder / Shasha AI (2025‑07) -->
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 &amp; understand code with advanced AI models.">
10
- <!-- Gradio serves local assets through the “file=” scheme -->
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>
22
- <h2>1. Select Model</h2>
23
- <select id="model" aria-label="AI Model"></select>
24
- </section>
25
-
26
- <!-- 2 · CONTEXT -->
27
- <section>
28
- <h2>2. Provide Context</h2>
29
- <div class="tabs" role="tablist">
30
- <button role="tab" id="tab-prompt" aria-controls="pane-prompt" aria-selected="true">Prompt</button>
31
- <button role="tab" id="tab-file" aria-controls="pane-file" aria-selected="false">File</button>
32
- <button role="tab" id="tab-website" aria-controls="pane-website" aria-selected="false">Website</button>
33
- </div>
34
-
35
- <div role="tabpanel" id="pane-prompt">
36
- <textarea id="prompt" placeholder="Describe what you want to build…"></textarea>
37
- </div>
38
-
39
- <div role="tabpanel" id="pane-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="pane-website" 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>
52
- <h2>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 TABS -->
69
- <section>
70
- <h2 class="visually-hidden">Output</h2>
71
- <div class="tabs" role="tablist">
72
- <button role="tab" id="tab-code" aria-controls="pane-code" aria-selected="true">Code</button>
73
- <button role="tab" id="tab-preview" aria-controls="pane-preview" aria-selected="false">Live Preview</button>
74
- <button role="tab" id="tab-hist" aria-controls="pane-hist" aria-selected="false">History</button>
75
- </div>
76
-
77
- <div role="tabpanel" id="pane-code">
78
- <pre><code id="code"></code></pre>
79
- </div>
80
-
81
- <div role="tabpanel" id="pane-preview" hidden>
82
- <iframe id="preview" title="Live preview"
83
- sandbox="allow-scripts allow-same-origin"></iframe>
84
- </div>
85
-
86
- <div role="tabpanel" id="pane-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>
 
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 &amp; 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">&lt;/&gt;</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>