diff --git a/apps/logicsrc-web/contract/logicsrc-web.contract.test.ts b/apps/logicsrc-web/contract/logicsrc-web.contract.test.ts
index 2be5a46d..a5fcfe25 100644
--- a/apps/logicsrc-web/contract/logicsrc-web.contract.test.ts
+++ b/apps/logicsrc-web/contract/logicsrc-web.contract.test.ts
@@ -92,12 +92,14 @@ describe("server-rendered page markup", () => {
expect(markup).toContain('id="project-request-form"');
});
- it("carries the site footer (links + copyright), with no webring of its own", async () => {
+ it("carries the Profullstack webring links (the ring verifier reads the homepage)", async () => {
+ process.env.PROFULLSTACK_FOOTER_OFFLINE = "1";
const markup = renderPageMarkup("/", await siteFooterHtml());
- expect(markup).toContain('class="site-footer"');
- expect(markup).toContain('href="/terms"');
- expect(markup).toContain('href="/privacy"');
- expect(markup).not.toContain("rssamplifier.com/ring");
+ expect(markup).toContain("data-pfs-footer");
+ const from = "from=https%3A%2F%2Flogicsrc.com%2F";
+ for (const hop of ["previous", "next", "random"]) {
+ expect(markup).toContain(`https://rssamplifier.com/ring/profullstack/${hop}?${from}`);
+ }
});
});
diff --git a/apps/logicsrc-web/package.json b/apps/logicsrc-web/package.json
index 81e03f3d..e69f0f4c 100644
--- a/apps/logicsrc-web/package.json
+++ b/apps/logicsrc-web/package.json
@@ -1,6 +1,6 @@
{
"name": "@logicsrc/web",
- "version": "0.1.1",
+ "version": "0.1.2",
"private": true,
"description": "LogicSRC standards and open specification PWA (Next.js).",
"scripts": {
diff --git a/apps/logicsrc-web/src/components/site-shell.tsx b/apps/logicsrc-web/src/components/site-shell.tsx
index e6b32aa8..ce6e60de 100644
--- a/apps/logicsrc-web/src/components/site-shell.tsx
+++ b/apps/logicsrc-web/src/components/site-shell.tsx
@@ -2,7 +2,8 @@ import type { ReactNode } from "react";
import { renderInstallCommand } from "@/lib/install-command";
import { Breadcrumbs } from "@/components/breadcrumbs";
import { SideNav } from "@/components/side-nav";
-import { SITE_FOOTER_COLOR, SITE_FOOTER_HTML } from "@/lib/site-footer";
+import { Footer } from "@profullstack/footer/react";
+import { SITE_FOOTER, SITE_FOOTER_COLOR } from "@/lib/site-footer";
/**
* The site chrome for every standalone route: the sidebar that unfolds to
@@ -38,10 +39,9 @@ export function SiteShell({
);
diff --git a/apps/logicsrc-web/src/lib/site-footer.ts b/apps/logicsrc-web/src/lib/site-footer.ts
index 84c509f3..314e378b 100644
--- a/apps/logicsrc-web/src/lib/site-footer.ts
+++ b/apps/logicsrc-web/src/lib/site-footer.ts
@@ -1,30 +1,26 @@
-/**
- * The site footer: one row of links plus the copyright. The network links
- * (pit.world, search, ring) come from the pit.world global footer, which the
- * root layout appends to every page (components/pit-footer.tsx).
- * SiteShell and the homepage markup string (lib/page-markup.ts) share this HTML.
- */
-const LINKS: Array<[string, string]> = [
- ["Specs", "/specs"],
- ["Docs", "/docs"],
- ["Blog", "/blog"],
- ["RSS", "/blog/rss.xml"],
- ["llms.txt", "/llms.txt"],
- ["Code", "https://github.com/profullstack/logicsrc"],
- ["Terms", "/terms"],
- ["Privacy", "/privacy"],
-];
+import { footerHtml, type FooterOptions } from "@profullstack/footer";
-/** Muted text, as the old footer had. */
+/**
+ * The site footer: @profullstack/footer (links, copyright and the Profullstack
+ * webring). SiteShell renders it as the package's React server component; the
+ * homepage, which is the legacy markup string (lib/page-markup.ts), gets the same
+ * footer as HTML. Both render on the server, which is what the ring's verifier reads.
+ */
+export const SITE_FOOTER: FooterOptions = {
+ site: "https://logicsrc.com/",
+ links: [
+ { label: "Specs", href: "/specs" },
+ { label: "Docs", href: "/docs" },
+ { label: "RSS", href: "/blog/rss.xml" },
+ { label: "llms.txt", href: "/llms.txt" },
+ { label: "Terms", href: "/terms" },
+ { label: "Privacy", href: "/privacy" },
+ ],
+};
+
+/** Muted text, as the old footer had; the package inherits `color`. */
export const SITE_FOOTER_COLOR = "#5b6b7a";
-export const SITE_FOOTER_HTML =
- ``;
-
-export async function siteFooterHtml(): Promise {
- return SITE_FOOTER_HTML;
+export function siteFooterHtml(): Promise {
+ return footerHtml(SITE_FOOTER);
}