UntilDot commited on
Commit
092560d
·
verified ·
1 Parent(s): c5acba3

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +100 -0
index.html ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en" class="bg0 text-fg0 dark">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>MoA Chat</title>
7
+ <link
8
+ href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
9
+ rel="stylesheet"
10
+ />
11
+ <link rel="stylesheet" href="/static/style.css" />
12
+ </head>
13
+ <body class="bg0 text-fg0 transition-colors duration-300">
14
+ <div class="min-h-screen flex flex-col justify-between p-4">
15
+ <header class="flex items-center justify-between mb-4">
16
+ <h1 class="text-2xl font-bold">MoA Chat</h1>
17
+ <div class="space-x-2">
18
+ <button
19
+ id="toggleConfig"
20
+ class="bg-blue px-3 py-1 rounded text-fg0 hover:bg-purple transition"
21
+ >
22
+ Config
23
+ </button>
24
+ <button
25
+ id="themeToggle"
26
+ class="bg-blue px-3 py-1 rounded text-fg0 hover:bg-purple transition"
27
+ >
28
+ Theme
29
+ </button>
30
+ </div>
31
+ </header>
32
+
33
+ <div id="configPanel" class="bg1 rounded p-4 mb-4 hidden">
34
+ <h2 class="text-lg font-semibold mb-2">Model Selection</h2>
35
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
36
+ <div>
37
+ <label class="block mb-1">LLM-A</label>
38
+ <div
39
+ id="modelA"
40
+ class="model-dropdown relative bg-statusline1 text-fg0 rounded p-2 cursor-pointer select-none"
41
+ >
42
+ <span class="selected block">Select a model</span>
43
+ <div
44
+ class="options hidden absolute left-0 right-0 mt-2 bg-statusline1 rounded shadow-md z-10 max-h-60 overflow-y-auto"
45
+ ></div>
46
+ </div>
47
+ </div>
48
+ <div>
49
+ <label class="block mb-1">LLM-B</label>
50
+ <div
51
+ id="modelB"
52
+ class="model-dropdown relative bg-statusline1 text-fg0 rounded p-2 cursor-pointer select-none"
53
+ >
54
+ <span class="selected block">Select a model</span>
55
+ <div
56
+ class="options hidden absolute left-0 right-0 mt-2 bg-statusline1 rounded shadow-md z-10 max-h-60 overflow-y-auto"
57
+ ></div>
58
+ </div>
59
+ </div>
60
+ <div>
61
+ <label class="block mb-1">LLM-C</label>
62
+ <div
63
+ id="modelC"
64
+ class="model-dropdown relative bg-statusline1 text-fg0 rounded p-2 cursor-pointer select-none"
65
+ >
66
+ <span class="selected block">Select a model</span>
67
+ <div
68
+ class="options hidden absolute left-0 right-0 mt-2 bg-statusline1 rounded shadow-md z-10 max-h-60 overflow-y-auto"
69
+ ></div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <main
76
+ id="chatContainer"
77
+ class="flex-1 overflow-y-auto bg1 p-4 rounded shadow-md space-y-4"
78
+ >
79
+ <!-- Messages injected here -->
80
+ </main>
81
+
82
+ <form id="chatForm" class="mt-4 flex">
83
+ <input
84
+ id="userInput"
85
+ type="text"
86
+ placeholder="Ask something..."
87
+ class="flex-1 px-4 py-2 rounded-l border-none bg-statusline1 text-fg0 placeholder-fg1 focus:outline-none"
88
+ />
89
+ <button
90
+ type="submit"
91
+ class="px-4 py-2 bg-green text-fg0 rounded-r hover:bg-visual_green transition"
92
+ >
93
+ Send
94
+ </button>
95
+ </form>
96
+ </div>
97
+
98
+ <script src="/static/script.js"></script>
99
+ </body>
100
+ </html>