mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-02 01:34:48 +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
|
|
@ -111,7 +111,12 @@ const comparisonRows = [
|
|||
}
|
||||
];
|
||||
|
||||
export function renderPageMarkup(path = "/"): string {
|
||||
/**
|
||||
* `footer` is the site footer's HTML (lib/site-footer.ts, @profullstack/footer), placed
|
||||
* at the end of the workspace. The page route passes it; it is server-rendered, which
|
||||
* the Profullstack ring's verifier needs.
|
||||
*/
|
||||
export function renderPageMarkup(path = "/", footer = ""): string {
|
||||
return `
|
||||
<main class="shell">
|
||||
<aside class="rail">
|
||||
|
|
@ -431,17 +436,7 @@ COINPAY_STATUS=pending_acceptance</code></pre>
|
|||
`).join("")}
|
||||
</div>
|
||||
</section>
|
||||
<!-- Member of the Profullstack OpenWebring (/openwebring). The homepage is this
|
||||
markup, not SiteShell, so it carries its own copy of the shell's ring footer:
|
||||
the ring's verifier reads these links from the server-rendered homepage. -->
|
||||
<footer style="max-width:72rem;margin:2rem auto 0;padding:1.25rem 0;border-top:1px solid #d9ded4;font-size:0.85rem;color:#5b6b7a">
|
||||
<nav class="webring" aria-label="Profullstack webring" style="display:flex;gap:0.75rem;justify-content:center">
|
||||
<a href="https://rssamplifier.com/ring/profullstack/previous?from=https%3A%2F%2Flogicsrc.com%2F" rel="prev" title="Previous site" style="color:inherit"><<</a>
|
||||
<a href="https://rssamplifier.com/ring/profullstack" style="color:inherit">Profullstack</a>
|
||||
<a href="https://rssamplifier.com/ring/profullstack/next?from=https%3A%2F%2Flogicsrc.com%2F" rel="next" title="Next site" style="color:inherit">>></a>
|
||||
<a href="https://rssamplifier.com/ring/profullstack/random?from=https%3A%2F%2Flogicsrc.com%2F" title="Random site" aria-label="Random site" style="color:inherit">⚄</a>
|
||||
</nav>
|
||||
</footer>
|
||||
<div style="color:#5b6b7a">${footer}</div>
|
||||
</section>
|
||||
</main>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue