573 lines
15 KiB
HTML
573 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌌</text></svg>">
|
|
<title>rSpace - Collaborative Community Spaces</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
|
color: white;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.hero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
}
|
|
|
|
.container {
|
|
text-align: center;
|
|
max-width: 600px;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
background: linear-gradient(135deg, #14b8a6, #22d3ee);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.tagline {
|
|
font-size: 1.25rem;
|
|
color: #94a3b8;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.create-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 2rem;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
label {
|
|
font-size: 0.875rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
input {
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
color: white;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
border-color: #14b8a6;
|
|
}
|
|
|
|
input::placeholder {
|
|
color: #64748b;
|
|
}
|
|
|
|
.slug-preview {
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.slug-preview span {
|
|
color: #14b8a6;
|
|
}
|
|
|
|
button {
|
|
padding: 14px 28px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
background: linear-gradient(135deg, #14b8a6, #0d9488);
|
|
color: white;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.features {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.feature {
|
|
text-align: center;
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.feature-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.feature-desc {
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.error {
|
|
color: #ef4444;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.success {
|
|
color: #22c55e;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* EncryptID & Ecosystem Sections */
|
|
|
|
.section {
|
|
width: 100%;
|
|
max-width: 760px;
|
|
padding: 5rem 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.section + .section {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.section-divider {
|
|
width: 60px;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, #14b8a6, #7c3aed);
|
|
margin: 0 auto 3rem;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.section h2 {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
background: linear-gradient(90deg, #00d4ff, #7c3aed);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 1.05rem;
|
|
color: #94a3b8;
|
|
margin-bottom: 2.5rem;
|
|
line-height: 1.7;
|
|
max-width: 560px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.identity-card {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(124, 58, 237, 0.2);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
text-align: left;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.identity-card h3 {
|
|
font-size: 1.15rem;
|
|
margin-bottom: 0.75rem;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.identity-card p {
|
|
color: #94a3b8;
|
|
line-height: 1.7;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.identity-card .hl {
|
|
color: #00d4ff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pillars {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.pillar {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
padding: 1.25rem 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.pillar-icon {
|
|
font-size: 1.75rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.pillar-title {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.pillar-desc {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.flow-diagram {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 16px;
|
|
padding: 1.75rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.flow-diagram pre {
|
|
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
|
|
font-size: 0.78rem;
|
|
color: #94a3b8;
|
|
line-height: 1.5;
|
|
text-align: left;
|
|
overflow-x: auto;
|
|
white-space: pre;
|
|
}
|
|
|
|
.ecosystem-apps {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.ecosystem-app {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.5rem 1rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
color: #94a3b8;
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
transition: border-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.ecosystem-app:hover {
|
|
border-color: rgba(0, 212, 255, 0.4);
|
|
color: #00d4ff;
|
|
}
|
|
|
|
.encryptid-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.65rem 1.5rem;
|
|
background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
|
|
border: 1px solid rgba(124, 58, 237, 0.3);
|
|
border-radius: 8px;
|
|
color: #c4b5fd;
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
margin-top: 2rem;
|
|
transition: transform 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.encryptid-link:hover {
|
|
transform: translateY(-2px);
|
|
border-color: rgba(124, 58, 237, 0.6);
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.pillars {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.features {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.section h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="hero">
|
|
<div class="container">
|
|
<h1>rSpace</h1>
|
|
<p class="tagline">Collaborative community spaces powered by FolkJS</p>
|
|
|
|
<form class="create-form" id="create-form">
|
|
<div class="form-group">
|
|
<label for="community-name">Community Name</label>
|
|
<input
|
|
type="text"
|
|
id="community-name"
|
|
placeholder="e.g. MycoFi Commons"
|
|
required
|
|
/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="community-slug">Community Slug</label>
|
|
<input
|
|
type="text"
|
|
id="community-slug"
|
|
placeholder="e.g. mycofi"
|
|
pattern="[a-z0-9-]+"
|
|
required
|
|
/>
|
|
<p class="slug-preview">Your space will be at: <span id="slug-preview">___.rspace.online</span></p>
|
|
</div>
|
|
<button type="submit">Create Community Space</button>
|
|
<p class="error" id="error-message" style="display: none;"></p>
|
|
</form>
|
|
|
|
<div class="features">
|
|
<div class="feature">
|
|
<div class="feature-icon">🎨</div>
|
|
<div class="feature-title">Spatial Canvas</div>
|
|
<div class="feature-desc">Infinite collaborative workspace</div>
|
|
</div>
|
|
<div class="feature">
|
|
<div class="feature-icon">🔄</div>
|
|
<div class="feature-title">Real-time Sync</div>
|
|
<div class="feature-desc">Powered by Automerge CRDT</div>
|
|
</div>
|
|
<div class="feature">
|
|
<div class="feature-icon">🌐</div>
|
|
<div class="feature-title">Your Subdomain</div>
|
|
<div class="feature-desc">community.rspace.online</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- EncryptID Section -->
|
|
<div class="section">
|
|
<div class="section-divider"></div>
|
|
<h2>EncryptID</h2>
|
|
<p class="section-subtitle">
|
|
One secure, local-first identity across every tool in your community's rSpace.
|
|
No passwords. No cloud accounts. Your keys never leave your device.
|
|
</p>
|
|
|
|
<div class="pillars">
|
|
<div class="pillar">
|
|
<div class="pillar-icon">🔑</div>
|
|
<div class="pillar-title">Passkey Login</div>
|
|
<div class="pillar-desc">Hardware-backed biometric auth. Phishing-resistant by design.</div>
|
|
</div>
|
|
<div class="pillar">
|
|
<div class="pillar-icon">🏠</div>
|
|
<div class="pillar-title">Local-First</div>
|
|
<div class="pillar-desc">Cryptographic keys are derived and stored on your device, never uploaded.</div>
|
|
</div>
|
|
<div class="pillar">
|
|
<div class="pillar-icon">🔗</div>
|
|
<div class="pillar-title">One Login, All Apps</div>
|
|
<div class="pillar-desc">Authenticate once and access every r-Ecosystem tool seamlessly.</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="identity-card">
|
|
<h3>Secure by default, not by opt-in</h3>
|
|
<p>
|
|
EncryptID uses <span class="hl">WebAuthn passkeys</span> as the root of trust —
|
|
the same standard behind Face ID and fingerprint unlock. Your identity is bound to
|
|
your device's secure hardware, so there are no passwords to leak, phish, or forget.
|
|
End-to-end encryption keys are <span class="hl">derived locally via HKDF</span>,
|
|
meaning the server never sees your private keys. If you lose your device,
|
|
<span class="hl">social recovery</span> lets trusted guardians help you regain access
|
|
without seed phrases or centralized reset flows.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="identity-card">
|
|
<h3>A common login for your community's toolkit</h3>
|
|
<p>
|
|
Every community rSpace comes with a full suite of interoperable tools —
|
|
voting, budgets, maps, files, notes, and more — all sharing the same
|
|
<span class="hl">EncryptID session</span>. Sign in once on rSpace and you're
|
|
already authenticated on rVote, rFunds, rFiles, and every other tool your
|
|
community uses. No separate accounts, no OAuth redirects, no third-party identity
|
|
providers. Your community, your identity, your data.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Interoperable Ecosystem Section -->
|
|
<div class="section">
|
|
<div class="section-divider"></div>
|
|
<h2>Interoperable by Design</h2>
|
|
<p class="section-subtitle">
|
|
Data flows between your community's tools because they share a common
|
|
foundation: the same identity, the same real-time sync layer, and the same
|
|
local-first architecture.
|
|
</p>
|
|
|
|
<div class="flow-diagram">
|
|
<pre>
|
|
EncryptID (identity)
|
|
|
|
|
v
|
|
┌─────────── rSpace CRDT Sync Layer ───────────┐
|
|
| |
|
|
| rVote rFunds rFiles rNotes rMaps ... |
|
|
| | | | | | |
|
|
| └───────┴───────┴───────┴───────┘ |
|
|
| shared community data graph |
|
|
└───────────────────────────────────────────────┘
|
|
|
|
|
v
|
|
Your device (keys & data stay here)
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="identity-card">
|
|
<h3>Your data, connected across tools</h3>
|
|
<p>
|
|
A budget created in <span class="hl">rFunds</span> can reference a vote
|
|
from <span class="hl">rVote</span>. A map pin in <span class="hl">rMaps</span>
|
|
can link to files in <span class="hl">rFiles</span> and notes in
|
|
<span class="hl">rNotes</span>. Because all r-Ecosystem tools share the same
|
|
<span class="hl">Automerge CRDT sync layer</span>, data is interoperable
|
|
without import/export steps or API integrations. Changes propagate in real-time
|
|
across every tool and every collaborator — conflict-free.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="identity-card">
|
|
<h3>No vendor lock-in, no data silos</h3>
|
|
<p>
|
|
Every piece of community data is stored as a local-first CRDT document
|
|
that your community owns. There's no central server gating access and no
|
|
proprietary format trapping your data. Export everything. Fork your community.
|
|
Move between hosts. The <span class="hl">r-Ecosystem</span> is designed
|
|
so that the community — not the platform — controls the data.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="ecosystem-apps">
|
|
<a href="https://rspace.online" class="ecosystem-app">🌌 rSpace</a>
|
|
<a href="https://rwallet.online" class="ecosystem-app">💰 rWallet</a>
|
|
<a href="https://rvote.online" class="ecosystem-app">🗳 rVote</a>
|
|
<a href="https://rmaps.online" class="ecosystem-app">🗺 rMaps</a>
|
|
<a href="https://rfiles.online" class="ecosystem-app">📁 rFiles</a>
|
|
<a href="https://rnotes.online" class="ecosystem-app">📝 rNotes</a>
|
|
<a href="https://rtrips.online" class="ecosystem-app">✈ rTrips</a>
|
|
<a href="https://rfunds.online" class="ecosystem-app">📊 rFunds</a>
|
|
<a href="https://rnetwork.online" class="ecosystem-app">🕸 rNetwork</a>
|
|
<a href="https://rcart.online" class="ecosystem-app">🛒 rCart</a>
|
|
<a href="https://rtube.online" class="ecosystem-app">🎬 rTube</a>
|
|
</div>
|
|
|
|
<a href="https://encryptid.jeffemmett.com" class="encryptid-link">
|
|
🔐 Learn more about EncryptID
|
|
</a>
|
|
</div>
|
|
|
|
<script>
|
|
const nameInput = document.getElementById("community-name");
|
|
const slugInput = document.getElementById("community-slug");
|
|
const slugPreview = document.getElementById("slug-preview");
|
|
const form = document.getElementById("create-form");
|
|
const errorMessage = document.getElementById("error-message");
|
|
|
|
// Auto-generate slug from name
|
|
nameInput.addEventListener("input", () => {
|
|
const slug = nameInput.value
|
|
.toLowerCase()
|
|
.replace(/[^a-z0-9]+/g, "-")
|
|
.replace(/^-|-$/g, "");
|
|
slugInput.value = slug;
|
|
slugPreview.textContent = slug ? `${slug}.rspace.online` : "___.rspace.online";
|
|
});
|
|
|
|
slugInput.addEventListener("input", () => {
|
|
const slug = slugInput.value.toLowerCase().replace(/[^a-z0-9-]/g, "");
|
|
slugInput.value = slug;
|
|
slugPreview.textContent = slug ? `${slug}.rspace.online` : "___.rspace.online";
|
|
});
|
|
|
|
form.addEventListener("submit", async (e) => {
|
|
e.preventDefault();
|
|
errorMessage.style.display = "none";
|
|
|
|
const name = nameInput.value.trim();
|
|
const slug = slugInput.value.trim();
|
|
|
|
if (!name || !slug) {
|
|
errorMessage.textContent = "Please fill in all fields";
|
|
errorMessage.style.display = "block";
|
|
return;
|
|
}
|
|
|
|
try {
|
|
const response = await fetch("/api/communities", {
|
|
method: "POST",
|
|
headers: { "Content-Type": "application/json" },
|
|
body: JSON.stringify({ name, slug }),
|
|
});
|
|
|
|
const data = await response.json();
|
|
|
|
if (!response.ok) {
|
|
throw new Error(data.error || "Failed to create community");
|
|
}
|
|
|
|
// Redirect to the new community space
|
|
window.location.href = data.url;
|
|
} catch (err) {
|
|
errorMessage.textContent = err.message;
|
|
errorMessage.style.display = "block";
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|