From e8272294470e0e78b41cbf382f6329f6d94bb61d Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 4 Mar 2026 18:14:14 -0800 Subject: [PATCH] feat: show rSocials landing page on space subdomains Space subdomain /rsocials now renders the same marketing landing page as the bare domain, instead of the bare Community Feed placeholder. Demo space still shows the demo feed. Co-Authored-By: Claude Opus 4.6 --- modules/rsocials/mod.ts | 81 +++++++++-------------------------------- 1 file changed, 18 insertions(+), 63 deletions(-) diff --git a/modules/rsocials/mod.ts b/modules/rsocials/mod.ts index 41497d3..25f9e16 100644 --- a/modules/rsocials/mod.ts +++ b/modules/rsocials/mod.ts @@ -8,7 +8,7 @@ import { resolve } from "node:path"; import { mkdir, readdir, readFile, writeFile, unlink } from "node:fs/promises"; import { Hono } from "hono"; -import { renderShell, renderExternalAppShell, escapeHtml } from "../../server/shell"; +import { renderShell, renderExternalAppShell, escapeHtml, RICH_LANDING_CSS } from "../../server/shell"; import { getModuleInfoList } from "../../shared/module"; import type { RSpaceModule } from "../../shared/module"; import { renderLanding } from "./landing"; @@ -1969,68 +1969,9 @@ routes.get("/", (c) => { const body = isDemo ? renderDemoFeedHTML() - : ` -
-
-

Community Feed

-

Social activity across your community

-
-
-
Loading feed…
-
-
- `; - - return c.html( - renderShell({ - title: `${space} — Socials | rSpace`, - moduleId: "rsocials", - spaceSlug: space, - modules: getModuleInfoList(), - theme: "dark", - body, - styles: ``, +`; + + const styles = isDemo + ? demoFeedStyles + : ``; + + return c.html( + renderShell({ + title: `${space} — Socials | rSpace`, + moduleId: "rsocials", + spaceSlug: space, + modules: getModuleInfoList(), + theme: "dark", + body, + styles, }), ); });