bobber commited on
Commit
99c0c8d
·
verified ·
1 Parent(s): 5598662

Fix: move Vexorium header into ChatApp, restore settings+new-chat visibility

Browse files
Files changed (1) hide show
  1. 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 border border-[#2a2a2a] bg-[#111111] px-4 py-3 pb-11 text-[15px] text-[#f0f0f0] placeholder-[#888888] focus:border-[#c9a84c] focus:outline-none focus:ring-1 focus:ring-[#c9a84c] disabled:opacity-50 resize-none max-h-40 shadow-sm"
282
- style={{
283
- minHeight: TEXTAREA_MIN_HEIGHT,
284
- height: TEXTAREA_MIN_HEIGHT,
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 bg-[#0a0a0a] text-[#f0f0f0]">
384
- <header className="flex-none flex items-center justify-between border-b border-[#2a2a2a] px-6 py-3 h-14">
385
- <div className="flex items-center gap-2">
386
- <svg
387
- height="16"
388
- viewBox="0 0 20 20"
389
- width="16"
390
- fill="none"
391
- xmlns="http://www.w3.org/2000/svg"
392
- aria-hidden="true"
 
 
 
 
 
 
393
  >
394
- <path d="M10 1.5 2 6v8l8 4.5 8-4.5V6l-8-4.5Z" fill="#76B900" />
395
- <path d="M10 5.1 6 7.4v5.2l4 2.3 4-2.3V7.4l-4-2.3Z" fill="#fff" />
396
- </svg>
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 text-[#888888] hover:text-[#f0f0f0] hover:bg-[#1a1a1a] transition-opacity duration-300 cursor-pointer ${
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" />