|
1 | 1 | export function EmptyState() { |
2 | 2 | return ( |
3 | | - <div className="flex flex-1 items-center justify-center px-6"> |
4 | | - <div className="flex w-full max-w-3xl flex-col items-center gap-6 text-center"> |
5 | | - <div className="flex h-16 w-16 items-center justify-center rounded-md border border-[var(--border-muted)] bg-white"> |
6 | | - <img alt="Quadtrix.cpp icon" className="h-14 w-14 object-contain" src="/icon.svg" /> |
| 3 | + <div |
| 4 | + style={{ |
| 5 | + flex: 1, |
| 6 | + display: "flex", |
| 7 | + alignItems: "center", |
| 8 | + justifyContent: "center", |
| 9 | + padding: "24px", |
| 10 | + }} |
| 11 | + > |
| 12 | + <div |
| 13 | + style={{ |
| 14 | + display: "flex", |
| 15 | + flexDirection: "column", |
| 16 | + alignItems: "center", |
| 17 | + gap: 20, |
| 18 | + textAlign: "center", |
| 19 | + maxWidth: 420, |
| 20 | + }} |
| 21 | + > |
| 22 | + {/* Icon */} |
| 23 | + <div |
| 24 | + style={{ |
| 25 | + width: 56, |
| 26 | + height: 56, |
| 27 | + borderRadius: 14, |
| 28 | + background: "linear-gradient(135deg, #4f8ef7 0%, #2563eb 100%)", |
| 29 | + display: "flex", |
| 30 | + alignItems: "center", |
| 31 | + justifyContent: "center", |
| 32 | + boxShadow: "0 8px 32px rgba(79,142,247,0.25)", |
| 33 | + }} |
| 34 | + > |
| 35 | + <svg width="28" height="28" viewBox="0 0 24 24" fill="none"> |
| 36 | + <path |
| 37 | + d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" |
| 38 | + fill="white" |
| 39 | + opacity="0.9" |
| 40 | + /> |
| 41 | + <path |
| 42 | + d="M8 12l2-2 2 2 4-4" |
| 43 | + stroke="white" |
| 44 | + strokeWidth="1.5" |
| 45 | + strokeLinecap="round" |
| 46 | + strokeLinejoin="round" |
| 47 | + fill="none" |
| 48 | + /> |
| 49 | + </svg> |
7 | 50 | </div> |
8 | | - <div className="space-y-2"> |
9 | | - <h1 className="font-mono text-2xl font-semibold tracking-[0.18em] text-[var(--text-primary)]">Quadtrix.cpp</h1> |
10 | | - <p className="text-sm text-[var(--text-secondary)]">Minimal local chat interface. Start typing below to begin.</p> |
| 51 | + |
| 52 | + <div> |
| 53 | + <h1 |
| 54 | + style={{ |
| 55 | + margin: 0, |
| 56 | + fontSize: 20, |
| 57 | + fontWeight: 600, |
| 58 | + color: "var(--text-primary)", |
| 59 | + letterSpacing: "-0.3px", |
| 60 | + }} |
| 61 | + > |
| 62 | + Quadtrix.cpp |
| 63 | + </h1> |
| 64 | + <p |
| 65 | + style={{ |
| 66 | + margin: "8px 0 0", |
| 67 | + fontSize: 13, |
| 68 | + color: "var(--text-muted)", |
| 69 | + lineHeight: 1.6, |
| 70 | + }} |
| 71 | + > |
| 72 | + Local char-level language model. Start a conversation below. |
| 73 | + </p> |
| 74 | + </div> |
| 75 | + |
| 76 | + {/* Hint chips */} |
| 77 | + <div style={{ display: "flex", flexWrap: "wrap", gap: 8, justifyContent: "center" }}> |
| 78 | + {["Fast local inference", "C++ & PyTorch backends", "No cloud required"].map((chip) => ( |
| 79 | + <span |
| 80 | + key={chip} |
| 81 | + style={{ |
| 82 | + padding: "4px 10px", |
| 83 | + borderRadius: 20, |
| 84 | + border: "1px solid var(--border-muted)", |
| 85 | + fontSize: 11, |
| 86 | + color: "var(--text-muted)", |
| 87 | + background: "var(--bg-elevated)", |
| 88 | + }} |
| 89 | + > |
| 90 | + {chip} |
| 91 | + </span> |
| 92 | + ))} |
11 | 93 | </div> |
12 | 94 | </div> |
13 | 95 | </div> |
|
0 commit comments