diff --git a/app/demo/page.tsx b/app/demo/page.tsx index 85c4626..2e6f0d6 100644 --- a/app/demo/page.tsx +++ b/app/demo/page.tsx @@ -9,7 +9,7 @@ import { } from "lucide-react"; type DemoMessage = { id: number; room: string; author: string; time: string; body: string; self?: boolean }; -type DemoEntry = { id: number; title: string; category: string; excerpt: string; date: string }; +type DemoEntry = { id: number; title: string; category: string; excerpt: string; date: string; body: 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." }, @@ -28,9 +28,9 @@ const rooms = [ ]; const entries: DemoEntry[] = [ - { id: 1, title: "The small-web field guide", category: "FIELD NOTES", excerpt: "A practical starting point for making a corner of the internet that feels human again.", date: "NOV 28, 2026" }, - { id: 2, title: "A checklist for owning your data", category: "PRIVACY", excerpt: "Simple habits for keeping your digital life portable, private, and under your control.", date: "NOV 24, 2026" }, - { id: 3, title: "BBS culture: a short history", category: "HISTORY", excerpt: "Before feeds and infinite scroll, communities gathered one dial-up connection at a time.", date: "NOV 19, 2026" } + { id: 1, title: "The small web field guide", category: "FIELD NOTES", excerpt: "A practical starting point for making a corner of the internet that feels human again.", date: "NOV 28, 2026", body: "Start with a clear purpose. Give people a room for each shared interest. Make it easy to find the best conversations later. Keep the rules visible and the controls understandable. Let members shape the space instead of chasing engagement. A healthy small web is measured by the value people carry away, not the time they spend scrolling." }, + { id: 2, title: "A checklist for owning your data", category: "PRIVACY", excerpt: "Simple habits for keeping your digital life portable, private, and under your control.", date: "NOV 24, 2026", body: "Know what information a service stores. Use a unique password and multi factor authentication. Review connected apps regularly. Download important files in portable formats. Delete accounts you no longer use. Share only what a community needs. Privacy is a habit you can practice one small decision at a time." }, + { id: 3, title: "BBS culture: a short history", category: "HISTORY", excerpt: "Before feeds and infinite scroll, communities gathered one dial up connection at a time.", date: "NOV 19, 2026", body: "Bulletin Board Systems were community spaces people reached through a modem and a phone line. Members posted messages, shared files, played games, and built friendships. Each board had its own culture and local identity. PHANTOM carries that spirit into a modern network with accessible rooms, searchable knowledge, and conversations people choose to join." } ]; export default function DemoPage() { @@ -42,6 +42,8 @@ export default function DemoPage() { const [search, setSearch] = useState(""); const [showGuide, setShowGuide] = useState(true); const [copied, setCopied] = useState(false); + const [selectedEntry, setSelectedEntry] = useState(null); + const [savedEntries, setSavedEntries] = useState([]); const currentRoom = rooms.find((room) => room.id === activeRoom) ?? rooms[0]; const roomMessages = messages.filter((message) => message.room === activeRoom); @@ -79,7 +81,7 @@ export default function DemoPage() {
- PHANTOMTHE INTERNET NEVER REALLY DIES + PHANTOMA HOME FOR THE CURIOUS
INTERACTIVE DEMO
BACK TO PHANTOM @@ -89,17 +91,17 @@ export default function DemoPage() {
-
SYSTEM PREVIEW / 001
-

A little less feed.
A lot more signal.

-

Step inside a living, community-owned corner of the internet. Explore rooms, send a transmission, and discover knowledge worth keeping.

+
WELCOME TO A DIFFERENT KIND OF NETWORK
+

Find your people.
Keep what matters.

+

A modern home for focused communities. Talk with people, collect useful knowledge, and build a space worth returning to.

-
GUEST SESSION
No account · No setup
+
GUEST SESSION
No account needed
{showGuide &&
-

YOUR 60-SECOND FIELD TEST

Pick a room → send a message → search the archive → explore the network.

+

YOUR QUICK START

Choose a room, share an idea, save a field note, and meet the community.

}
@@ -108,17 +110,17 @@ export default function DemoPage() {
PHANTOM COMMUNITY NETWORK
-
SIMULATED LIVE ENVIRONMENT
+
INTERACTIVE GUEST EXPERIENCE
} - {tab === "archive" &&
THE KNOWLEDGE VAULT

Keep the good stuff.

A community memory that outlives the scroll. Search the demo archive and open a field note.

setSearch(event.target.value)} placeholder="Search knowledge..." className="w-full bg-transparent py-3.5 text-xs outline-none placeholder:text-[#53665a]"/>
{filteredEntries.map((entry) =>
{entry.category}{entry.date}

{entry.title}

{entry.excerpt}

OPEN FIELD NOTE
)}{filteredEntries.length === 0 &&

No entries match that search. Try another signal.

}
} + {tab === "archive" &&
THE KNOWLEDGE VAULT

Keep the good stuff.

A useful library built by its members. Search a topic and open any note to read, then save the ones you want to revisit.

setSearch(event.target.value)} placeholder="Search knowledge..." className="w-full bg-transparent py-3.5 text-xs outline-none placeholder:text-[#53665a]"/>
{filteredEntries.map((entry) => )}{filteredEntries.length === 0 &&

No entries match that search. Try another signal.

}
} {tab === "network" &&
NETWORK TOPOLOGY

Small rooms. Real connections.

Explore the channels that make up this little corner of the internet. No feed to beat. No algorithm to please.

{rooms.map((room, index) => )}
COMMUNITY POWERED

265

DEMO MEMBERS

{messages.length.toString().padStart(2, "0")}

TRANSMISSIONS

OPEN

COMMUNITY ACCESS

}
SESSION ACTIVE / YOUR CHANGES ARE LOCAL
-

This is an interactive preview with sample content. Messages and membership changes are temporary and reset when you leave. The main PHANTOM app connects to its live Supabase backend.

+

This is a guest preview with sample content. Messages, memberships, and saved notes stay in this browser session. Create an account in the main network to take part in persistent community spaces.

-
PHANTOM NETWORK / RESURRECT THE SMALL WEBENTER THE MAIN NETWORK
+
PHANTOM COMMUNITY / BUILT TO LASTENTER THE MAIN NETWORK
+ {selectedEntry &&
setSelectedEntry(null)}>
event.stopPropagation()}>
{selectedEntry.category}

{selectedEntry.title}

FIELD NOTE · {selectedEntry.date}

{selectedEntry.body}

} ); } diff --git a/app/page.tsx b/app/page.tsx index cc78de4..31ec4c1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,7 @@ "use client"; import { FormEvent, useCallback, useEffect, useState } from "react"; -import { Activity, Archive, ArrowUpRight, Hash, LogOut, MessageSquare, Radio, Search, Send, ShieldAlert, Terminal, Users, Wifi, X } from "lucide-react"; +import { Activity, Archive, ArrowUpRight, Hash, LogOut, MessageSquare, Radio, Search, Send, ShieldAlert, Users, Wifi, X } from "lucide-react"; import { createClient } from "@/lib/supabase/client"; type Room = { id: string; slug: string; name: string; description: string; is_public: boolean }; @@ -209,20 +209,20 @@ export default function Home() { return
-
PHANTOM
THE INTERNET NEVER REALLY DIES
-
{supabase ? "DATABASE CONNECTED" : "DATABASE CONFIG REQUIRED"} / PUBLIC NETWORK
+
PHANTOM
A HOME FOR THE CURIOUS
+
{supabase ? "DATABASE CONNECTED" : "DATABASE CONFIG REQUIRED"} / COMMUNITY SPACE
{user ?
{profile?.display_name || profile?.username || user.email}
: CONNECT}
-
SYSTEM // 001

Some things should
never go offline.

A living network for curious minds. Find your people, exchange ideas, and leave something worth finding.

+
A PLACE TO FIND YOUR PEOPLE

The internet can
feel human again.

PHANTOM brings back the best part of the early web. Small communities, useful conversations, and knowledge that stays findable.

-

NO ACCOUNT NEEDED TO TRY THE DEMO

+

TRY THE EXPERIENCE WITHOUT AN ACCOUNT

NETWORK STATUS
{loading ? "..." : supabase ? "LIVE" : "OFFLINE"}{supabase ? "connected to Supabase" : "configuration required"}
{String(rooms.length).padStart(2,"0")}
ROOMS
{joinedCount.toString().padStart(2,"0")}
JOINED
{archive.length.toString().padStart(2,"0")}
ARCHIVE
@@ -235,16 +235,16 @@ export default function Home() {
{activeRoom ? <>
{activeRoom.name}
{activeRoom.description}
{memberships.includes(activeRoom.id) ? : }
-
LIVE TRANSMISSIONS
{messages.length ? messages.map((message) =>
{(message.profile?.username || "??").slice(0,2).toUpperCase()}
{message.profile?.display_name || message.profile?.username || "member"}{stamp(message.created_at)}

{message.body}

{user && user.id !== message.user_id && }
) :

No transmissions yet. Join the room and start the conversation.

}
- {memberships.includes(activeRoom.id) ?
setDraft(event.target.value)} placeholder="Transmit a message..." className="min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-[#53645a]"/>
:
Join this room to participate in the conversation.
} +
ROOM CONVERSATIONS
{messages.length ? messages.map((message) =>
{(message.profile?.username || "??").slice(0,2).toUpperCase()}
{message.profile?.display_name || message.profile?.username || "member"}{stamp(message.created_at)}

{message.body}

{user && user.id !== message.user_id && }
) :

No transmissions yet. Join the room and start the conversation.

}
+ {memberships.includes(activeRoom.id) ?
setDraft(event.target.value)} placeholder="Share something useful..." className="min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-[#53645a]"/>
:
Join this room to participate in the conversation.
} :
No public rooms are available yet.
}
: tab === "archive" ?
-
ADD TO THE ARCHIVE
setArchiveTitle(e.target.value)} placeholder="A useful thing worth preserving" className="mb-4 w-full border border-[#24352e] bg-[#090d0c] px-3 py-3 text-sm outline-none focus:border-[#9cff6b]"/>