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() - : ` -
- `; - - 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, }), ); });