mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-02 17:54:48 +00:00
feat(footer): use @profullstack/footer
Replaces the hand-written footer / ring nav with the shared @profullstack/footer, rendered on the server so the ring verifier sees it and a package release updates the footer without a redeploy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
334b38528c
commit
5f2a2fb9c6
7 changed files with 50 additions and 46 deletions
26
apps/logicsrc-web/src/lib/site-footer.ts
Normal file
26
apps/logicsrc-web/src/lib/site-footer.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { footerHtml, type FooterOptions } from "@profullstack/footer";
|
||||
|
||||
/**
|
||||
* 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 function siteFooterHtml(): Promise<string> {
|
||||
return footerHtml(SITE_FOOTER);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue