Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/demo/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ type DemoEntry = { id: number; title: string; category: string; excerpt: string;

const initialMessages: DemoMessage[] = [
{ id: 1, room: "the-lobby", author: "moth.exe", time: "09:41", body: "The old internet had something special. You arrived because you were curious." },
{ id: 2, room: "the-lobby", author: "signal_ghost", time: "09:43", body: "No algorithm deciding what I should see. Just people building things." },
{ id: 2, room: "the-lobby", author: "signal ghost", time: "09:43", body: "No algorithm deciding what I should see. Just people building things." },
{ id: 3, room: "the-lobby", author: "you", time: "09:44", body: "That is exactly the energy we are bringing back.", self: true },
{ id: 4, room: "build-lab", author: "patchwork", time: "10:02", body: "Today's tiny win: shipped a useful tool with zero tracking pixels." },
{ id: 5, room: "build-lab", author: "moth.exe", time: "10:05", body: "Small, intentional software is a kind of rebellion." },
{ id: 6, room: "lost-and-found", author: "archive_angel", time: "08:17", body: "Found an old public-domain field manual. Added it to the archive." }
{ id: 6, room: "lost-and-found", author: "archive angel", time: "08:17", body: "Found an old public-domain field manual. Added it to the archive." }
];

const rooms = [
Expand Down Expand Up @@ -79,7 +79,7 @@ export default function DemoPage() {
<div className="mx-auto flex max-w-[1440px] items-center justify-between gap-4 px-5 py-4 lg:px-8">
<Link href="/" className="group flex items-center gap-3">
<span className="grid h-10 w-10 place-items-center border border-[#9cff6b]/60 bg-[#9cff6b]/[.06] text-[#9cff6b] shadow-[0_0_28px_rgba(156,255,107,.1)]"><Terminal size={19}/></span>
<span><span className="block text-lg font-black tracking-[.22em] text-[#a7ff7a]">PHANTOM<span className="animate-pulse">_</span></span><span className="block text-[9px] tracking-[.25em] text-[#71877a]">THE INTERNET NEVER REALLY DIES</span></span>
<span><span className="block text-lg font-black tracking-[.22em] text-[#a7ff7a]">PHANTOM</span><span className="block text-[9px] tracking-[.25em] text-[#71877a]">THE INTERNET NEVER REALLY DIES</span></span>
</Link>
<div className="hidden items-center gap-2 rounded-full border border-[#9cff6b]/20 bg-[#9cff6b]/[.06] px-3 py-2 text-[10px] font-bold tracking-[.18em] text-[#b7ff96] sm:flex"><span className="h-1.5 w-1.5 animate-pulse rounded-full bg-[#9cff6b]"/> INTERACTIVE DEMO</div>
<Link href="/" className="flex items-center gap-2 border border-[#314339] px-3 py-2 text-[10px] font-bold tracking-widest text-[#b9c8bd] transition hover:border-[#9cff6b] hover:text-[#9cff6b]"><ArrowLeft size={13}/> BACK TO PHANTOM</Link>
Expand Down Expand Up @@ -107,7 +107,7 @@ export default function DemoPage() {
<section className="mx-auto max-w-[1440px] px-5 pb-16 lg:px-8">
<div className="overflow-hidden rounded-xl border border-[#2a3d31] bg-[#0b120e]/95 shadow-[0_24px_100px_rgba(0,0,0,.45)]">
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-[#25372c] bg-[#101a14] px-4 py-3 sm:px-6">
<div className="flex items-center gap-3"><div className="flex gap-1.5"><i className="h-2.5 w-2.5 rounded-full bg-[#ff6c61]"/><i className="h-2.5 w-2.5 rounded-full bg-[#e8c36a]"/><i className="h-2.5 w-2.5 rounded-full bg-[#9cff6b]"/></div><span className="hidden font-mono text-[10px] tracking-widest text-[#789080] sm:inline">PHANTOM://COMMUNITY-NETWORK</span></div>
<div className="flex items-center gap-3"><div className="flex gap-1.5"><i className="h-2.5 w-2.5 rounded-full bg-[#ff6c61]"/><i className="h-2.5 w-2.5 rounded-full bg-[#e8c36a]"/><i className="h-2.5 w-2.5 rounded-full bg-[#9cff6b]"/></div><span className="hidden font-mono text-[10px] tracking-widest text-[#789080] sm:inline">PHANTOM COMMUNITY NETWORK</span></div>
<div className="flex items-center gap-2 text-[9px] font-bold tracking-[.16em] text-[#9cff6b]"><span className="h-1.5 w-1.5 rounded-full bg-[#9cff6b]"/> SIMULATED LIVE ENVIRONMENT</div>
</div>
<div className="grid min-h-[650px] lg:grid-cols-[260px_minmax(0,1fr)]">
Expand All @@ -121,7 +121,7 @@ export default function DemoPage() {
<div className="border-t border-[#25372c] px-5 py-4"><div className="mb-3 flex items-center justify-between text-[9px] font-bold tracking-[.2em] text-[#708477]"><span>OPEN CHANNELS</span><Radio size={12}/></div>
{rooms.map((room) => <button key={room.id} onClick={() => { setActiveRoom(room.id); setTab("rooms"); }} className={`mb-1 flex w-full items-center gap-3 rounded-md px-3 py-3 text-left transition ${activeRoom === room.id && tab === "rooms" ? "border border-[#9cff6b]/20 bg-[#9cff6b]/[.07]" : "border border-transparent hover:bg-white/[.025]"}`}><span className="font-mono text-sm text-[#9cff6b]">{room.icon}</span><span className="min-w-0 flex-1"><span className={`block truncate text-xs ${activeRoom === room.id && tab === "rooms" ? "text-[#d8f6ce]" : "text-[#9aa99e]"}`}>{room.name}</span><span className="mt-1 block text-[9px] text-[#627568]">{room.members} signals</span></span>{joined.includes(room.id) && <span className="h-1.5 w-1.5 rounded-full bg-[#9cff6b]"/>}</button>)}
</div>
<div className="border-t border-[#25372c] px-5 py-4"><div className="flex items-center gap-2"><span className="grid h-8 w-8 place-items-center rounded-full border border-[#9cff6b]/30 bg-[#9cff6b]/10 font-mono text-[10px] text-[#baff9f]">G1</span><div><p className="text-xs font-bold text-[#d7e3d9]">guest_01</p><p className="mt-0.5 text-[9px] tracking-widest text-[#708477]">EXPLORER</p></div><span className="ml-auto h-1.5 w-1.5 rounded-full bg-[#9cff6b]"/></div></div>
<div className="border-t border-[#25372c] px-5 py-4"><div className="flex items-center gap-2"><span className="grid h-8 w-8 place-items-center rounded-full border border-[#9cff6b]/30 bg-[#9cff6b]/10 font-mono text-[10px] text-[#baff9f]">G1</span><div><p className="text-xs font-bold text-[#d7e3d9]">guest 01</p><p className="mt-0.5 text-[9px] tracking-widest text-[#708477]">EXPLORER</p></div><span className="ml-auto h-1.5 w-1.5 rounded-full bg-[#9cff6b]"/></div></div>
</aside>

<div className="min-w-0">
Expand All @@ -132,13 +132,13 @@ export default function DemoPage() {
<div className="space-y-5">
{roomMessages.length ? roomMessages.map((message) => <div key={message.id} className="flex gap-3"><div className={`grid h-8 w-8 shrink-0 place-items-center rounded-md border font-mono text-[10px] ${message.self ? "border-[#9cff6b]/30 bg-[#9cff6b]/10 text-[#baff9f]" : "border-[#2d4033] bg-[#121d16] text-[#91a497]"}`}>{message.author.slice(0, 2).toUpperCase()}</div><div className="min-w-0 flex-1"><div className="flex flex-wrap items-center gap-2"><span className={`text-xs font-bold ${message.self ? "text-[#baff9f]" : "text-[#cbd8ce]"}`}>{message.author}</span>{message.self && <span className="rounded bg-[#9cff6b]/10 px-1.5 py-0.5 text-[8px] tracking-widest text-[#9cff6b]">YOU</span>}<span className="text-[9px] text-[#627568]">{message.time}</span></div><p className="mt-1.5 whitespace-pre-wrap break-words text-sm leading-6 text-[#9eafa2]">{message.body}</p></div></div>) : <div className="rounded-lg border border-dashed border-[#2b3e31] p-8 text-center text-xs text-[#7f9485]">This channel is quiet. Start the signal.</div>}
</div>
<div className="mt-auto rounded-lg border border-[#293c30] bg-[#0d1711] p-4"><div className="mb-3 flex items-center justify-between text-[9px] tracking-widest text-[#71877a]"><span>QUICK TRANSMISSION</span><span>LOCAL DEMO</span></div><form onSubmit={sendMessage} className="flex items-center gap-3"><span className="font-mono text-sm text-[#9cff6b]">&gt;</span><input value={draft} onChange={(event) => setDraft(event.target.value)} maxLength={240} placeholder="Say something worth remembering..." className="min-w-0 flex-1 bg-transparent text-xs text-[#e1ebe3] outline-none placeholder:text-[#53665a]"/><button aria-label="Send demo message" disabled={!draft.trim()} className="grid h-9 w-9 place-items-center rounded-md bg-[#9cff6b] text-[#071008] transition hover:bg-[#c1ffa8] disabled:opacity-30"><Send size={14}/></button></form></div>
<div className="mt-auto rounded-lg border border-[#293c30] bg-[#0d1711] p-4"><div className="mb-3 flex items-center justify-between text-[9px] tracking-widest text-[#71877a]"><span>QUICK TRANSMISSION</span><span>LOCAL DEMO</span></div><form onSubmit={sendMessage} className="flex items-center gap-3"><input value={draft} onChange={(event) => setDraft(event.target.value)} maxLength={240} placeholder="Say something worth remembering..." className="min-w-0 flex-1 bg-transparent text-xs text-[#e1ebe3] outline-none placeholder:text-[#53665a]"/><button aria-label="Send demo message" disabled={!draft.trim()} className="grid h-9 w-9 place-items-center rounded-md bg-[#9cff6b] text-[#071008] transition hover:bg-[#c1ffa8] disabled:opacity-30"><Send size={14}/></button></form></div>
</div>
</div>}

{tab === "archive" && <div className="min-h-[650px] p-5 sm:p-7"><div className="flex items-center gap-2 text-[9px] font-bold tracking-[.2em] text-[#9cff6b]"><BookOpen size={13}/> THE KNOWLEDGE VAULT</div><h2 className="mt-3 text-2xl font-bold">Keep the good stuff.</h2><p className="mt-2 max-w-xl text-xs leading-6 text-[#84998a]">A community memory that outlives the scroll. Search the demo archive and open a field note.</p><div className="mt-6 flex items-center gap-3 border border-[#293c30] bg-[#0d1711] px-4"><Search size={15} className="text-[#789080]"/><input value={search} onChange={(event) => setSearch(event.target.value)} placeholder="Search knowledge..." className="w-full bg-transparent py-3.5 text-xs outline-none placeholder:text-[#53665a]"/></div><div className="mt-5 grid gap-3">{filteredEntries.map((entry) => <article key={entry.id} className="group border border-[#293c30] bg-[#0e1711] p-5 transition hover:border-[#9cff6b]/40"><div className="flex flex-wrap items-center justify-between gap-2"><span className="text-[8px] font-bold tracking-[.2em] text-[#9cff6b]">{entry.category}</span><span className="text-[9px] text-[#627568]">{entry.date}</span></div><h3 className="mt-3 text-base font-bold text-[#dce9df]">{entry.title}</h3><p className="mt-2 text-xs leading-6 text-[#879b8d]">{entry.excerpt}</p><div className="mt-4 flex items-center gap-1 text-[9px] font-bold tracking-widest text-[#9cff6b]">OPEN FIELD NOTE <ArrowUpRight size={11}/></div></article>)}{filteredEntries.length === 0 && <p className="py-10 text-center text-xs text-[#71877a]">No entries match that search. Try another signal.</p>}</div></div>}

{tab === "network" && <div className="min-h-[650px] p-5 sm:p-7"><div className="flex items-center gap-2 text-[9px] font-bold tracking-[.2em] text-[#9cff6b]"><Activity size={13}/> NETWORK TOPOLOGY</div><h2 className="mt-3 text-2xl font-bold">Small rooms. Real connections.</h2><p className="mt-2 max-w-xl text-xs leading-6 text-[#84998a]">Explore the channels that make up this little corner of the internet. No feed to beat. No algorithm to please.</p><div className="relative mt-8 overflow-hidden rounded-lg border border-[#293c30] bg-[#0b1510] p-5 sm:p-8"><div className="absolute inset-0 opacity-30" style={{ backgroundImage: "radial-gradient(#53735c 1px,transparent 1px)", backgroundSize: "18px 18px" }}/><div className="relative mx-auto grid max-w-xl grid-cols-2 gap-3 sm:gap-5">{rooms.map((room, index) => <button key={room.id} onClick={() => { setActiveRoom(room.id); setTab("rooms"); }} className={`rounded-lg border p-4 text-left transition hover:-translate-y-1 hover:border-[#9cff6b]/60 ${index === 0 ? "border-[#9cff6b]/40 bg-[#9cff6b]/[.08]" : "border-[#2c4032] bg-[#101b14]/90"}`}><div className="flex items-center justify-between"><span className="font-mono text-lg text-[#9cff6b]">{room.icon}</span><span className="text-[9px] text-[#6f8777]">{room.members} online</span></div><h3 className="mt-4 text-sm font-bold text-[#d9e7dc]">{room.name}</h3><p className="mt-1 text-[10px] leading-5 text-[#829688]">{room.description}</p></button>)}</div><div className="relative mt-6 flex items-center justify-center gap-2 text-[9px] tracking-[.2em] text-[#708477]"><span className="h-px w-8 bg-[#344c38]"/> COMMUNITY-POWERED <span className="h-px w-8 bg-[#344c38]"/></div></div><div className="mt-5 grid gap-3 sm:grid-cols-3"><div className="border border-[#293c30] p-4"><Users size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">265</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">DEMO MEMBERS</p></div><div className="border border-[#293c30] p-4"><MessageSquare size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">{messages.length.toString().padStart(2, "0")}</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">TRANSMISSIONS</p></div><div className="border border-[#293c30] p-4"><Shield size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">OPEN</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">COMMUNITY ACCESS</p></div></div></div>}
{tab === "network" && <div className="min-h-[650px] p-5 sm:p-7"><div className="flex items-center gap-2 text-[9px] font-bold tracking-[.2em] text-[#9cff6b]"><Activity size={13}/> NETWORK TOPOLOGY</div><h2 className="mt-3 text-2xl font-bold">Small rooms. Real connections.</h2><p className="mt-2 max-w-xl text-xs leading-6 text-[#84998a]">Explore the channels that make up this little corner of the internet. No feed to beat. No algorithm to please.</p><div className="relative mt-8 overflow-hidden rounded-lg border border-[#293c30] bg-[#0b1510] p-5 sm:p-8"><div className="absolute inset-0 opacity-30" style={{ backgroundImage: "radial-gradient(#53735c 1px,transparent 1px)", backgroundSize: "18px 18px" }}/><div className="relative mx-auto grid max-w-xl grid-cols-2 gap-3 sm:gap-5">{rooms.map((room, index) => <button key={room.id} onClick={() => { setActiveRoom(room.id); setTab("rooms"); }} className={`rounded-lg border p-4 text-left transition hover:-translate-y-1 hover:border-[#9cff6b]/60 ${index === 0 ? "border-[#9cff6b]/40 bg-[#9cff6b]/[.08]" : "border-[#2c4032] bg-[#101b14]/90"}`}><div className="flex items-center justify-between"><span className="font-mono text-lg text-[#9cff6b]">{room.icon}</span><span className="text-[9px] text-[#6f8777]">{room.members} online</span></div><h3 className="mt-4 text-sm font-bold text-[#d9e7dc]">{room.name}</h3><p className="mt-1 text-[10px] leading-5 text-[#829688]">{room.description}</p></button>)}</div><div className="relative mt-6 flex items-center justify-center gap-2 text-[9px] tracking-[.2em] text-[#708477]"><span className="h-px w-8 bg-[#344c38]"/> COMMUNITY POWERED <span className="h-px w-8 bg-[#344c38]"/></div></div><div className="mt-5 grid gap-3 sm:grid-cols-3"><div className="border border-[#293c30] p-4"><Users size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">265</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">DEMO MEMBERS</p></div><div className="border border-[#293c30] p-4"><MessageSquare size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">{messages.length.toString().padStart(2, "0")}</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">TRANSMISSIONS</p></div><div className="border border-[#293c30] p-4"><Shield size={15} className="text-[#9cff6b]"/><p className="mt-3 text-xl font-bold">OPEN</p><p className="mt-1 text-[9px] tracking-widest text-[#708477]">COMMUNITY ACCESS</p></div></div></div>}
</div>
</div>
<div className="flex flex-wrap items-center justify-between gap-3 border-t border-[#25372c] bg-[#0d1510] px-5 py-3 sm:px-6"><div className="flex items-center gap-2 text-[9px] tracking-widest text-[#708477]"><span className="h-1.5 w-1.5 rounded-full bg-[#9cff6b]"/> SESSION ACTIVE <span className="text-[#34483a]">/</span> YOUR CHANGES ARE LOCAL</div><button onClick={copyInvite} className="flex items-center gap-2 text-[9px] font-bold tracking-widest text-[#9cff6b] hover:text-white">{copied ? <Check size={12}/> : <ArrowUpRight size={12}/>} {copied ? "COPIED" : "SHARE PHANTOM"}</button></div>
Expand Down
Loading
Loading