rspace-online/website/index.html

659 lines
19 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;
padding-top: 56px;
}
.hero {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: calc(100vh - 56px);
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;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.cta-primary {
display: inline-block;
padding: 14px 32px;
border-radius: 8px;
background: linear-gradient(135deg, #14b8a6, #0d9488);
color: white;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}
.cta-secondary {
display: inline-block;
padding: 14px 32px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #94a3b8;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.cta-secondary:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.4);
color: white;
}
.features {
display: grid;
grid-template-columns: repeat(4, 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;
}
/* 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);
}
/* Newsletter */
.newsletter-form {
max-width: 440px;
margin: 0 auto;
}
.newsletter-row {
display: flex;
gap: 0.75rem;
}
.newsletter-input {
flex: 1;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.05);
color: white;
font-size: 1rem;
outline: none;
transition: border-color 0.2s;
}
.newsletter-input:focus {
border-color: #14b8a6;
}
.newsletter-input::placeholder {
color: #64748b;
}
.newsletter-btn {
padding: 12px 24px;
white-space: nowrap;
}
.newsletter-status {
font-size: 0.875rem;
margin-top: 0.75rem;
min-height: 1.25em;
}
.newsletter-status.success {
color: #22c55e;
}
.newsletter-status.error {
color: #ef4444;
}
.newsletter-privacy {
font-size: 0.8rem;
color: #64748b;
margin-top: 0.5rem;
}
@media (max-width: 600px) {
.newsletter-row {
flex-direction: column;
}
.pillars {
grid-template-columns: 1fr;
}
.features {
grid-template-columns: repeat(2, 1fr);
}
.section h2 {
font-size: 1.5rem;
}
}
</style>
<link rel="stylesheet" href="/shell.css">
<script defer src="https://rdata.online/collect.js" data-website-id="6ee7917b-0ed7-44cb-a4c8-91037638526b"></script>
</head>
<body data-theme="dark">
<header class="rstack-header" data-theme="dark">
<div class="rstack-header__left">
<rstack-app-switcher current=""></rstack-app-switcher>
<rstack-space-switcher current="" name="Spaces"></rstack-space-switcher>
</div>
<div class="rstack-header__right">
<rstack-identity></rstack-identity>
</div>
</header>
<div class="hero">
<div class="container">
<h1>rSpace</h1>
<p class="tagline">Collaborative community spaces powered by FolkJS</p>
<div class="cta-buttons">
<a href="/create-space" class="cta-primary">Create a Space</a>
<a href="/demo/canvas" class="cta-secondary">Try the Demo</a>
</div>
<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">Offline-First</div>
<div class="feature-desc">Works without internet, merges on reconnect</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 &mdash;
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 &mdash;
voting, budgets, maps, files, notes, and more &mdash; 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>
<!-- Offline-First Section -->
<div class="section">
<div class="section-divider"></div>
<h2>Offline-First, Always Available</h2>
<p class="section-subtitle">
rSpace works without an internet connection. Edit your canvas on a plane,
in a field, or underground &mdash; your changes merge automatically when
you're back online. No sync buttons, no conflict dialogs.
</p>
<div class="pillars">
<div class="pillar">
<div class="pillar-icon">💾</div>
<div class="pillar-title">Local Persistence</div>
<div class="pillar-desc">Your canvas is cached in the browser. Refresh the page &mdash; it loads instantly, even offline.</div>
</div>
<div class="pillar">
<div class="pillar-icon">🔀</div>
<div class="pillar-title">Auto-Merge</div>
<div class="pillar-desc">Automerge CRDTs resolve conflicts automatically. Multiple people can edit the same canvas offline and merge without data loss.</div>
</div>
<div class="pillar">
<div class="pillar-icon"></div>
<div class="pillar-title">Incremental Sync</div>
<div class="pillar-desc">Only new changes are transferred on reconnect &mdash; not the whole document. Fast even on slow connections.</div>
</div>
</div>
<div class="identity-card">
<h3>How it works</h3>
<p>
Every rSpace canvas is an <span class="hl">Automerge CRDT document</span> stored
locally in your browser's IndexedDB. When you open a canvas, it renders from the
local cache first &mdash; no waiting for the server. Edits you make are saved locally
and synced to the server via WebSocket when a connection is available. If you go offline,
the app keeps working: a <span class="hl">Service Worker</span> serves the app shell
from cache, and your changes accumulate in the local CRDT document. When connectivity
returns, Automerge's <span class="hl">incremental sync protocol</span> reconciles
your changes with everyone else's &mdash; conflict-free, automatically. No manual
merge, no "which version do you want to keep?" dialogs.
</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 &amp; 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 &mdash; 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 &mdash; not the platform &mdash; 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>
<a href="https://rchats.online" class="ecosystem-app">💬 rChats</a>
<a href="https://rforum.online" class="ecosystem-app">💬 rForum</a>
<a href="https://rswag.online" class="ecosystem-app">👕 rSwag</a>
<a href="https://rdata.online" class="ecosystem-app">📊 rData</a>
</div>
<a href="https://encryptid.jeffemmett.com" class="encryptid-link">
🔐 Learn more about EncryptID
</a>
</div>
<div class="section">
<div class="section-divider"></div>
<h2>Stay Connected</h2>
<p class="section-subtitle">
Get updates on rSpace development, new ecosystem modules, and community features.
</p>
<form class="newsletter-form" id="newsletter-form">
<div class="newsletter-row">
<input
type="email"
id="newsletter-email"
placeholder="your@email.com"
required
class="newsletter-input"
/>
<button type="submit" class="newsletter-btn" id="newsletter-btn">Subscribe</button>
</div>
<p class="newsletter-status" id="newsletter-status"></p>
<p class="newsletter-privacy">No spam, unsubscribe anytime.</p>
</form>
</div>
<script type="module">
import { RStackIdentity } from "@shared/components/rstack-identity";
import { RStackAppSwitcher } from "@shared/components/rstack-app-switcher";
import { RStackSpaceSwitcher } from "@shared/components/rstack-space-switcher";
RStackIdentity.define();
RStackAppSwitcher.define();
RStackSpaceSwitcher.define();
fetch("/api/modules").then(r => r.json()).then(data => {
document.querySelector("rstack-app-switcher")?.setModules(data.modules || []);
}).catch(() => {});
// Newsletter signup
const newsletterForm = document.getElementById("newsletter-form");
const newsletterEmail = document.getElementById("newsletter-email");
const newsletterBtn = document.getElementById("newsletter-btn");
const newsletterStatus = document.getElementById("newsletter-status");
newsletterForm.addEventListener("submit", async (e) => {
e.preventDefault();
const email = newsletterEmail.value.trim();
if (!email) return;
newsletterBtn.disabled = true;
newsletterBtn.textContent = "Subscribing...";
newsletterStatus.textContent = "";
newsletterStatus.className = "newsletter-status";
try {
const res = await fetch("https://newsletter.jeffemmett.com/subscribe", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
email,
list_uuid: "2d247234-34cf-4ee6-858f-2b5e24e2e5dc",
}),
});
if (res.ok) {
newsletterStatus.textContent = "Welcome to the network. The space expands.";
newsletterStatus.className = "newsletter-status success";
newsletterEmail.value = "";
} else {
throw new Error("Subscription failed");
}
} catch {
newsletterStatus.textContent = "Something went wrong. Please try again.";
newsletterStatus.className = "newsletter-status error";
} finally {
newsletterBtn.disabled = false;
newsletterBtn.textContent = "Subscribe";
}
});
</script>
</body>
</html>