Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat: rss button (#726)
Maximilian Kaske3376fd1c6289
diff --git a/apps/web/src/app/(content)/blog/page.tsx b/apps/web/src/app/(content)/blog/page.tsxindex d2707761c..62fb7dd1b 100644--- a/apps/web/src/app/(content)/blog/page.tsx+++ b/apps/web/src/app/(content)/blog/page.tsx@@ -1,6 +1,7 @@import type { Metadata } from "next";import Link from "next/link";import { allPosts } from "contentlayer/generated";+import { Rss } from "lucide-react";import { Button } from "@openstatus/ui";@@ -36,6 +37,14 @@ export default async function Post() {<Timelinetitle="Blog"description="All the latest articles and news from OpenStatus."+ actions={+ <Button variant="outline" size="icon" asChild>+ <a href="/blog/feed.xml" target="_blank">+ <Rss className="h-4 w-4" />+ <span className="sr-only">RSS feed</span>+ </a>+ </Button>+ }>{posts.map((post) => (<Timeline.Articlediff --git a/apps/web/src/app/(content)/changelog/page.tsx b/apps/web/src/app/(content)/changelog/page.tsxindex 2eef147d0..21f2ce943 100644--- a/apps/web/src/app/(content)/changelog/page.tsx+++ b/apps/web/src/app/(content)/changelog/page.tsx@@ -1,5 +1,8 @@import type { Metadata } from "next";import { allChangelogs } from "contentlayer/generated";+import { Rss } from "lucide-react";++import { Button } from "@openstatus/ui";import {defaultMetadata,@@ -34,6 +37,14 @@ export default async function Changelog() {<Timelinetitle="Changelog"description="All the latest features, fixes and work to OpenStatus."+ actions={+ <Button variant="outline" size="icon" asChild>+ <a href="/changelog/feed.xml" target="_blank">+ <Rss className="h-4 w-4" />+ <span className="sr-only">RSS feed</span>+ </a>+ </Button>+ }>{changelogs.map((changelog) => (<Timeline.Articlediff --git a/apps/web/src/components/content/timeline.tsx b/apps/web/src/components/content/timeline.tsxindex 50737ad88..ee181739e 100644--- a/apps/web/src/components/content/timeline.tsx+++ b/apps/web/src/components/content/timeline.tsx@@ -7,16 +7,25 @@ interface TimelineProps {title: string;description: string;children?: React.ReactNode;+ actions?: React.ReactNode;}-export function Timeline({ title, description, children }: TimelineProps) {+export function Timeline({+ title,+ description,+ children,+ actions,+}: TimelineProps) {return (<div className="grid gap-8"><div className="grid gap-4 md:grid-cols-5 md:gap-8"><div className="md:col-span-1" />- <div className="grid gap-4 md:col-span-4">- <h1 className="text-foreground font-cal text-4xl">{title}</h1>- <p className="text-muted-foreground">{description}</p>+ <div className="flex items-end justify-between gap-3 md:col-span-4">+ <div className="grid gap-4">+ <h1 className="text-foreground font-cal text-4xl">{title}</h1>+ <p className="text-muted-foreground">{description}</p>+ </div>+ <div>{actions}</div></div></div>{children}