Update index.html
Browse files- index.html +56 -49
index.html
CHANGED
|
@@ -6,85 +6,92 @@
|
|
| 6 |
<title>Multi-Agent Debate - MiMo-V2.6-Distill-Qwen-9B</title>
|
| 7 |
<style>
|
| 8 |
:root{
|
| 9 |
-
--bg:#
|
| 10 |
-
--text:#
|
|
|
|
| 11 |
}
|
| 12 |
-
body.light{ --bg:#
|
| 13 |
*{box-sizing:border-box}
|
| 14 |
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
|
| 15 |
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px}
|
| 16 |
-
#app{max-width:
|
|
|
|
| 17 |
|
| 18 |
-
header{display:flex;align-items:center;gap:10px;padding:
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
header .
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
-
#chat{flex:1;overflow-y:auto;padding:20px
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
.msg .avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;
|
| 30 |
-
font-size:15px;color:#fff;flex:none;margin-top:
|
| 31 |
-
.msg .content{flex:1;min-width:0
|
| 32 |
-
|
| 33 |
-
.msg .who
|
| 34 |
-
.msg .
|
|
|
|
| 35 |
.msg .body p{margin:.35em 0}
|
| 36 |
.msg.user{justify-content:flex-end}
|
| 37 |
-
.msg.user .content{flex:none;
|
| 38 |
-
border-radius:
|
| 39 |
.msg.user .who{display:none}
|
| 40 |
-
.msg.err{color:#
|
| 41 |
-
|
|
|
|
| 42 |
@keyframes pulse{0%,100%{opacity:.3}50%{opacity:1}}
|
| 43 |
.msg.streaming .body::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;
|
| 44 |
background:var(--accent);margin-left:5px;animation:pulse 1s infinite}
|
| 45 |
-
details.think{margin:2px 0
|
| 46 |
-
details.think summary{cursor:pointer;font-size:12px}
|
| 47 |
-
details.think .t{white-space:pre-wrap;border-left:
|
| 48 |
|
| 49 |
-
#controls{padding:
|
| 50 |
-
#topic{flex:1;min-width:0;background:
|
| 51 |
-
border-radius:
|
| 52 |
-
#topic:focus{border-color:var(--accent)}
|
| 53 |
#topic::placeholder{color:var(--muted)}
|
| 54 |
-
#start-btn{flex:none;background:var(--
|
| 55 |
-
cursor:pointer;font-weight:
|
| 56 |
-
#start-btn:hover{
|
| 57 |
-
#start-btn:disabled{
|
| 58 |
-
#stop-btn{flex:none;background:
|
| 59 |
-
padding:
|
| 60 |
|
| 61 |
-
#settings{display:none;margin:
|
| 62 |
-
border-radius:
|
| 63 |
#settings.open{display:block}
|
| 64 |
#settings label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px}
|
| 65 |
-
#settings input,#settings textarea{width:100%;background:var(--
|
| 66 |
-
border:1px solid var(--border);border-radius:
|
| 67 |
#settings input:focus,#settings textarea:focus{border-color:var(--accent)}
|
| 68 |
#settings textarea{min-height:150px;font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:12px}
|
| 69 |
#settings .row{display:flex;gap:10px;flex-wrap:wrap}
|
| 70 |
#settings .row>div{flex:1;min-width:120px}
|
| 71 |
#apply-settings{margin-top:12px;background:var(--accent);border:none;color:#fff;border-radius:999px;
|
| 72 |
-
padding:10px 18px;cursor:pointer;font-weight:
|
| 73 |
|
| 74 |
-
#status{padding:
|
| 75 |
-
#progress{height:
|
| 76 |
-
#progress>div{height:100%;width:0;background:
|
| 77 |
-
footer{padding:10px
|
| 78 |
display:flex;gap:8px 16px;flex-wrap:wrap;justify-content:center;text-align:center}
|
| 79 |
footer a{color:var(--accent);text-decoration:none}
|
| 80 |
|
| 81 |
@media (max-width:640px){
|
| 82 |
-
#chat{padding:
|
| 83 |
-
#controls{padding:
|
| 84 |
-
header{padding:
|
| 85 |
header .subtitle{display:none}
|
| 86 |
.msg .avatar{width:28px;height:28px;font-size:13px}
|
| 87 |
-
|
|
|
|
| 88 |
}
|
| 89 |
</style>
|
| 90 |
</head>
|
|
|
|
| 6 |
<title>Multi-Agent Debate - MiMo-V2.6-Distill-Qwen-9B</title>
|
| 7 |
<style>
|
| 8 |
:root{
|
| 9 |
+
--bg:#efeae2; --surface:#ffffff; --surface2:#f0f2f5; --border:#d1d7db;
|
| 10 |
+
--text:#111b21; --muted:#667781; --accent:#00a884;
|
| 11 |
+
--header:#008069; --bubble-in:#ffffff; --bubble-out:#d9fdd3; --sys:#fdf3c6;
|
| 12 |
}
|
| 13 |
+
body.light{ --bg:#efeae2; --surface:#ffffff; --surface2:#f0f2f5; --border:#d1d7db; --text:#111b21; --muted:#667781; }
|
| 14 |
*{box-sizing:border-box}
|
| 15 |
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
|
| 16 |
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px}
|
| 17 |
+
#app{max-width:900px;margin:0 auto;display:flex;flex-direction:column;height:100vh;height:100dvh;
|
| 18 |
+
box-shadow:0 0 12px rgba(11,20,26,.08);background:var(--bg)}
|
| 19 |
|
| 20 |
+
header{display:flex;align-items:center;gap:10px;padding:8px 16px;background:var(--header);color:#fff;
|
| 21 |
+
border-bottom:none;box-shadow:0 1px 3px rgba(11,20,26,.2);z-index:2}
|
| 22 |
+
header .logo{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.22);
|
| 23 |
+
display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;flex:none}
|
| 24 |
+
header .title{font-weight:600;font-size:16px;letter-spacing:.1px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
| 25 |
+
header .subtitle{font-size:12px;color:rgba(255,255,255,.75);font-weight:400}
|
| 26 |
+
#settings-btn{background:none;border:none;color:#fff;border-radius:50%;
|
| 27 |
+
width:38px;height:38px;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:.15s}
|
| 28 |
+
#settings-btn:hover{background:rgba(255,255,255,.15)}
|
| 29 |
|
| 30 |
+
#chat{flex:1;overflow-y:auto;padding:20px 8%;display:flex;flex-direction:column;gap:8px;
|
| 31 |
+
background-color:var(--bg);
|
| 32 |
+
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d8d1c6' stroke-width='1.4' opacity='0.5'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Cpath d='M50 15h16a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6h-9l-5 5v-5h-2a6 6 0 0 1-6-6v-8a6 6 0 0 1 6-6z'/%3E%3Cpath d='M15 60l4 4 8-8'/%3E%3Ccircle cx='95' cy='70' r='8'/%3E%3Cpath d='M40 95c4-6 12-6 16 0'/%3E%3Cpath d='M85 25l2.5 5 5 2.5-5 2.5-2.5 5-2.5-5-5-2.5 5-2.5z'/%3E%3Crect x='60' y='55' width='12' height='12' rx='3'/%3E%3Cpath d='M20 100q6-8 12 0'/%3E%3C/g%3E%3C/svg%3E")}
|
| 33 |
+
.msg{display:flex;gap:8px;animation:fadein .2s ease;max-width:100%}
|
| 34 |
.msg .avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;
|
| 35 |
+
font-size:15px;color:#fff;flex:none;margin-top:0}
|
| 36 |
+
.msg .content{flex:1;min-width:0;max-width:75%;background:var(--bubble-in);border-radius:8px;padding:6px 9px 8px;
|
| 37 |
+
box-shadow:0 1px 1px rgba(11,20,26,.12)}
|
| 38 |
+
.msg .who{font-size:13px;font-weight:600;margin-bottom:2px}
|
| 39 |
+
.msg .who .round{font-weight:400;color:var(--muted);margin-left:6px;font-size:11px}
|
| 40 |
+
.msg .body{line-height:1.42;word-wrap:break-word;color:var(--text);font-size:14.5px}
|
| 41 |
.msg .body p{margin:.35em 0}
|
| 42 |
.msg.user{justify-content:flex-end}
|
| 43 |
+
.msg.user .content{flex:none;background:var(--bubble-out);border:none;
|
| 44 |
+
border-radius:8px;padding:7px 10px}
|
| 45 |
.msg.user .who{display:none}
|
| 46 |
+
.msg.err{align-self:center;max-width:92%;background:var(--sys);color:#54656f;font-size:12.5px;
|
| 47 |
+
border-radius:8px;padding:6px 12px;text-align:center;box-shadow:0 1px 1px rgba(11,20,26,.12)}
|
| 48 |
+
@keyframes fadein{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
|
| 49 |
@keyframes pulse{0%,100%{opacity:.3}50%{opacity:1}}
|
| 50 |
.msg.streaming .body::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;
|
| 51 |
background:var(--accent);margin-left:5px;animation:pulse 1s infinite}
|
| 52 |
+
details.think{margin:2px 0 6px;font-size:12.5px;color:var(--muted)}
|
| 53 |
+
details.think summary{cursor:pointer;font-size:12px;font-style:italic}
|
| 54 |
+
details.think .t{white-space:pre-wrap;border-left:3px solid var(--border);padding-left:10px;margin-top:5px;font-size:12.5px}
|
| 55 |
|
| 56 |
+
#controls{padding:8px 12px;background:var(--surface2);display:flex;gap:8px;align-items:center;border-top:none}
|
| 57 |
+
#topic{flex:1;min-width:0;background:#fff;border:none;color:var(--text);
|
| 58 |
+
border-radius:8px;padding:11px 14px;font-size:15px;outline:none;box-shadow:0 1px 1px rgba(11,20,26,.08)}
|
|
|
|
| 59 |
#topic::placeholder{color:var(--muted)}
|
| 60 |
+
#start-btn{flex:none;background:var(--accent);color:#fff;border:none;border-radius:999px;padding:11px 18px;
|
| 61 |
+
cursor:pointer;font-weight:600;font-size:14px;transition:background .15s;white-space:nowrap;box-shadow:0 1px 2px rgba(11,20,26,.2)}
|
| 62 |
+
#start-btn:hover{background:#02b08a}
|
| 63 |
+
#start-btn:disabled{background:#aebac1;cursor:default;box-shadow:none}
|
| 64 |
+
#stop-btn{flex:none;background:#fff;border:1px solid #ea0038;color:#ea0038;border-radius:999px;
|
| 65 |
+
padding:10px 16px;cursor:pointer;font-weight:600;font-size:14px;display:none}
|
| 66 |
|
| 67 |
+
#settings{display:none;margin:8px 12px 10px;padding:16px;border:1px solid var(--border);
|
| 68 |
+
border-radius:12px;background:var(--surface);box-shadow:0 2px 6px rgba(11,20,26,.1)}
|
| 69 |
#settings.open{display:block}
|
| 70 |
#settings label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px}
|
| 71 |
+
#settings input,#settings textarea{width:100%;background:var(--surface2);color:var(--text);
|
| 72 |
+
border:1px solid var(--border);border-radius:8px;padding:9px 12px;font-size:14px;font-family:inherit;outline:none}
|
| 73 |
#settings input:focus,#settings textarea:focus{border-color:var(--accent)}
|
| 74 |
#settings textarea{min-height:150px;font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:12px}
|
| 75 |
#settings .row{display:flex;gap:10px;flex-wrap:wrap}
|
| 76 |
#settings .row>div{flex:1;min-width:120px}
|
| 77 |
#apply-settings{margin-top:12px;background:var(--accent);border:none;color:#fff;border-radius:999px;
|
| 78 |
+
padding:10px 18px;cursor:pointer;font-weight:600}
|
| 79 |
|
| 80 |
+
#status{padding:6px 16px;font-size:12px;color:var(--muted);background:var(--bg)}
|
| 81 |
+
#progress{height:3px;background:rgba(11,20,26,.08)}
|
| 82 |
+
#progress>div{height:100%;width:0;background:var(--accent);transition:width .25s}
|
| 83 |
+
footer{padding:10px 16px;font-size:11px;color:var(--muted);border-top:1px solid var(--border);background:var(--surface2);
|
| 84 |
display:flex;gap:8px 16px;flex-wrap:wrap;justify-content:center;text-align:center}
|
| 85 |
footer a{color:var(--accent);text-decoration:none}
|
| 86 |
|
| 87 |
@media (max-width:640px){
|
| 88 |
+
#chat{padding:12px 4%;gap:7px}
|
| 89 |
+
#controls{padding:8px 8px}
|
| 90 |
+
header{padding:8px 10px}
|
| 91 |
header .subtitle{display:none}
|
| 92 |
.msg .avatar{width:28px;height:28px;font-size:13px}
|
| 93 |
+
.msg .content{max-width:85%}
|
| 94 |
+
#settings{margin:0 8px 8px}
|
| 95 |
}
|
| 96 |
</style>
|
| 97 |
</head>
|