Skip to content

feat(web): pit.world network footer; trim the site footer to one row - #52

Merged
ralyodio merged 1 commit into
masterfrom
pit-footer
Oct 19, 2026
Merged

ralyodio merged 1 commit into
masterfrom
pit-footer

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator
  • Adds the pit.world global footer, fetched server-side from https://pit.world/snippets/footer.html?site=c0mpute.com (revalidate 3600, 3s timeout, renders nothing on failure), as the last thing in <body> via the root layout.
  • Trims the site footer: the @profullstack/footer block (links row, Profullstack webring nav, copyright row) becomes one row: © c0mpute · MIT licensed + blog, about, contact, pricing, terms, privacy, github. Ring links now come from the global footer.
  • Removes the unused @profullstack/footer dependency.
  • No CSP header on c0mpute.com, so the snippet's inline <style> needs no policy change.

Checked: tsc --noEmit and next build pass; prerendered / and /about contain the footer once.

🤖 Generated with Claude Code

- Fetch https://pit.world/snippets/footer.html?site=c0mpute.com on the server
  (1h revalidate, 3s timeout, renders nothing on any failure) and render it as
  the last thing in <body> on every page.
- Replace the @profullstack/footer block (links row + Profullstack webring nav +
  copyright row) with one tight row: copyright/MIT + blog, about, contact,
  pricing, terms, privacy, github. The ring now lives in the global footer.
- Drop the now-unused @profullstack/footer dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
// line keeps the page's markup tidy alongside the hydration payload.
const html = (await res.text()).replace(/\s*\n\s*/g, " ").trim();
if (!html.includes("data-pit-footer")) return null;
return <div dangerouslySetInnerHTML={{ __html: html }} />;
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

9 finding(s)

MEDIUM: 9

Severity Rule Location
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:98
MEDIUM js-unescaped-html-sink apps/web/src/components/pit-footer.tsx:17
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
MEDIUM sh-remote-script-execution scripts/install.sh:159
MEDIUM sh-remote-script-execution scripts/install.sh:184
MEDIUM sh-remote-script-execution scripts/install.sh:277
MEDIUM sh-remote-script-execution scripts/install.sh:294

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 641216c into master Oct 19, 2026
12 checks passed
ralyodio added a commit that referenced this pull request Oct 19, 2026
….world footer (#53)

Every site must end with the Profullstack webring row and then the pit.world
network footer. Re-add @profullstack/footer and server-render <Footer> (as
before #52) right after the trimmed link row, with the pit.world footer still
last in <body>. The ring row carries the copyright, so the link row drops its
own copyright and "MIT licensed" moves to the ring row's tagline.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants