Spaces:
Sleeping
Sleeping
Fix: move Vexorium header into ChatApp, restore settings+new-chat visibility
Browse files- src/components/ChatApp.tsx +27 -23
src/components/ChatApp.tsx
CHANGED
|
@@ -278,11 +278,10 @@ export function ChatApp() {
|
|
| 278 |
<div className="relative">
|
| 279 |
<textarea
|
| 280 |
ref={textareaRef}
|
| 281 |
-
className="w-full rounded-xl
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
}}
|
| 286 |
placeholder={isReady ? "Type a message…" : "Loading model…"}
|
| 287 |
value={input}
|
| 288 |
onChange={(event) => {
|
|
@@ -380,24 +379,26 @@ export function ChatApp() {
|
|
| 380 |
);
|
| 381 |
|
| 382 |
return (
|
| 383 |
-
<div className="flex h-full flex-col
|
| 384 |
-
<header className="flex-none flex items-center justify-between
|
| 385 |
-
<div className="flex items-center gap-
|
| 386 |
-
<svg
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
>
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
</
|
| 397 |
-
<h1 className="text-base font-semibold text-[#f0f0f0]">
|
| 398 |
-
{MODEL_CONFIG.label}
|
| 399 |
-
</h1>
|
| 400 |
-
<span className="text-base font-semibold text-[#888888]">WebGPU</span>
|
| 401 |
</div>
|
| 402 |
<div className="flex items-center gap-3">
|
| 403 |
<button
|
|
@@ -412,9 +413,12 @@ export function ChatApp() {
|
|
| 412 |
</button>
|
| 413 |
<button
|
| 414 |
onClick={clearChat}
|
| 415 |
-
className={`flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs
|
| 416 |
showNewChat ? "opacity-100" : "opacity-0 pointer-events-none"
|
| 417 |
}`}
|
|
|
|
|
|
|
|
|
|
| 418 |
title="New chat"
|
| 419 |
>
|
| 420 |
<Plus className="h-3.5 w-3.5" />
|
|
|
|
| 278 |
<div className="relative">
|
| 279 |
<textarea
|
| 280 |
ref={textareaRef}
|
| 281 |
+
className="w-full rounded-xl px-4 py-3 pb-11 text-[15px] placeholder-[#555] disabled:opacity-50 resize-none max-h-40 shadow-sm focus:outline-none"
|
| 282 |
+
style={{ border: "1px solid rgba(0,255,255,0.15)", background: "rgba(10,10,28,0.95)", color: "#e0e0f0", minHeight: TEXTAREA_MIN_HEIGHT, height: TEXTAREA_MIN_HEIGHT }}
|
| 283 |
+
onFocus={e => (e.currentTarget.style.borderColor = "rgba(0,255,255,0.5)")}
|
| 284 |
+
onBlur={e => (e.currentTarget.style.borderColor = "rgba(0,255,255,0.15)")}
|
|
|
|
| 285 |
placeholder={isReady ? "Type a message…" : "Loading model…"}
|
| 286 |
value={input}
|
| 287 |
onChange={(event) => {
|
|
|
|
| 379 |
);
|
| 380 |
|
| 381 |
return (
|
| 382 |
+
<div className="flex h-full flex-col text-[#e0e0f0]" style={{ background: "#050515" }}>
|
| 383 |
+
<header className="flex-none flex items-center justify-between px-6 py-3 h-14" style={{ borderBottom: "1px solid rgba(0,255,255,0.12)", background: "rgba(5,5,21,0.9)" }}>
|
| 384 |
+
<div className="flex items-center gap-3">
|
| 385 |
+
<img src="/vexorium_logo.svg" alt="Vexorium" style={{ width: "28px", height: "28px" }} />
|
| 386 |
+
<span
|
| 387 |
+
style={{
|
| 388 |
+
fontFamily: "'Orbitron', sans-serif",
|
| 389 |
+
fontSize: "13px",
|
| 390 |
+
fontWeight: 700,
|
| 391 |
+
letterSpacing: "0.15em",
|
| 392 |
+
background: "linear-gradient(90deg, #00ffff, #ff00ff)",
|
| 393 |
+
WebkitBackgroundClip: "text",
|
| 394 |
+
WebkitTextFillColor: "transparent",
|
| 395 |
+
backgroundClip: "text",
|
| 396 |
+
textTransform: "uppercase",
|
| 397 |
+
}}
|
| 398 |
>
|
| 399 |
+
Vexorium
|
| 400 |
+
</span>
|
| 401 |
+
<span style={{ color: "rgba(0,255,255,0.35)", fontSize: "12px", fontFamily: "'Exo 2', sans-serif" }}>AI Interviewer · WebGPU</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
</div>
|
| 403 |
<div className="flex items-center gap-3">
|
| 404 |
<button
|
|
|
|
| 413 |
</button>
|
| 414 |
<button
|
| 415 |
onClick={clearChat}
|
| 416 |
+
className={`flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs transition-opacity duration-300 cursor-pointer ${
|
| 417 |
showNewChat ? "opacity-100" : "opacity-0 pointer-events-none"
|
| 418 |
}`}
|
| 419 |
+
style={{ color: "rgba(0,255,255,0.6)" }}
|
| 420 |
+
onMouseEnter={e => (e.currentTarget.style.color = "#00ffff")}
|
| 421 |
+
onMouseLeave={e => (e.currentTarget.style.color = "rgba(0,255,255,0.6)")}
|
| 422 |
title="New chat"
|
| 423 |
>
|
| 424 |
<Plus className="h-3.5 w-3.5" />
|