Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datamart-web",
"version": "0.2.1",
"version": "0.2.2",
"private": true,
"description": "datamart.help: public libraries, schools, colleges and government services near you, with the source of every fact",
"license": "MIT",
Expand All @@ -15,6 +15,7 @@
"smoke": "bun scripts/smoke.ts"
},
"dependencies": {
"@profullstack/footer": "latest",
"hono": "4.13.12",
"next": "16.3.8",
"react": "19.2.3",
Expand Down
1 change: 1 addition & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 0.5rem; color: var(--muted); font-size: 0.85rem; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.site-footer p { margin: 0; }
.site-footer + div > .pfs-footer { border-top: 0; }
.site-footer a { color: var(--muted); }

/* CrawlProof ad unit: no box until ad.js starts filling it, so an unsold or blocked slot leaves no hole. */
Expand Down
23 changes: 13 additions & 10 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import type { Metadata, Viewport } from "next";
import { Footer } from "@profullstack/footer/react";
import Link from "next/link";
import { AdUnit } from "@/components/ad-unit";
import { PitFooter } from "@/components/pit-footer";
import { RegisterServiceWorker } from "@/components/register-sw";
import { DISCLOSURE } from "@/lib/site";
import "./globals.css";

// Pages prerender at build; revalidating hourly lets the pit.world footer
// (fetched server side from pit.world/snippets/footer.html) refresh without a redeploy.
// Pages prerender at build; revalidating hourly lets the shared @profullstack/footer
// template (jsDelivr @latest) and the pit.world footer refresh without a redeploy.
export const revalidate = 3600;

export const metadata: Metadata = {
Expand Down Expand Up @@ -68,17 +69,19 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<AdUnit />
{children}
</main>
<footer className="site-footer">
<div className="site-footer">
<div className="wrap">
<nav aria-label="Footer">
<span>&copy; {new Date().getFullYear()} Profullstack, Inc.</span>
<Link href="/about">About</Link>
<Link href="/developers">API and MCP</Link>
<a href="https://github.com/profullstack/datamart.help">Source</a>
</nav>
<p>{DISCLOSURE}</p>
</div>
</footer>
</div>
<Footer
site="https://datamart.help/"
links={[
{ label: "About", href: "/about" },
{ label: "API and MCP", href: "/developers" },
{ label: "Source", href: "https://github.com/profullstack/datamart.help" },
]}
/>
<RegisterServiceWorker />
<PitFooter />
</body>
Expand Down
Loading