Restyle the status page in Cottage's brand

The page (pages/, components/, styles/) is rewritten in Cottage's brand, replacing Mantine.
- Brand files: tokens, fonts and component CSS copied from Hearth; logo, pod row, status
  pill and banner ported from the brand handbook.
- Themes: light by default, dark when the OS asks.
- Services: grouped; each has a status pill, uptime and 90 daily bars (30 on phones).
- Bars: each bar has a text label, keyboard navigation and a day card.
- Response-time chart: optional, drawn in brand colours.
- Notices: colour-coded posted notices and planned maintenance.
- Incident history: by month, with the brand's empty state.

The check worker, D1 storage, types and Terraform are untouched, so upstream merges stay
clean. uptime.config.ts lists Cottage's services (website, dashboard, apps in US East).
`npm run dev` shows sample data (?sample=outage|maintenance|empty) since there's no D1.

Deploys are gated on the CLOUDFLARE_DEPLOY repository variable until launch, Wrangler
telemetry is off, and a Check workflow lints, type-checks and builds every pull request.
Removed upstream's issue-translation workflow, funding file and translations.
This commit is contained in:
Michael Kinder committed 2026-11-21 14:04:00 -05:00
1 parent 8035521268
commit fdc16007e3
54 files changed
+2197 -2705

No files matched your search

+27 -9
View File
@@ -1,14 +1,32 @@
import { Divider } from '@mantine/core'
import { pageConfig } from '@/uptime.config'
import { Logo } from './brand'
// The site footer from the brand handbook, trimmed for a single-purpose page.
export default function Footer() {
const defaultFooter =
'<p style="text-align: center; font-size: 12px; margin-top: 10px;"> Open-source monitoring and status page powered by <a href="https://github.com/lyc8503/UptimeFlare" target="_blank">UptimeFlare</a>, made with ❤ by <a href="https://github.com/lyc8503" target="_blank">lyc8503</a>. </p>'
return (
<>
<Divider mt="lg" />
<div dangerouslySetInnerHTML={{ __html: pageConfig.customFooter ?? defaultFooter }} />
</>
<footer className="st-footer">
<div className="st-container st-container--narrow">
<div className="st-footer__top">
<a href="https://cottage.host" className="st-footer__brand" aria-label="Cottage home">
<Logo variant="mono" size={32} />
</a>
<p className="st-footer__about">
Cottage runs open-source apps for you, kept warm. This page checks our services every
minute from Cloudflare&rsquo;s network.
</p>
</div>
<div className="st-footer__bottom">
<span>&copy; {new Date().getFullYear()} Cottage Host</span>
<a href="https://cottage.host">cottage.host</a>
{/* an API route, not a page */}
{/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
<a href="/api/data">Status API</a>
<span>
Built on{' '}
<a href="https://github.com/lyc8503/UptimeFlare">UptimeFlare</a>, open source (
<a href="https://github.com/cottage-host/status">our copy</a>)
</span>
</div>
</div>
</footer>
)
}