Footer
The footer is a React file in your folder, apitogo/portal/footer/Footer.tsx, named by
portal.footer in apitogo.config.json:
apitogo.config.json
It shows under the home page, the docs, the API reference and the pricing page. It is not shown on
the console's pages (/account, /login, /signup).
apitogo add portal writes a starter footer and the setting. Remove portal.footer to have no
footer.
The starter footer
The starter uses FooterSection from @lukoweb/apitogo-module-landing, so it matches the home
page. Change anything in it:
apitogo/portal/footer/Footer.tsx
FooterSection takes:
| Field | What it is |
|---|---|
brand | name, an optional tagline, and an optional logoSrc (an image address) |
columns | Link columns: a title and links of { label, href } |
social | Icon links: icon (github, x), href and an optional label |
copyright | The last line; by default © <year> <name>. All rights reserved. |
Your own footer
The file can render anything: it is a React component, and its default export is the footer. Use the
theme's classes (bg-background, text-muted-foreground, border-t) so it follows light and dark
mode:
apitogo/portal/footer/Footer.tsx
apitogo check reports a portal.footer that names a file that does not exist.