rspace-online/website/index.html

609 lines
23 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" type="image/png" href="/favicon.png" />
<title>(you)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: #0f172a;
color: #e2e8f0;
min-height: 100vh;
padding-top: 56px;
line-height: 1.6;
}
a { color: inherit; }
/* ── Rich Landing Page Utilities (from rApp theme) ── */
.rl-section {
border-top: 1px solid rgba(255,255,255,0.06);
padding: 4rem 1.5rem;
}
.rl-section--alt { background: rgba(255,255,255,0.015); }
.rl-container { max-width: 1100px; margin: 0 auto; }
.rl-hero {
text-align: center; padding: 5rem 1.5rem 3rem;
max-width: 820px; margin: 0 auto;
}
.rl-tagline {
display: inline-block; font-size: 0.7rem; font-weight: 700;
letter-spacing: 0.12em; text-transform: uppercase;
color: #14b8a6; background: rgba(20,184,166,0.1);
border: 1px solid rgba(20,184,166,0.2);
padding: 0.35rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.rl-heading {
font-size: 2rem; font-weight: 700; line-height: 1.15;
margin-bottom: 0.75rem; letter-spacing: -0.01em;
background: linear-gradient(135deg, #14b8a6, #22d3ee);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.rl-hero .rl-heading { font-size: 2.5rem; }
@media (min-width: 640px) { .rl-hero .rl-heading { font-size: 3rem; } }
.rl-subtitle {
font-size: 1.25rem; font-weight: 500; color: #cbd5e1;
margin-bottom: 1rem; letter-spacing: -0.005em;
}
.rl-hero .rl-subtitle { font-size: 1.35rem; }
@media (min-width: 640px) { .rl-hero .rl-subtitle { font-size: 1.5rem; } }
.rl-subtext {
font-size: 1.05rem; color: #94a3b8; line-height: 1.65;
max-width: 640px; margin: 0 auto 2rem;
}
.rl-hero .rl-subtext { font-size: 1.15rem; }
/* Grids */
.rl-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.rl-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.rl-grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
.rl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rl-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
.rl-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
/* Card */
.rl-card {
background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
border-radius: 1rem; padding: 1.75rem;
transition: border-color 0.2s;
}
.rl-card:hover { border-color: rgba(20,184,166,0.3); }
.rl-card h3 { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.5rem; }
.rl-card p { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; }
.rl-card--center { text-align: center; }
/* CTA row */
.rl-cta-row {
display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
margin-top: 2rem;
}
.rl-cta-primary {
display: inline-block; padding: 0.8rem 2rem; border-radius: 0.5rem;
background: linear-gradient(135deg, #14b8a6, #0d9488);
color: white; font-size: 0.95rem; font-weight: 600;
text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.rl-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,184,166,0.3); }
.rl-cta-secondary {
display: inline-block; padding: 0.8rem 2rem; border-radius: 0.5rem;
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
color: #94a3b8; font-size: 0.95rem; font-weight: 600;
text-decoration: none; transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.rl-cta-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.35); color: white; }
/* Icon box */
.rl-icon-box {
width: 3rem; height: 3rem; border-radius: 0.75rem;
background: rgba(20,184,166,0.12); color: #14b8a6;
display: flex; align-items: center; justify-content: center;
font-size: 1.5rem; margin-bottom: 1rem;
}
.rl-card--center .rl-icon-box { margin: 0 auto 1rem; }
/* Highlight text */
.hl { color: #14b8a6; font-weight: 600; }
/* ── Section-specific accents ── */
/* EncryptID / identity accent */
.rl-card--accent-purple { border-color: rgba(124, 58, 237, 0.2); }
.rl-card--accent-purple:hover { border-color: rgba(124, 58, 237, 0.4); }
.rl-icon-box--purple { background: rgba(124, 58, 237, 0.12); color: #a78bfa; }
/* ── Flow diagram ── */
.flow-diagram {
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 1rem;
padding: 1.75rem;
margin-top: 1.5rem;
}
.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 app pills ── */
.ecosystem-apps {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
margin-top: 2rem;
}
.ecosystem-app {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
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(20, 184, 166, 0.4);
color: #14b8a6;
}
/* ── EncryptID link ── */
.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;
border-radius: 8px;
border: none;
background: linear-gradient(135deg, #14b8a6, #0d9488);
color: white;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.newsletter-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}
.newsletter-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.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;
}
/* ── Responsive ── */
@media (max-width: 600px) {
.rl-hero { padding: 3rem 1rem 2rem; }
.rl-hero .rl-heading { font-size: 2rem; }
.rl-section { padding: 2.5rem 1rem; }
.newsletter-row { flex-direction: column; }
}
</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">
<a href="/" style="display:flex;align-items:center;margin-right:4px"><img src="/logo.png" alt="rSpace" class="rstack-header__logo"></a>
<rstack-app-switcher current=""></rstack-app-switcher>
<rstack-space-switcher current="" name="Spaces"></rstack-space-switcher>
</div>
<div class="rstack-header__center">
<rstack-mi></rstack-mi>
</div>
<div class="rstack-header__right">
<a class="rstack-header__demo-btn" href="https://demo.rspace.online/rspace">Try Demo</a>
<rstack-identity></rstack-identity>
</div>
</header>
<!-- ═══════ HERO ═══════ -->
<div class="rl-hero">
<span class="rl-tagline">Local-First &middot; Zero-Knowledge &middot; Community-Owned</span>
<h1 class="rl-heading">(you)rSpace</h1>
<p class="rl-subtitle">Collaborative community spaces powered by FolkJS</p>
<p class="rl-subtext">
Build digital spaces for your community with an infinite collaborative canvas,
real-time CRDT sync, and zero-knowledge identity. All open source.
</p>
<div class="rl-cta-row">
<a href="/create-space" class="rl-cta-primary" id="cta-primary">Create a Space</a>
<a href="https://rspace.online/rspace" class="rl-cta-secondary" id="cta-demo">Try the Demo</a>
</div>
<div class="rl-grid-4" style="margin-top: 3rem;">
<div class="rl-card rl-card--center">
<div class="rl-icon-box">🎨</div>
<h3>Spatial Canvas</h3>
<p>Infinite collaborative workspace</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box">🔄</div>
<h3>Real-time Sync</h3>
<p>Powered by Automerge CRDT</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box">📡</div>
<h3>Offline-First</h3>
<p>Works without internet, merges on reconnect</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box">🌐</div>
<h3>Your Subdomain</h3>
<p>community.rspace.online</p>
</div>
</div>
</div>
<!-- ═══════ EncryptID ═══════ -->
<div class="rl-section">
<div class="rl-container" style="text-align: center;">
<h2 class="rl-heading">EncryptID</h2>
<p class="rl-subtext">
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="rl-grid-3">
<div class="rl-card rl-card--center">
<div class="rl-icon-box rl-icon-box--purple">🔑</div>
<h3>Passkey Login</h3>
<p>Hardware-backed biometric auth. Phishing-resistant by design.</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box rl-icon-box--purple">🏠</div>
<h3>Local-First</h3>
<p>Cryptographic keys are derived and stored on your device, never uploaded.</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box rl-icon-box--purple">🔗</div>
<h3>One Login, All Apps</h3>
<p>Authenticate once and access every r-Ecosystem tool seamlessly.</p>
</div>
</div>
<div class="rl-card rl-card--accent-purple" style="text-align: left; margin-top: 1.5rem;">
<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="rl-card rl-card--accent-purple" style="text-align: left; margin-top: 1.25rem;">
<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>
</div>
<!-- ═══════ Offline-First ═══════ -->
<div class="rl-section rl-section--alt">
<div class="rl-container" style="text-align: center;">
<h2 class="rl-heading">Offline-First, Always Available</h2>
<p class="rl-subtext">
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="rl-grid-3">
<div class="rl-card rl-card--center">
<div class="rl-icon-box">💾</div>
<h3>Local Persistence</h3>
<p>Your canvas is cached in the browser. Refresh the page &mdash; it loads instantly, even offline.</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box">🔀</div>
<h3>Auto-Merge</h3>
<p>Automerge CRDTs resolve conflicts automatically. Multiple people can edit the same canvas offline and merge without data loss.</p>
</div>
<div class="rl-card rl-card--center">
<div class="rl-icon-box"></div>
<h3>Incremental Sync</h3>
<p>Only new changes are transferred on reconnect &mdash; not the whole document. Fast even on slow connections.</p>
</div>
</div>
<div class="rl-card" style="text-align: left; margin-top: 1.5rem;">
<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>
</div>
<!-- ═══════ Interoperable Ecosystem ═══════ -->
<div class="rl-section">
<div class="rl-container" style="text-align: center;">
<h2 class="rl-heading">Interoperable by Design</h2>
<p class="rl-subtext">
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="rl-grid-2" style="margin-top: 1.5rem;">
<div class="rl-card" style="text-align: left;">
<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="rl-card" style="text-align: left;">
<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>
<div class="ecosystem-apps">
<a href="https://rspace.online/rspace" class="ecosystem-app">🌌 rSpace</a>
<a href="https://rspace.online/rwallet" class="ecosystem-app">💰 rWallet</a>
<a href="https://rspace.online/rvote" class="ecosystem-app">🗳 rVote</a>
<a href="https://rspace.online/rmaps" class="ecosystem-app">🗺 rMaps</a>
<a href="https://rspace.online/rfiles" class="ecosystem-app">📁 rFiles</a>
<a href="https://rspace.online/rnotes" class="ecosystem-app">📝 rNotes</a>
<a href="https://rspace.online/rtrips" class="ecosystem-app">✈ rTrips</a>
<a href="https://rspace.online/rfunds" class="ecosystem-app">💸 rFunds</a>
<a href="https://rspace.online/rnetwork" class="ecosystem-app">🕸️ rNetwork</a>
<a href="https://rspace.online/rcart" class="ecosystem-app">🛒 rCart</a>
<a href="https://rspace.online/rtube" class="ecosystem-app">🎬 rTube</a>
<a href="https://rspace.online/rchats" class="ecosystem-app">💬 rChats</a>
<a href="https://rspace.online/rforum" class="ecosystem-app">💭 rForum</a>
<a href="https://rspace.online/rswag" class="ecosystem-app">👕 rSwag</a>
<a href="https://rspace.online/rdata" class="ecosystem-app">📊 rData</a>
</div>
<a href="https://ridentity.online" class="encryptid-link">
🔐 Learn more about EncryptID
</a>
</div>
</div>
<!-- ═══════ Newsletter ═══════ -->
<div class="rl-section rl-section--alt">
<div class="rl-container" style="text-align: center;">
<h2 class="rl-heading">Stay Connected</h2>
<p class="rl-subtext">
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>
</div>
<script type="module">
import { RStackIdentity, isAuthenticated, getAccessToken } from "@shared/components/rstack-identity";
import { RStackAppSwitcher } from "@shared/components/rstack-app-switcher";
import { RStackSpaceSwitcher } from "@shared/components/rstack-space-switcher";
import { RStackMi } from "@shared/components/rstack-mi";
RStackIdentity.define();
RStackAppSwitcher.define();
RStackSpaceSwitcher.define();
RStackMi.define();
// Reload space list when user signs in/out
document.addEventListener("auth-change", () => {
document.querySelector("rstack-space-switcher")?.reload?.();
});
fetch("/api/modules").then(r => r.json()).then(data => {
document.querySelector("rstack-app-switcher")?.setModules(data.modules || []);
}).catch(() => {});
// If logged in, update CTA to go to personal space
try {
const raw = localStorage.getItem('encryptid_session');
if (raw) {
const session = JSON.parse(raw);
if (session?.claims?.username) {
const username = session.claims.username.toLowerCase();
const primary = document.getElementById('cta-primary');
const demo = document.getElementById('cta-demo');
if (primary) {
primary.textContent = 'Go to My Space';
primary.href = '/' + username + '/canvas';
}
if (demo) {
demo.textContent = 'View Demo Space';
}
// Auto-provision personal space
const token = session.accessToken;
if (token) {
fetch('/api/spaces/auto-provision', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' }
}).catch(() => {});
}
}
}
} catch(e) {}
// 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>