Merge branch 'dev'

This commit is contained in:
Jeff Emmett 2026-03-20 16:31:37 -07:00
commit 2a1e8d784e
2 changed files with 3 additions and 8 deletions

View File

@ -18,7 +18,7 @@ export function renderLanding(): string {
then advance to final voting.
</p>
<div class="rl-cta-row">
<a href="/rvote/demo" class="rl-cta-primary" id="ml-primary"
<a href="https://demo.rspace.online/rvote" class="rl-cta-primary" id="ml-primary"
style="background:linear-gradient(to right,#818cf8,#6366f1);color:white">
<span style="display:inline-flex;align-items:center;gap:0.5rem">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="5,3 19,12 5,21"/></svg>
@ -106,7 +106,7 @@ export function renderLanding(): string {
<p style="color:#94a3b8;max-width:640px;margin:0 auto 2rem">
Vote on live polls synced across the r* ecosystem. Changes appear in real-time for everyone.
</p>
<a href="/rvote/demo" class="rl-cta-primary"
<a href="https://demo.rspace.online/rvote" class="rl-cta-primary"
style="background:linear-gradient(to right,#818cf8,#6366f1);color:white">
Open Interactive Demo
</a>
@ -380,7 +380,7 @@ export function renderLanding(): string {
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>
</span>
</a>
<a href="/rvote/demo" class="rl-cta-secondary">
<a href="https://demo.rspace.online/rvote" class="rl-cta-secondary">
<span style="display:inline-flex;align-items:center;gap:0.5rem">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none"><polygon points="5,3 19,12 5,21"/></svg>
Interactive Demo

View File

@ -633,11 +633,6 @@ function renderDemoBody(): string {
// ── Page routes ──
// Legacy /demo path — redirect to demo.rspace.online/rvote
routes.get("/demo", (c) => {
return c.redirect("https://demo.rspace.online/rvote", 301);
});
// Main route — serves demo page when space=demo, dashboard otherwise
routes.get("/", (c) => {
const space = c.req.param("space") || "demo";