mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 09:24:46 +00:00
feat(footer): use @profullstack/footer (#236)
Some checks failed
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Has been cancelled
test / test (push) Has been cancelled
Some checks failed
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Has been cancelled
test / test (push) Has been cancelled
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
0f5c479e2f
7 changed files with 50 additions and 46 deletions
|
|
@ -4,6 +4,7 @@ import type { ReactNode } from "react";
|
|||
import { renderPageMarkup } from "@/lib/page-markup";
|
||||
import { pageMetadata, specMetadata } from "@/lib/page-meta";
|
||||
import { HomeInteractivity } from "@/components/home-interactivity";
|
||||
import { siteFooterHtml } from "@/lib/site-footer";
|
||||
|
||||
// The legacy SPA served the same single page for every top-level path and just
|
||||
// scrolled to the matching section. We preserve those URLs (they are canonical
|
||||
|
|
@ -50,9 +51,10 @@ export default async function Page({
|
|||
}
|
||||
}
|
||||
|
||||
const footer = await siteFooterHtml();
|
||||
return (
|
||||
<>
|
||||
<div id="app" dangerouslySetInnerHTML={{ __html: renderPageMarkup(slug?.[0] ? `/${slug[0]}` : "/") }} />
|
||||
<div id="app" dangerouslySetInnerHTML={{ __html: renderPageMarkup(slug?.[0] ? `/${slug[0]}` : "/", footer) }} />
|
||||
<HomeInteractivity />
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue