|
| 1 | +export function Hero() { |
| 2 | + return ( |
| 3 | + <section className="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-6 pt-24 text-center"> |
| 4 | + {/* Background glow */} |
| 5 | + <div |
| 6 | + aria-hidden |
| 7 | + className="pointer-events-none absolute inset-0 flex items-center justify-center" |
| 8 | + > |
| 9 | + <div className="h-[600px] w-[600px] rounded-full bg-[var(--accent)]/10 blur-[120px]" /> |
| 10 | + </div> |
| 11 | + |
| 12 | + <div className="relative z-10 flex max-w-3xl flex-col items-center gap-6"> |
| 13 | + <span className="inline-flex items-center gap-2 rounded-full border border-[var(--accent)]/30 bg-[var(--accent)]/10 px-4 py-1.5 text-xs font-medium text-[var(--accent-light)]"> |
| 14 | + <span className="h-1.5 w-1.5 rounded-full bg-[var(--accent-light)]" /> |
| 15 | + Built on Stellar · Powered by Soroban |
| 16 | + </span> |
| 17 | + |
| 18 | + <h1 className="text-5xl font-bold leading-tight tracking-tight text-[var(--foreground)] sm:text-6xl lg:text-7xl"> |
| 19 | + Chat. Pay.{" "} |
| 20 | + <span className="bg-gradient-to-r from-[var(--accent)] to-[var(--accent-light)] bg-clip-text text-transparent"> |
| 21 | + Build together. |
| 22 | + </span> |
| 23 | + </h1> |
| 24 | + |
| 25 | + <p className="max-w-xl text-lg leading-relaxed text-[var(--foreground)]/60"> |
| 26 | + Clicked is a decentralized messaging platform where you can send tokens |
| 27 | + as easily as messages, fund community ideas, and govern shared |
| 28 | + treasuries — all in one place. |
| 29 | + </p> |
| 30 | + |
| 31 | + <div className="flex flex-col gap-3 sm:flex-row"> |
| 32 | + <a |
| 33 | + href="/app" |
| 34 | + className="rounded-full bg-[var(--accent)] px-8 py-3 text-sm font-semibold text-white shadow-lg shadow-[var(--accent)]/20 transition-opacity hover:opacity-90" |
| 35 | + > |
| 36 | + Launch App |
| 37 | + </a> |
| 38 | + <a |
| 39 | + href="https://github.com/codebestia/clicked" |
| 40 | + target="_blank" |
| 41 | + rel="noopener noreferrer" |
| 42 | + className="rounded-full border border-[var(--border)] px-8 py-3 text-sm font-semibold text-[var(--foreground)]/70 transition-colors hover:border-[var(--muted)] hover:text-[var(--foreground)]" |
| 43 | + > |
| 44 | + View on GitHub |
| 45 | + </a> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + |
| 49 | + {/* Mock chat preview */} |
| 50 | + <div className="relative z-10 mt-20 w-full max-w-2xl"> |
| 51 | + <div className="rounded-2xl border border-[var(--border)] bg-[var(--card)] p-6 shadow-2xl shadow-black/40"> |
| 52 | + <div className="mb-4 flex items-center gap-3 border-b border-[var(--border)] pb-4"> |
| 53 | + <div className="h-8 w-8 rounded-full bg-[var(--accent)]/30" /> |
| 54 | + <div> |
| 55 | + <p className="text-sm font-medium text-[var(--foreground)]">builders-dao</p> |
| 56 | + <p className="text-xs text-[var(--foreground)]/40">4 members</p> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + <div className="flex flex-col gap-3 text-sm"> |
| 60 | + <ChatBubble align="left" name="alice.xlm" message="Should we fund the new UI sprint? 🎨" /> |
| 61 | + <ChatBubble align="right" name="You" message="Sent 50 XLM to the treasury ✓" highlight /> |
| 62 | + <ChatBubble align="left" name="bob.xlm" message="Proposal live — 3/4 votes so far 🗳️" /> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </section> |
| 67 | + ); |
| 68 | +} |
| 69 | + |
| 70 | +function ChatBubble({ |
| 71 | + align, |
| 72 | + name, |
| 73 | + message, |
| 74 | + highlight, |
| 75 | +}: { |
| 76 | + align: "left" | "right"; |
| 77 | + name: string; |
| 78 | + message: string; |
| 79 | + highlight?: boolean; |
| 80 | +}) { |
| 81 | + return ( |
| 82 | + <div className={`flex gap-2 ${align === "right" ? "flex-row-reverse" : ""}`}> |
| 83 | + <div className="mt-1 h-6 w-6 shrink-0 rounded-full bg-[var(--muted)]" /> |
| 84 | + <div className={`max-w-xs ${align === "right" ? "items-end" : "items-start"} flex flex-col gap-0.5`}> |
| 85 | + <span className="px-1 text-xs text-[var(--foreground)]/40">{name}</span> |
| 86 | + <div |
| 87 | + className={`rounded-2xl px-4 py-2 text-sm ${ |
| 88 | + highlight |
| 89 | + ? "bg-[var(--accent)] text-white" |
| 90 | + : "bg-[var(--border)] text-[var(--foreground)]/80" |
| 91 | + }`} |
| 92 | + > |
| 93 | + {message} |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + ); |
| 98 | +} |
0 commit comments