octupub-footer
v0.0.3
Published
Octupub footer (React): logo, product and legal links, and social profile links.
Readme
octupub-footer
The Octupub footer as a React component: logo and tagline, Product links (App, Pricing), Company links (About, Terms of Service, Privacy Policy), and social profile links.
Install
npm install octupub-footerreact and react-dom (v19) are peer dependencies.
Use
---
import { Footer } from "octupub-footer";
---
<Footer lang="en" />The footer has no interactive parts, so it doesn't need a client:* directive.
lang: current language code (defaults toen). Links get a/<lang>prefix for languages other than English.
Styling
The component uses Tailwind v4 classes and the Octupub theme tokens (brand, brand-dark, ink, sucker, mist). The app that uses it must:
- Define the same tokens in its
@theme(the landing page'ssrc/styles/global.cssalready does). - Tell Tailwind to scan the package, in the same CSS file:
@source "../../node_modules/octupub-footer/src";Content
Links, social profiles and copy live in src/content/content.ts. Pages it links to: /app, /pricing, /about, /terms, /privacy-policy.
To add a language, copy content.ts to content-<code>.ts, translate it, and add it to contentMap in src/languages.ts.
Develop
npm install
npm run devsrc/pages/index.astro is a preview page and isn't published.
