|
10 | 10 | <link href="https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-sans/style.css" rel="stylesheet"> |
11 | 11 | <link href="https://cdn.jsdelivr.net/npm/geist@1.0.0/dist/fonts/geist-mono/style.css" rel="stylesheet"> |
12 | 12 | <link href="/static/common/common.css" rel="stylesheet"> |
13 | | - <link href="/static/chat/chat.css?v=1" rel="stylesheet"> |
| 13 | + <link href="/static/chat/chat.css?v=2" rel="stylesheet"> |
14 | 14 | <link href="/static/common/toast.css" rel="stylesheet"> |
15 | 15 | </head> |
16 | 16 |
|
17 | 17 | <body class="min-h-screen flex flex-col" style="background-color: var(--bg);"> |
18 | 18 | <div id="toast-container" class="toast-container"></div> |
19 | 19 |
|
20 | 20 | <header class="border-b border-[var(--border)] bg-[var(--bg)]/80 backdrop-blur-md sticky top-0 z-10"> |
21 | | - <div class="max-w-5xl mx-auto px-6 h-14 flex items-center justify-between"> |
| 21 | + <div class="chat-public-header max-w-5xl mx-auto px-6 h-14 flex items-center justify-between"> |
22 | 22 | <div class="flex items-center gap-3"> |
23 | 23 | <div class="font-semibold tracking-tight">Grok2API</div> |
24 | 24 | <div class="text-xs text-[var(--accents-5)]">在线聊天</div> |
25 | 25 | </div> |
26 | | - <div class="flex items-center gap-2"> |
| 26 | + <div class="chat-top-actions flex items-center gap-2"> |
27 | 27 | <a href="/login" class="geist-button-outline text-xs px-3 py-1.5">后台登录</a> |
28 | 28 | <a href="/admin/chat" class="geist-button-outline text-xs px-3 py-1.5">后台聊天</a> |
29 | 29 | </div> |
|
47 | 47 | <input id="stream-toggle" type="checkbox" class="checkbox" checked> |
48 | 48 | <label for="stream-toggle" class="text-sm">Stream</label> |
49 | 49 | </div> |
50 | | - <div class="col-span-6 md:col-span-2 flex justify-end gap-2"> |
| 50 | + <div class="col-span-12 md:col-span-2 flex flex-wrap justify-end gap-2"> |
51 | 51 | <button class="geist-button-outline text-xs px-3" onclick="saveApiKey()">保存</button> |
52 | 52 | <button class="geist-button-danger text-xs px-3" onclick="clearApiKey()">清除</button> |
53 | 53 | </div> |
|
70 | 70 | <button class="geist-button-outline text-xs px-3" onclick="pickChatImage()">上传图片</button> |
71 | 71 | <div id="chat-attach-info" class="text-xs text-[var(--accents-5)]"></div> |
72 | 72 | <div class="flex-1"></div> |
73 | | - <button class="geist-button text-xs px-4" onclick="sendChat()">发送</button> |
| 73 | + <button class="geist-button text-xs px-4 composer-primary" onclick="sendChat()">发送</button> |
74 | 74 | </div> |
75 | 75 | <textarea id="chat-input" class="geist-input h-24" placeholder="输入消息..."></textarea> |
76 | 76 | <div id="chat-attach-preview" class="attach-preview hidden"></div> |
|
142 | 142 | <button class="geist-button-outline text-xs px-3" onclick="pickVideoImage()">上传参考图(可选)</button> |
143 | 143 | <div id="video-attach-info" class="text-xs text-[var(--accents-5)]"></div> |
144 | 144 | <div class="flex-1"></div> |
145 | | - <button class="geist-button text-xs px-4" onclick="generateVideo()">生成视频</button> |
| 145 | + <button class="geist-button text-xs px-4 composer-primary" onclick="generateVideo()">生成视频</button> |
146 | 146 | </div> |
147 | 147 | <div id="video-attach-preview" class="attach-preview hidden"></div> |
148 | 148 | </div> |
|
157 | 157 | </body> |
158 | 158 |
|
159 | 159 | </html> |
160 | | - |
0 commit comments