Skip to content

Open-source status page, incident response and uptime monitoring

feat: landing pages (#1235)

Maximilian Kaske12915441ba8f
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index fdba0cf4a..3c2566e84 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -45,6 +45,20 @@ const nextConfig = {
async headers() {
return [{ source: "/(.*)", headers: securityHeaders }];
},
+ async redirects() {
+ return [
+ {
+ source: "/features/monitoring",
+ destination: "/uptime-monitoring",
+ permanent: true,
+ },
+ {
+ source: "/features/status-page",
+ destination: "/status-page",
+ permanent: true,
+ },
+ ];
+ },
async rewrites() {
return {
beforeFiles: [
diff --git a/apps/web/src/app/(content)/(landing)/[slug]/page.tsx b/apps/web/src/app/(content)/(landing)/[slug]/page.tsx
new file mode 100644
index 000000000..906165e04
--- /dev/null
+++ b/apps/web/src/app/(content)/(landing)/[slug]/page.tsx
@@ -0,0 +1,93 @@
+import {
+ defaultMetadata,
+ ogMetadata,
+ twitterMetadata,
+} from "@/app/shared-metadata";
+import { landingsConfig } from "@/config/landings";
+import { Button } from "@openstatus/ui";
+import type { Metadata } from "next";
+import Image from "next/image";
+import Link from "next/link";
+import { notFound } from "next/navigation";
+
+export async function generateStaticParams() {
+ return Object.keys(landingsConfig).map((slug) => ({ slug }));
+}
+export async function generateMetadata(props: {
+ params: Promise<{ slug: string }>;
+}): Promise<Metadata | undefined> {
+ const { slug } = await props.params;
+ const landing = landingsConfig[slug as keyof typeof landingsConfig];
+
+ if (!landing) return;
+
+ const { title, description } = landing;
+
+ const encodedTitle = encodeURIComponent(title);
+ const encodedDescription = encodeURIComponent(description);
+
+ return {
+ ...defaultMetadata,
+ title,
+ description,
+ openGraph: {
+ ...ogMetadata,
+ title,
+ description,
+ images: [
+ `/api/og?title=${encodedTitle}&description=${encodedDescription}`,
+ ],
+ },
+ twitter: {
+ ...twitterMetadata,
+ title,
+ description,
+ images: [
+ `/api/og?title=${encodedTitle}&description=${encodedDescription}`,
+ ],
+ },
+ };
+}
+
+export default async function Page({
+ params,
+}: {
+ params: Promise<{ slug: string }>;
+}) {
+ const { slug } = await params;
+ const landing = landingsConfig[slug as keyof typeof landingsConfig];
+
+ if (!landing) {
+ notFound();
+ }
+
+ return (
+ <div className="grid gap-12">
+ <Hero title={landing.title} description={landing.description} />
+ {landing.blocks.map((block) => block)}
+ </div>
+ );
+}
+
+function Hero({ title, description }: { title: string; description: string }) {
+ return (
+ <div className="mx-auto my-12 sm:my-16 flex max-w-xl flex-col items-center gap-4 md:gap-6">
+ <div className="flex flex-col text-center gap-4 md:gap-6">
+ <h1 className="font-cal text-5xl leading-tight md:text-6xl">{title}</h1>
+ <h2 className="mx-auto max-w-md text-xl text-muted-foreground md:max-w-xl md:text-2xl">
+ {description}
+ </h2>
+ </div>
+ <div className="flex gap-2">
+ <Button className="rounded-full" asChild>
+ <Link href="/app/login">Get Started</Link>
+ </Button>
+ <Button variant="outline" className="rounded-full" asChild>
+ <a href="/cal" rel="noreferrer" target="_blank">
+ Book a demo
+ </a>
+ </Button>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/app/(content)/compare/[slug]/page.tsx b/apps/web/src/app/(content)/compare/[slug]/page.tsx
index 377e1c3c2..efba80677 100644
--- a/apps/web/src/app/(content)/compare/[slug]/page.tsx
+++ b/apps/web/src/app/(content)/compare/[slug]/page.tsx
@@ -4,6 +4,7 @@ import {
twitterMetadata,
} from "@/app/shared-metadata";
import { Shell } from "@/components/dashboard/shell";
+import { BookingBanner } from "@/components/marketing/banner/booking-banner";
import { FAQs } from "@/components/marketing/faqs";
import { PricingSlider } from "@/components/marketing/pricing/pricing-slider";
import { alternativesConfig as config } from "@/config/alternatives";
@@ -15,7 +16,6 @@ import {
BreadcrumbPage,
BreadcrumbSeparator,
} from "@openstatus/ui/src/components/breadcrumb";
-import { Button } from "@openstatus/ui/src/components/button";
import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
@@ -38,7 +38,7 @@ export async function generateMetadata(props: {
const description = `Looking for a ${name} alternative? OpenStatus is an open-source alternative to ${name}. Try it out for free.`;
const encodedTitle = encodeURIComponent(title);
- // TODO: check if there is a better wording
+
const encodedDescription = encodeURIComponent(
"Compare both and pick what fits best to you.",
);
@@ -70,7 +70,6 @@ export async function generateMetadata(props: {
},
};
}
-// add to sitemap
export default async function Page({
params,
@@ -120,35 +119,7 @@ export default async function Page({
</div>
<ComparisonTable slug={slug} />
</Shell>
- <Shell className="flex flex-col gap-6 bg-muted md:flex-row md:items-center md:justify-between">
- <div>
- <p className="font-semibold text-2xl">
- Don't talk to Sales. Talk to Founders.
- </p>
- <p className="text-muted-foreground text-sm">
- We are here to help you with any questions or concerns you may
- have.
- </p>
- </div>
- <div className="flex gap-2">
- <Button className="rounded-full" variant="outline" asChild>
- <Link href="/app/login" className="text-nowrap">
- Start for free
- </Link>
- </Button>
- <Button className="rounded-full" asChild>
- <a
- target="_blank"
- rel="noreferrer"
- href="https://cal.com/team/openstatus/30min"
- className="text-nowrap"
- >
- Talk to us
- </a>
- </Button>
- </div>
- </Shell>
- {/* FIXME: responsive design */}
+ <BookingBanner />
<Shell className="w-full max-w-4xl">
<PricingSlider />
</Shell>
diff --git a/apps/web/src/app/(content)/features/_components/banner.tsx b/apps/web/src/app/(content)/features/_components/banner.tsx
deleted file mode 100644
index b201052e2..000000000
--- a/apps/web/src/app/(content)/features/_components/banner.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Shell } from "@/components/dashboard/shell";
-import { Button } from "@openstatus/ui/src/components/button";
-import Link from "next/link";
-
-export function Banner() {
- return (
- <Shell className="flex flex-col gap-6 md:flex-row md:items-center md:justify-between">
- <p className="max-w-xl font-medium text-lg">
- Learn how your services are performing over time, and notify your users
- of any issues.
- </p>
- <div className="flex items-center gap-2 self-end">
- <Button variant="outline" className="min-w-max rounded-full" asChild>
- <Link href="/cal">Book a call</Link>
- </Button>
- <Button className="min-w-max rounded-full" asChild>
- <Link href="/app/login">Get started</Link>
- </Button>
- </div>
- </Shell>
- );
-}
diff --git a/apps/web/src/app/(content)/features/_components/hero.tsx b/apps/web/src/app/(content)/features/_components/hero.tsx
deleted file mode 100644
index 7079afbca..000000000
--- a/apps/web/src/app/(content)/features/_components/hero.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import { cn } from "@/lib/utils";
-import type * as React from "react";
-
-interface HeroProps extends React.ComponentPropsWithoutRef<"div"> {
- title: string;
- subTitle: string;
-}
-
-export function Hero({ title, subTitle, className, ...props }: HeroProps) {
- return (
- <div
- className={cn(
- "mx-auto my-16 flex max-w-xl flex-col items-center gap-4",
- className,
- )}
- {...props}
- >
- <h1
- className={cn(
- "text-center font-cal text-5xl leading-tight",
- "bg-gradient-to-tl from-0% from-[hsl(var(--muted))] to-30% to-[hsl(var(--foreground))] bg-clip-text text-transparent",
- )}
- >
- {title}
- </h1>
- <h2 className="mx-auto max-w-md text-center text-lg text-muted-foreground md:max-w-xl md:text-xl">
- {subTitle}
- </h2>
- </div>
- );
-}
diff --git a/apps/web/src/app/(content)/features/monitoring/page.tsx b/apps/web/src/app/(content)/features/monitoring/page.tsx
deleted file mode 100644
index 09f9f8e74..000000000
--- a/apps/web/src/app/(content)/features/monitoring/page.tsx
+++ /dev/null
@@ -1,154 +0,0 @@
-import {
- defaultMetadata,
- ogMetadata,
- twitterMetadata,
-} from "@/app/shared-metadata";
-import { Mdx } from "@/components/content/mdx";
-import { Chart } from "@/components/monitor-charts/chart";
-import { RegionsPreset } from "@/components/monitor-dashboard/region-preset";
-import { ResponseDetailTabs } from "@/components/ping-response-analysis/response-detail-tabs";
-import { marketingProductPagesConfig } from "@/config/pages";
-import { type Region, flyRegions } from "@openstatus/db/src/schema/constants";
-import { Button } from "@openstatus/ui/src/components/button";
-import { Skeleton } from "@openstatus/ui/src/components/skeleton";
-import { allUnrelateds } from "content-collections";
-import type { Metadata } from "next";
-import Link from "next/link";
-import { Suspense } from "react";
-import { AssertionsTimingFormExample } from "../_components/assertions-timing-form-example";
-import { Banner } from "../_components/banner";
-import { Hero } from "../_components/hero";
-import { InteractiveFeature } from "../_components/interactive-feature";
-import { mockChartData, mockResponseData } from "../mock";
-
-const { description, subtitle } = marketingProductPagesConfig[0];
-const code = allUnrelateds.find(
- (unrelated) => unrelated.slug === "ci-cd-features-block",
-);
-
-export const metadata: Metadata = {
- ...defaultMetadata,
- title: "API & Website Monitoring",
- description:
- "Get insights of the latency of your API and website from all over the world.",
- twitter: {
- ...twitterMetadata,
- title: "API & Website Monitoring",
- description:
- "Get insights of the latency of your API and website from all over the world.",
- },
- openGraph: {
- ...ogMetadata,
- title: "API & Website Monitoring",
- description:
- "Get insights of the latency of your API and website from all over the world.",
- },
-};
-
-export default function FeaturePage() {
- return (
- <div className="grid w-full gap-12">
- <Hero title={description} subTitle={subtitle} />
- <InteractiveFeature
- icon="activity"
- iconText="Website & API monitoring"
- title="Global Monitoring."
- subTitle="Get insights of the latency worldwide."
- component={
- <Suspense fallback={<Skeleton />}>
- <div className="m-auto">
- <RegionsPreset
- regions={flyRegions as unknown as Region[]}
- selectedRegions={flyRegions as unknown as Region[]}
- />
- </div>
- </Suspense>
- }
- col={1}
- position={"left"}
- />
- <InteractiveFeature
- icon="book-open-check"
- iconText="Timing & Assertions"
- title="Validate the response."
- subTitle="Check the return value, status code, header or maximum response time."
- component={
- <Suspense fallback={<Skeleton />}>
- <AssertionsTimingFormExample />{" "}
- </Suspense>
- }
- col={2}
- position={"left"}
- withGradient
- />
- <InteractiveFeature
- icon="timer"
- iconText="Request Metrics Insights"
- title="Optimize Web Performance."
- subTitle="Analyze DNS, TCP, TLS, and TTFB for every request and inspect Response Headers as needed."
- component={
- <Suspense fallback={<Skeleton />}>
- <ResponseDetailTabs
- {...mockResponseData}
- defaultOpen="timing"
- hideInfo={false}
- />
- </Suspense>
- }
- col={2}
- position={"left"}
- withGradient
- />
- <InteractiveFeature
- icon="line-chart"
- iconText="Charts"
- title="Opinionated Dashboard."
- subTitle="Keep an overview about Uptime, P50, P75, P90, P95, P99 of your monitors."
- action={
- <div className="mt-2">
- <Button variant="outline" className="rounded-full" asChild>
- <Link href="/public/monitors/1">Public Dashboard</Link>
- </Button>
- </div>
- }
- component={
- <Suspense fallback={"loading..."}>
- <Chart {...mockChartData} />
- </Suspense>
- }
- col={2}
- position={"top"}
- withGradient
- />
- <InteractiveFeature
- icon="bot"
- iconText="API Monitoring"
- title="Synthetic Monitoring."
- subTitle="Run your check in your CI/CD pipeline or on demand."
- component={
- code ? (
- <Mdx
- code={code.mdx}
- className="max-w-none prose-pre:overflow-hidden"
- />
- ) : (
- <p>Code not found</p>
- )
- }
- action={
- <div className="mt-2">
- <Button variant="outline" className="rounded-full" asChild>
- <Link href="https://docs.openstatus.dev/cli/getting-started">
- How-to
- </Link>
- </Button>
- </div>
- }
- col={2}
- position={"bottom"}
- withGradient
- />
- <Banner />
- </div>
- );
-}
diff --git a/apps/web/src/app/(content)/features/status-page/page.tsx b/apps/web/src/app/(content)/features/status-page/page.tsx
deleted file mode 100644
index 60180e513..000000000
--- a/apps/web/src/app/(content)/features/status-page/page.tsx
+++ /dev/null
@@ -1,143 +0,0 @@
-import {
- defaultMetadata,
- ogMetadata,
- twitterMetadata,
-} from "@/app/shared-metadata";
-import { PasswordFormSuspense } from "@/app/status-page/[domain]/_components/password-form";
-import { SubscribeButton } from "@/app/status-page/[domain]/_components/subscribe-button";
-import { MaintenanceContainer } from "@/components/status-page/maintenance";
-import { StatusCheck } from "@/components/status-page/status-check";
-import { StatusReport } from "@/components/status-page/status-report";
-import { marketingProductPagesConfig } from "@/config/pages";
-import { Button, InputWithAddons } from "@openstatus/ui";
-import type { Metadata } from "next";
-import Link from "next/link";
-import { Banner } from "../_components/banner";
-import { Hero } from "../_components/hero";
-import { InteractiveFeature } from "../_components/interactive-feature";
-import { TrackerWithVisibilityToggle } from "../_components/tracker-example";
-import { maintenanceData, statusReportData } from "../mock";
-
-const { description, subtitle } = marketingProductPagesConfig[1];
-
-export const metadata: Metadata = {
- ...defaultMetadata,
- title: "Status Page",
- description:
- "Easily report to your users with our public or private status page.",
- twitter: {
- ...twitterMetadata,
- title: "Status Page",
- description:
- "Easily report to your users with our public or private status page.",
- },
- openGraph: {
- ...ogMetadata,
- title: "Status Page",
- description:
- "Easily report to your users with our public or private status page.",
- },
-};
-
-export default function FeaturePage() {
- return (
- <div className="grid w-full gap-12">
- <Hero title={description} subTitle={subtitle} />
- <InteractiveFeature
- icon="globe"
- iconText="Customize"
- title="Custom Domain."
- subTitle="Bring your own domain, give the status page a personal touch."
- component={
- <div className="m-auto">
- <InputWithAddons leading="https://" placeholder="status.acme.com" />
- </div>
- }
- col={1}
- position={"left"}
- />
- <InteractiveFeature
- icon="panel-top"
- iconText="Simple by default"
- title="Status page."
- subTitle="Connect your monitors and inform your users about the uptime."
- component={<TrackerWithVisibilityToggle />}
- col={2}
- position={"left"}
- />
- <InteractiveFeature
- icon="users"
- iconText="Reach your users"
- title="Subscriptions."
- subTitle="Let your users subscribe to your status page, to automatically receive updates about the status of your services."
- component={
- <div className="m-auto">
- <SubscribeButton plan="team" slug={""} isDemo />
- </div>
- }
- col={1}
- position={"left"}
- />
- <InteractiveFeature
- icon="search-check"
- iconText="Stay up to date"
- title="Status Updates."
- subTitle="Down't let your users in the dark and show what's wrong."
- component={
- <div className="-translate-y-6 m-auto scale-[0.80]">
- <StatusReport isDemo {...statusReportData} />
- </div>
- }
- col={1}
- position={"bottom"}
- withGradient
- />
- <InteractiveFeature
- icon="eye-off"
- iconText="Restrict access"
- title="Password Protection."
- subTitle="Hide your page to unexepected users."
- component={
- <div className="m-auto max-w-lg">
- <PasswordFormSuspense slug="" />
- </div>
- }
- col={2}
- position={"left"}
- />
- <InteractiveFeature
- icon="user"
- iconText="Keep it simple"
- title="Build trust."
- subTitle="Showcase your reliability to your users, and reduce the number of customer service tickets."
- component={<StatusCheck />}
- action={
- <div className="mt-2">
- <Button variant="outline" className="rounded-full" asChild>
- <Link href="https://status.openstatus.dev">Status Page</Link>
- </Button>
- </div>
- }
- col={2}
- position={"bottom"}
- />
- <InteractiveFeature
- icon="hammer"
- iconText="Handle migrations"
- title="Maintenance."
- subTitle="Mute your monitors for a specific period and inform the users about upcoming maintenance."
- component={
- <div className="m-auto scale-[0.80]">
- <MaintenanceContainer
- className="rounded-lg border-status-monitoring/10 bg-status-monitoring/5"
- {...maintenanceData}
- />
- </div>
- }
- col={2}
- position={"left"}
- />
- <Banner />
- </div>
- );
-}
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts
index 12aea84a8..b6efa3b69 100644
--- a/apps/web/src/app/sitemap.ts
+++ b/apps/web/src/app/sitemap.ts
@@ -1,4 +1,5 @@
import { alternativesConfig } from "@/config/alternatives";
+import { landingsConfig } from "@/config/landings";
import { allChangelogs, allPosts } from "content-collections";
import type { MetadataRoute } from "next";
@@ -20,14 +21,17 @@ export default function sitemap(): MetadataRoute.Sitemap {
lastModified: new Date(),
}));
+ const landings = Object.keys(landingsConfig).map((slug) => ({
+ url: `https://www.openstatus.dev/${slug}`,
+ lastModified: new Date(),
+ }));
+
const routes = [
"/",
"/about",
"/app/login",
"/blog",
"/changelog",
- "/features/status-page",
- "/features/monitoring",
"/play",
"/play/checker",
"/play/curl",
@@ -38,5 +42,5 @@ export default function sitemap(): MetadataRoute.Sitemap {
lastModified: new Date(),
}));
- return [...routes, ...blogs, ...changelogs, ...comparisons];
+ return [...routes, ...blogs, ...changelogs, ...comparisons, ...landings];
}
diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsx
index 3a2c44e15..53e900871 100644
--- a/apps/web/src/components/icons.tsx
+++ b/apps/web/src/components/icons.tsx
@@ -12,6 +12,7 @@ import {
Check,
Clock,
Cog,
+ Command,
Copy,
CreditCard,
Eye,
@@ -43,6 +44,7 @@ import {
Play,
Plug,
Puzzle,
+ Radar,
Ratio,
Search,
SearchCheck,
@@ -133,6 +135,8 @@ export const Icons = {
"book-open-check": BookOpenCheck,
info: Info,
server: Server,
+ command: Command,
+ radar: Radar,
discord: ({ ...props }: LucideProps) => (
<svg viewBox="0 0 640 512" {...props}>
<path
diff --git a/apps/web/src/components/layout/marketing-footer.tsx b/apps/web/src/components/layout/marketing-footer.tsx
index 09eceb606..ff7a96089 100644
--- a/apps/web/src/components/layout/marketing-footer.tsx
+++ b/apps/web/src/components/layout/marketing-footer.tsx
@@ -3,6 +3,7 @@ import Link from "next/link";
import { ThemeToggle } from "@/components/theme/theme-toggle";
import { alternativesConfig } from "@/config/alternatives";
+import { landingsConfig } from "@/config/landings";
import { socialsConfig } from "@/config/socials";
import { cn } from "@/lib/utils";
import { Shell } from "../dashboard/shell";
@@ -18,8 +19,8 @@ export function MarketingFooter({ className }: Props) {
return (
<footer className={cn("w-full", className)}>
<Shell className="grid gap-6">
- <div className="grid grid-cols-1 gap-6 sm:grid-cols-3 md:grid-cols-11">
- <div className="col-span-2 flex flex-col gap-3 md:col-span-3">
+ <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-5 md:grid-rows-2">
+ <div className="col-span-1 flex flex-col gap-3 md:col-span-2 md:row-span-2">
<div>
<BrandName />
<p className="mt-2 max-w-md font-light text-muted-foreground text-sm">
@@ -33,15 +34,19 @@ export function MarketingFooter({ className }: Props) {
</div>
<StatusWidgetContainer slug="status" />
</div>
- <div className="col-span-2 flex flex-col gap-3 text-sm sm:col-span-1 md:col-span-2">
- <p className="font-semibold text-foreground">Resources</p>
- <FooterLink href="/blog" label="Blog" />
- <FooterLink href="/pricing" label="Pricing" />
- <FooterLink href="https://docs.openstatus.dev" label="Docs" />
- <FooterLink href="/oss-friends" label="OSS Friends" />
- <FooterLink href="/status" label="External Providers Monitoring" />
+ <div className="col-span-1 flex flex-col gap-3 text-sm">
+ <p className="font-semibold text-foreground">Product</p>
+ {Object.keys(landingsConfig).map((slug) => (
+ <FooterLink
+ key={slug}
+ href={`/${slug}`}
+ label={
+ landingsConfig[slug as keyof typeof landingsConfig].title
+ }
+ />
+ ))}
</div>
- <div className="col-span-2 flex flex-col gap-3 text-sm sm:col-span-1 md:col-span-2">
+ <div className="col-span-1 flex flex-col gap-3 text-sm">
<p className="font-semibold text-foreground">Compare</p>
{Object.keys(alternativesConfig).map((slug) => (
<FooterLink
@@ -54,14 +59,22 @@ export function MarketingFooter({ className }: Props) {
/>
))}
</div>
- <div className="col-span-2 flex flex-col gap-3 text-sm sm:col-span-1 md:col-span-2">
+ <div className="col-span-1 flex flex-col gap-3 text-sm">
<p className="font-semibold text-foreground">Company</p>
<FooterLink href="/about" label="About" />
<FooterLink href="/changelog" label="Changelog" />
<FooterLink href="/legal/terms" label="Terms" />
<FooterLink href="/legal/privacy" label="Privacy" />
</div>
- <div className="col-span-2 flex flex-col gap-3 text-sm sm:col-span-1 md:col-span-2">
+ <div className="col-span-1 flex flex-col gap-3 text-sm">
+ <p className="font-semibold text-foreground">Resources</p>
+ <FooterLink href="/blog" label="Blog" />
+ <FooterLink href="/pricing" label="Pricing" />
+ <FooterLink href="https://docs.openstatus.dev" label="Docs" />
+ <FooterLink href="/oss-friends" label="OSS Friends" />
+ <FooterLink href="/status" label="External Providers Monitoring" />
+ </div>
+ <div className="col-span-1 flex flex-col gap-3 text-sm">
<p className="font-semibold text-foreground">Tools</p>
<FooterLink href="/play" label="Playground" />
<FooterLink href="/play/checker" label="Speed Checker" />
diff --git a/apps/web/src/components/marketing/banner/booking-banner.tsx b/apps/web/src/components/marketing/banner/booking-banner.tsx
new file mode 100644
index 000000000..fc4dafdf7
--- /dev/null
+++ b/apps/web/src/components/marketing/banner/booking-banner.tsx
@@ -0,0 +1,31 @@
+import { Button } from "@openstatus/ui";
+import Link from "next/link";
+import { GenericBanner } from "./generic-banner";
+
+export function BookingBanner() {
+ return (
+ <GenericBanner
+ title="Don't talk to Sales. Talk to Founders."
+ description="We are here to help you with any questions or concerns you may have."
+ actions={
+ <div className="flex gap-2">
+ <Button className="rounded-full" variant="outline" asChild>
+ <Link href="/app/login" className="text-nowrap">
+ Start for free
+ </Link>
+ </Button>
+ <Button className="rounded-full" asChild>
+ <a
+ target="_blank"
+ rel="noreferrer"
+ href="https://cal.com/team/openstatus/30min"
+ className="text-nowrap"
+ >
+ Talk to us
+ </a>
+ </Button>
+ </div>
+ }
+ />
+ );
+}
diff --git a/apps/web/src/components/marketing/banner/enterprise-banner.tsx b/apps/web/src/components/marketing/banner/enterprise-banner.tsx
new file mode 100644
index 000000000..361125935
--- /dev/null
+++ b/apps/web/src/components/marketing/banner/enterprise-banner.tsx
@@ -0,0 +1,31 @@
+import { Button } from "@openstatus/ui";
+import Link from "next/link";
+import { GenericBanner } from "./generic-banner";
+
+export function EnterpriseBanner() {
+ return (
+ <GenericBanner
+ title="Looking for an enterprise solution?"
+ description="We offer custom solutions for large organizations."
+ actions={
+ <div className="flex gap-2">
+ <Button className="rounded-full" variant="outline" asChild>
+ <Link href="/app/login" className="text-nowrap">
+ Start for free
+ </Link>
+ </Button>
+ <Button className="rounded-full" asChild>
+ <a
+ target="_blank"
+ rel="noreferrer"
+ href="https://cal.com/team/openstatus/30min"
+ className="text-nowrap"
+ >
+ Book a call
+ </a>
+ </Button>
+ </div>
+ }
+ />
+ );
+}
diff --git a/apps/web/src/components/marketing/banner/generic-banner.tsx b/apps/web/src/components/marketing/banner/generic-banner.tsx
new file mode 100644
index 000000000..1f64bda6c
--- /dev/null
+++ b/apps/web/src/components/marketing/banner/generic-banner.tsx
@@ -0,0 +1,33 @@
+import { Shell } from "@/components/dashboard/shell";
+import { cn } from "@/lib/utils";
+
+interface GenericBannerProps {
+ title: string;
+ description: string;
+ className?: string;
+ actions: React.ReactNode;
+}
+
+export function GenericBanner({
+ title,
+ description,
+ className,
+ actions,
+}: GenericBannerProps) {
+ return (
+ <Shell
+ className={cn(
+ "flex flex-col gap-3 bg-accent/50 md:flex-row md:items-center md:justify-between",
+ className,
+ )}
+ >
+ <div>
+ <p className="font-semibold text-lg md:text-xl">{title}</p>
+ <p className="text-muted-foreground text-sm md:text-base">
+ {description}
+ </p>
+ </div>
+ {actions}
+ </Shell>
+ );
+}
diff --git a/apps/web/src/components/marketing/banner/speed-banner.tsx b/apps/web/src/components/marketing/banner/speed-banner.tsx
new file mode 100644
index 000000000..6a1199e68
--- /dev/null
+++ b/apps/web/src/components/marketing/banner/speed-banner.tsx
@@ -0,0 +1,35 @@
+import { Button } from "@openstatus/ui";
+import Link from "next/link";
+import { SpeedCheckerButton } from "../speed-checker-button";
+import { GenericBanner } from "./generic-banner";
+
+const config = {
+ exploratory: {
+ title: "Type. Submit. Discover.",
+ description: "See how fast your API really is - in real time.",
+ },
+ dev: {
+ title: "Call. Measuer. Improve.",
+ description: "Benchmark your API speed with OpenStatus.",
+ },
+};
+
+export function SpeedBanner() {
+ const { title, description } = config.exploratory;
+ return (
+ <GenericBanner
+ title={title}
+ description={description}
+ actions={
+ <div className="flex gap-2">
+ <Button className="rounded-full" variant="outline" asChild>
+ <Link href="/app/login" className="text-nowrap">
+ Start for free
+ </Link>
+ </Button>
+ <SpeedCheckerButton />
+ </div>
+ }
+ />
+ );
+}
diff --git a/apps/web/src/app/(content)/features/_components/assertions-timing-form-example.tsx b/apps/web/src/components/marketing/feature/assertions-timing-form-example.tsx
similarity index 100%
rename from apps/web/src/app/(content)/features/_components/assertions-timing-form-example.tsx
rename to apps/web/src/components/marketing/feature/assertions-timing-form-example.tsx
diff --git a/apps/web/src/components/marketing/feature/index.tsx b/apps/web/src/components/marketing/feature/index.tsx
new file mode 100644
index 000000000..5d58a1e67
--- /dev/null
+++ b/apps/web/src/components/marketing/feature/index.tsx
@@ -0,0 +1,556 @@
+import { PasswordFormSuspense } from "@/app/status-page/[domain]/_components/password-form";
+import { SubscribeButton } from "@/app/status-page/[domain]/_components/subscribe-button";
+import { Mdx } from "@/components/content/mdx";
+import { Chart } from "@/components/monitor-charts/chart";
+import { RegionsPreset } from "@/components/monitor-dashboard/region-preset";
+import { ResponseDetailTabs } from "@/components/ping-response-analysis/response-detail-tabs";
+import { MaintenanceContainer } from "@/components/status-page/maintenance";
+import { StatusCheck } from "@/components/status-page/status-check";
+import { StatusReport } from "@/components/status-page/status-report";
+import { Tracker } from "@/components/tracker/tracker";
+import type { Region } from "@openstatus/db/src/schema/constants";
+import { flyRegions } from "@openstatus/db/src/schema/constants";
+import { Button, InputWithAddons } from "@openstatus/ui";
+import { Skeleton } from "@openstatus/ui/src/components/skeleton";
+import { allUnrelateds } from "content-collections";
+import Link from "next/link";
+import { Suspense } from "react";
+import { AssertionsTimingFormExample } from "./assertions-timing-form-example";
+import {
+ InteractiveFeature,
+ type InteractiveFeatureProps,
+} from "./interactive-feature";
+import {
+ maintenanceData,
+ mockChartData,
+ mockResponseData,
+ mockTrackerData,
+ statusReportData,
+} from "./mock";
+import { NotificationsFormExample } from "./notifications-form-example";
+import { RaycastExample } from "./raycast-example";
+import { TrackerWithVisibilityToggle } from "./tracker-example";
+
+export { BookingBanner } from "../banner/booking-banner";
+export { SpeedBanner } from "../banner/speed-banner";
+
+export function FeatureTimingAssertions(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="book-open-check"
+ iconText="Timing & Assertions"
+ title="Validate the response."
+ subTitle="Check the return value, status code, header or maximum response time."
+ component={
+ <div className="origin-top scale-[0.80]">
+ <Suspense fallback={<Skeleton />}>
+ <AssertionsTimingFormExample />
+ </Suspense>
+ </div>
+ }
+ col={2}
+ position={props.position || "left"}
+ withGradient
+ />
+ );
+}
+
+export function FeatureNotifications(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="bell"
+ iconText="Notifications"
+ title="Integrate your channels."
+ subTitle="Get notified when your services are down. Slack, Discord, Email, and more."
+ component={
+ <div className="scale-[0.80] my-auto">
+ <NotificationsFormExample />
+ </div>
+ }
+ col={2}
+ position={props.position || "right"}
+ />
+ );
+}
+
+export function FeatureStatusPageTracker(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="panel-top"
+ iconText="Simple by default"
+ title="Status page."
+ subTitle="Connect your monitors and inform your users about the uptime."
+ component={
+ <div className="my-auto">
+ <Tracker
+ data={mockTrackerData}
+ name="OpenStatus"
+ description="Website Health"
+ showValues
+ />
+ </div>
+ }
+ col={2}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureCharts(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="line-chart"
+ iconText="Charts"
+ title="Opinionated Dashboard."
+ subTitle="Keep an overview about Uptime, P50, P75, P90, P95, P99 of your monitors. Share it with your team or make it public."
+ action={
+ <div className="mt-2">
+ <Button variant="outline" className="rounded-full" asChild>
+ <Link href="/public/monitors/1">Public Dashboard</Link>
+ </Button>
+ </div>
+ }
+ component={
+ <div className="origin-top my-auto scale-[0.80]">
+ <Suspense fallback={<Skeleton />}>
+ <Chart {...mockChartData} />
+ </Suspense>
+ </div>
+ }
+ col={2}
+ position={props.position || "top"}
+ withGradient
+ />
+ );
+}
+
+export function FeatureCustomDomain(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="globe"
+ iconText="Customize"
+ title="Custom Domain."
+ subTitle="Bring your own domain, give the status page a personal touch."
+ component={
+ <div className="m-auto">
+ <InputWithAddons leading="https://" placeholder="status.acme.com" />
+ </div>
+ }
+ col={1}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureStatusPageTrackerToggle(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="panel-top"
+ iconText="Simple by default"
+ title="Status page."
+ subTitle="Connect your monitors and inform your users about the uptime."
+ component={<TrackerWithVisibilityToggle />}
+ col={2}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureSubscriptions(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="users"
+ iconText="Reach your users"
+ title="Subscriptions."
+ subTitle="Let your users subscribe to your status page, to automatically receive updates about the status of your services."
+ component={
+ <div className="m-auto">
+ <SubscribeButton plan="team" slug={""} isDemo />
+ </div>
+ }
+ col={1}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureStatusUpdates(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="search-check"
+ iconText="Stay up to date"
+ title="Status Updates."
+ subTitle="Down't let your users in the dark and show what's wrong."
+ component={
+ <div className="my-auto origin-top scale-[0.80]">
+ <StatusReport isDemo {...statusReportData} />
+ </div>
+ }
+ col={1}
+ position={props.position || "bottom"}
+ withGradient
+ />
+ );
+}
+
+export function FeaturePasswordProtection(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="eye-off"
+ iconText="Restrict access"
+ title="Password Protection."
+ subTitle="Hide your page to unexepected users."
+ component={
+ <div className="m-auto max-w-lg">
+ <PasswordFormSuspense slug="" />
+ </div>
+ }
+ col={2}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureOperationalBanner(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="user"
+ iconText="Keep it simple"
+ title="Build trust."
+ subTitle="Showcase your reliability to your users, and reduce the number of customer service tickets."
+ component={<StatusCheck />}
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <Link href="https://status.openstatus.dev">Status Page</Link>
+ </Button>
+ }
+ col={2}
+ position={props.position || "bottom"}
+ />
+ );
+}
+
+export function FeatureMaintenance(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="hammer"
+ iconText="Handle migrations"
+ title="Maintenance."
+ subTitle="Mute your monitors for a specific period and inform the users about upcoming maintenance."
+ component={
+ <div className="my-auto scale-[0.80]">
+ <MaintenanceContainer
+ className="rounded-lg border-status-monitoring/10 bg-status-monitoring/5"
+ {...maintenanceData}
+ />
+ </div>
+ }
+ col={2}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureRegions(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="activity"
+ iconText="Website & API monitoring"
+ title="Global Monitoring."
+ subTitle="Get insights of the latency worldwide."
+ component={
+ <Suspense fallback={<Skeleton />}>
+ <div className="m-auto">
+ <RegionsPreset
+ regions={flyRegions as unknown as Region[]}
+ selectedRegions={flyRegions as unknown as Region[]}
+ />
+ </div>
+ </Suspense>
+ }
+ col={1}
+ position={props.position || "left"}
+ />
+ );
+}
+
+export function FeatureResponseDetails(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="timer"
+ iconText="Request Metrics Insights"
+ title="Optimize Web Performance."
+ subTitle="Analyze DNS, TCP, TLS, and TTFB for every request and inspect Response Headers as needed."
+ component={
+ <div className="scale-[0.80] origin-top">
+ <Suspense fallback={<Skeleton />}>
+ <ResponseDetailTabs
+ {...mockResponseData}
+ defaultOpen="timing"
+ hideInfo={false}
+ />
+ </Suspense>
+ </div>
+ }
+ col={2}
+ position={props.position || "left"}
+ withGradient
+ />
+ );
+}
+
+export function FeatureRaycastIntegration(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ return (
+ <InteractiveFeature
+ icon="command"
+ iconText="Raycast"
+ title="Command K."
+ subTitle="Check status pages and incidents without leaving your flow."
+ component={<RaycastExample />}
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://www.raycast.com/thibaultleouay/openstatus"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Raycast Store
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "left"}
+ />
+ );
+}
+
+const blockCICD = allUnrelateds.find(
+ (unrelated) => unrelated.slug === "ci-cd-features-block",
+);
+
+export function FeatureAPIMonitoring(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ if (!blockCICD) {
+ throw new Error("CI/CD block not found");
+ }
+
+ return (
+ <InteractiveFeature
+ icon="bot"
+ iconText="API Monitoring"
+ title="On Demand Checks."
+ subTitle="Run your check in your CI/CD pipeline or via the CLI."
+ component={
+ <Mdx
+ code={blockCICD.mdx}
+ className="max-w-none prose-pre:overflow-hidden"
+ />
+ }
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://docs.openstatus.dev/cli/getting-started"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Getting Started
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "bottom"}
+ withGradient
+ />
+ );
+}
+
+const blockTerraform = allUnrelateds.find(
+ (unrelated) => unrelated.slug === "terraform-provider-block",
+);
+
+export function FeatureTerraformProvider(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ if (!blockTerraform) {
+ throw new Error("Terraform block not found");
+ }
+
+ return (
+ <InteractiveFeature
+ icon="bot"
+ iconText="Terraform Provider"
+ title="Infra as Code."
+ subTitle="Use Terraform to manage your monitors."
+ component={
+ <Mdx
+ code={blockTerraform.mdx}
+ className="max-w-none prose-pre:overflow-hidden"
+ />
+ }
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://registry.terraform.io/providers/openstatusHQ/openstatus/latest"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Terraform Registry
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "bottom"}
+ withGradient
+ />
+ );
+}
+
+const blockGitHubAction = allUnrelateds.find(
+ (unrelated) => unrelated.slug === "github-action-block",
+);
+
+export function FeatureGitHubAction(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ if (!blockGitHubAction) {
+ throw new Error("GitHub Action block not found");
+ }
+
+ return (
+ <InteractiveFeature
+ icon="bot"
+ iconText="GitHub Action"
+ title="CI/CD pipeline."
+ subTitle="Run your check on demand or in your workflows."
+ className="max-h-max"
+ component={
+ <Mdx
+ code={blockGitHubAction.mdx}
+ className="max-w-none prose-pre:overflow-hidden"
+ />
+ }
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://github.com/marketplace/actions/openstatus-synthetics-ci"
+ rel="noreferrer"
+ target="_blank"
+ >
+ GitHub Action Marketplace
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "bottom"}
+ />
+ );
+}
+
+export function FeatureCLI(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ const blockCLI = allUnrelateds.find(
+ (unrelated) => unrelated.slug === "cli-block",
+ );
+
+ if (!blockCLI) {
+ throw new Error("CLI block not found");
+ }
+ return (
+ <InteractiveFeature
+ icon="terminal"
+ iconText="CLI"
+ title="Run everywhere."
+ subTitle="Check your monitors from your favorite terminal."
+ component={
+ <Mdx
+ code={blockCLI.mdx}
+ className="max-w-none prose-pre:overflow-hidden my-auto"
+ />
+ }
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://docs.openstatus.dev/cli/getting-started"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Getting Started
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "right"}
+ />
+ );
+}
+
+const blockOpenTelemetry = allUnrelateds.find(
+ (unrelated) => unrelated.slug === "otel-block",
+);
+
+export function FeatureOpenTelemetry(
+ props: Partial<Pick<InteractiveFeatureProps, "position">>,
+) {
+ if (!blockOpenTelemetry) {
+ throw new Error("OpenTelemetry block not found");
+ }
+
+ return (
+ <InteractiveFeature
+ icon="radar"
+ iconText="OpenTelemetry"
+ title="Track every request."
+ subTitle="Visualize how requests flow through your system using OpenTelemetry tracing."
+ component={
+ <Mdx
+ code={blockOpenTelemetry.mdx}
+ className="max-w-none prose-pre:overflow-hidden"
+ />
+ }
+ action={
+ <Button variant="outline" className="rounded-full w-max" asChild>
+ <a
+ href="https://docs.openstatus.dev/monitoring/opentelemetry"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Documentation
+ </a>
+ </Button>
+ }
+ col={2}
+ position={props.position || "top"}
+ withGradient
+ />
+ );
+}
diff --git a/apps/web/src/app/(content)/features/_components/interactive-feature.tsx b/apps/web/src/components/marketing/feature/interactive-feature.tsx
similarity index 95%
rename from apps/web/src/app/(content)/features/_components/interactive-feature.tsx
rename to apps/web/src/components/marketing/feature/interactive-feature.tsx
index 5d84a0977..4f5b8b06d 100644
--- a/apps/web/src/app/(content)/features/_components/interactive-feature.tsx
+++ b/apps/web/src/components/marketing/feature/interactive-feature.tsx
@@ -22,7 +22,7 @@ const containerVariant = cva(
},
);
-interface InteractiveFeatureProps
+export interface InteractiveFeatureProps
extends React.ComponentPropsWithoutRef<"div"> {
component: React.ReactNode;
icon: ValidIcon;
@@ -50,6 +50,7 @@ export function InteractiveFeature({
position,
col,
withGradient = false,
+ className,
}: InteractiveFeatureProps) {
const Component = component;
const isSingleCol = ["top", "bottom"].includes(position);
@@ -86,6 +87,7 @@ export function InteractiveFeature({
: "left",
}),
"relative",
+ className,
)}
>
{Component}
@@ -131,7 +133,7 @@ function FeatureCardContentContainer({
function FeatureSubheader({ icon, text }: { icon: ValidIcon; text: string }) {
const Icon = Icons[icon];
return (
- <h3 className="flex items-center gap-2 text-muted-foreground">
+ <h3 className="flex items-center gap-2 text-muted-foreground text-sm md:text-base">
<Icon className="h-4 w-4 text-foreground" />
{text}
</h3>
@@ -144,7 +146,7 @@ interface FeatureTitleProps
function FeatureTitle({ strong, regular }: FeatureTitleProps) {
return (
- <p className="text-muted-foreground text-xl">
+ <p className="text-muted-foreground text-lg md:text-xl">
<strong className="font-medium text-foreground">{strong}</strong>{" "}
{regular}
</p>
diff --git a/apps/web/src/app/(content)/features/mock.ts b/apps/web/src/components/marketing/feature/mock.ts
similarity index 100%
rename from apps/web/src/app/(content)/features/mock.ts
rename to apps/web/src/components/marketing/feature/mock.ts
diff --git a/apps/web/src/components/marketing/feature/notifications-form-example.tsx b/apps/web/src/components/marketing/feature/notifications-form-example.tsx
new file mode 100644
index 000000000..b7b0201d2
--- /dev/null
+++ b/apps/web/src/components/marketing/feature/notifications-form-example.tsx
@@ -0,0 +1,40 @@
+"use client";
+
+import { SectionNotifications } from "@/components/forms/monitor/section-notifications";
+import { zodResolver } from "@hookform/resolvers/zod";
+import {
+ type InsertMonitor,
+ type Notification,
+ insertMonitorSchema,
+} from "@openstatus/db/src/schema";
+import { Form } from "@openstatus/ui";
+import { useForm } from "react-hook-form";
+
+const notifications: Notification[] = (
+ [
+ { name: "Team", provider: "email" },
+ { name: "#alerts", provider: "discord" },
+ { name: "#alerts", provider: "slack" },
+ ] as const
+).map((n, i) => ({
+ ...n,
+ id: i,
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ workspaceId: 1,
+ data: "",
+}));
+
+export function NotificationsFormExample() {
+ const form = useForm<InsertMonitor>({
+ resolver: zodResolver(insertMonitorSchema),
+ defaultValues: {
+ notifications: [0],
+ },
+ });
+ return (
+ <Form {...form}>
+ <SectionNotifications form={form} notifications={notifications} />
+ </Form>
+ );
+}
diff --git a/apps/web/src/components/marketing/feature/raycast-example.tsx b/apps/web/src/components/marketing/feature/raycast-example.tsx
new file mode 100644
index 000000000..57874f9bf
--- /dev/null
+++ b/apps/web/src/components/marketing/feature/raycast-example.tsx
@@ -0,0 +1,43 @@
+import {
+ Command,
+ CommandEmpty,
+ CommandGroup,
+ CommandInput,
+ CommandItem,
+ CommandList,
+} from "@openstatus/ui";
+import Image from "next/image";
+
+const commands = [
+ "Show Monitors",
+ "Create Status Report",
+ "Show Status Page",
+ "Create Status Report Update",
+ "Show Incidents",
+];
+
+export function RaycastExample() {
+ return (
+ <Command className="rounded-lg border shadow-md md:min-w-[450px]">
+ <CommandInput placeholder="Search for apps and commands..." />
+ <CommandList>
+ <CommandEmpty>No results found.</CommandEmpty>
+ <CommandGroup heading="Commands">
+ {commands.map((command) => (
+ <CommandItem key={command}>
+ <span className="relative mr-2">
+ <Image
+ src="/icon.png"
+ alt="OpenStatus"
+ width={16}
+ height={16}
+ />
+ </span>
+ <span>{command}</span>
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ );
+}
diff --git a/apps/web/src/app/(content)/features/_components/tracker-example.tsx b/apps/web/src/components/marketing/feature/tracker-example.tsx
similarity index 96%
rename from apps/web/src/app/(content)/features/_components/tracker-example.tsx
rename to apps/web/src/components/marketing/feature/tracker-example.tsx
index 8410dfe2a..3d08790a4 100644
--- a/apps/web/src/app/(content)/features/_components/tracker-example.tsx
+++ b/apps/web/src/components/marketing/feature/tracker-example.tsx
@@ -3,7 +3,7 @@
import { Tracker } from "@/components/tracker/tracker";
import { Checkbox } from "@openstatus/ui";
import { useState } from "react";
-import { mockTrackerData } from "../mock";
+import { mockTrackerData } from "./mock";
export function TrackerWithVisibilityToggle() {
const [visible, setVisible] = useState(true);
diff --git a/apps/web/src/config/landings.tsx b/apps/web/src/config/landings.tsx
new file mode 100644
index 000000000..0241c9a89
--- /dev/null
+++ b/apps/web/src/config/landings.tsx
@@ -0,0 +1,101 @@
+import type { ValidIcon } from "@/components/icons";
+import { EnterpriseBanner } from "@/components/marketing/banner/enterprise-banner";
+import {
+ BookingBanner,
+ FeatureAPIMonitoring,
+ FeatureCLI,
+ FeatureCharts,
+ FeatureCustomDomain,
+ FeatureGitHubAction,
+ FeatureMaintenance,
+ FeatureNotifications,
+ FeatureOpenTelemetry,
+ FeatureOperationalBanner,
+ FeaturePasswordProtection,
+ FeatureRaycastIntegration,
+ FeatureRegions,
+ FeatureResponseDetails,
+ FeatureStatusPageTracker,
+ FeatureStatusPageTrackerToggle,
+ FeatureStatusUpdates,
+ FeatureSubscriptions,
+ FeatureTerraformProvider,
+ FeatureTimingAssertions,
+ SpeedBanner,
+} from "@/components/marketing/feature";
+
+type Landing = {
+ title: string;
+ description: string;
+ icon: ValidIcon;
+ blocks: React.ReactNode[];
+};
+
+export const landingsConfig = {
+ "uptime-monitoring": {
+ icon: "activity",
+ title: "Uptime Monitoring",
+ description:
+ "Monitor your uptime and get notified when your services are down.",
+ blocks: [
+ <FeatureNotifications key="feature-notifications" />,
+ <SpeedBanner key="speed-banner" />,
+ <FeatureTimingAssertions key="feature-timing-assertions" />,
+ <FeatureStatusPageTracker key="feature-status-page-tracker" />,
+ <FeatureCharts key="feature-charts" />,
+ <FeatureRaycastIntegration key="feature-raycast-integration" />,
+ <BookingBanner key="booking-banner" />,
+ ],
+ },
+ "status-page": {
+ icon: "panel-top",
+ title: "Status Page",
+ description: "Create a status page to inform your users about the uptime.",
+ blocks: [
+ <FeatureCustomDomain key="feature-custom-domain" />,
+ <FeatureStatusPageTrackerToggle key="feature-status-page-tracker" />,
+ <FeatureSubscriptions key="feature-subscriptions" />,
+ <FeatureStatusUpdates key="feature-status-updates" />,
+ <FeaturePasswordProtection key="feature-password-protection" />,
+ <FeatureOperationalBanner key="feature-operational-banner" />,
+ <FeatureMaintenance key="feature-maintenance" />,
+ <FeatureRaycastIntegration
+ key="feature-raycast-integration"
+ position="right"
+ />,
+ <BookingBanner key="booking-banner" />,
+ ],
+ },
+ "synthetic-monitoring": {
+ icon: "network",
+ title: "Synthetic Monitoring",
+ description: "Proactively monitor your api and website globally.",
+ blocks: [
+ <FeatureRegions key="feature-regions" />,
+ <SpeedBanner key="speed-banner" />,
+ <FeatureTimingAssertions key="feature-timing-assertions" />,
+ <FeatureAPIMonitoring key="feature-api-monitoring" />,
+ <FeatureResponseDetails
+ key="feature-response-details"
+ position="right"
+ />,
+ <FeatureTerraformProvider key="feature-terraform-provider" />,
+ <BookingBanner key="booking-banner" />,
+ ],
+ },
+ "ci-cd": {
+ icon: "terminal",
+ title: "CI/CD Testing",
+ description:
+ "Run your synthetic checks in your CI/CD pipeline and export metrics to your observability stack.",
+ blocks: [
+ <FeatureGitHubAction key="feature-github-action" />,
+ <EnterpriseBanner key="enterprise-banner" />,
+ <FeatureAPIMonitoring key="feature-api-monitoring" />,
+ <FeatureCLI key="feature-cli" />,
+ <FeatureTerraformProvider key="feature-terraform-provider" />,
+ <FeatureOpenTelemetry key="feature-open-telemetry" />,
+ <BookingBanner key="booking-banner" />,
+ ],
+ },
+} satisfies Record<string, Landing>;
diff --git a/apps/web/src/config/pages.ts b/apps/web/src/config/pages.ts
index 95b7493f6..6b3d23a89 100644
--- a/apps/web/src/config/pages.ts
+++ b/apps/web/src/config/pages.ts
@@ -1,5 +1,7 @@
import type { ValidIcon } from "@/components/icons";
+import { landingsConfig } from "./landings";
+
export type Page = {
title: string;
subtitle?: string;
@@ -203,24 +205,17 @@ export const pagesConfig = [
type MarketingPageType = Page;
export const marketingProductPagesConfig = [
- {
- href: "/features/monitoring",
- title: "Synthetic Monitoring",
- subtitle:
- "Get insights of the latency of your API and website from all over the world.",
- description: "Monitor your API and website globally.",
- segment: "features",
- icon: "activity",
- },
- {
- href: "/features/status-page",
- title: "Status Page",
- subtitle:
- "Easily report to your users with our public or private status page.",
- description: "Create beautiful status pages within seconds.",
- segment: "features",
- icon: "panel-top",
- },
+ ...Object.entries(landingsConfig).map(
+ ([key, { title, description, icon }]) => {
+ return {
+ title,
+ href: `/${key}`,
+ description,
+ icon,
+ segment: "product",
+ };
+ },
+ ),
] as const satisfies MarketingPageType[];
export const marketingResourcePagesConfig = [
@@ -247,9 +242,9 @@ export const marketingResourcePagesConfig = [
},
{
href: "/compare",
- title: "Alternatives",
- description: "Compare OpenStatus with other services.",
- segment: "alternative",
+ title: "Compare",
+ description: "Discover how OpenStatus compares to other services.",
+ segment: "compare",
icon: "compare",
},
] as const satisfies Page[];
@@ -259,7 +254,7 @@ export const marketingPagesConfig = [
href: "/product",
title: "Product",
description: "All product features for OpenStatus",
- segment: "",
+ segment: "product",
icon: "package",
children: marketingProductPagesConfig,
},
diff --git a/apps/web/src/content/unrelated/ci-cd-features-block.mdx b/apps/web/src/content/unrelated/ci-cd-features-block.mdx
index 2570b4d96..42b1a0054 100644
--- a/apps/web/src/content/unrelated/ci-cd-features-block.mdx
+++ b/apps/web/src/content/unrelated/ci-cd-features-block.mdx
@@ -1,18 +1,12 @@
```ts
test("should fail if slow", async () => {
- const data = await fetch("https://api.openstatus.dev/v1/check", {
+ const data = await fetch("https://api.openstatus.dev/v1/monitor/:id/run", {
method: "POST",
- headers: {
- "Content-Type": "application/json",
- "x-openstatus-key": process.env.OPENSTATUS_API_KEY,
- },
- body: JSON.stringify({
- url: "https://openstat.us",
- method: "GET",
- regions: ["ams", "iad", "gru"],
- runCount: 5,
- aggregated: true,
- }),
+ headers: { "x-openstatus-key": process.env.OPENSTATUS_API_KEY },
});
+ const body = await data.json();
+
+ expect(body.status).toBe(200);
+ expect(body.latency).toBeLessThan(1000);
});
```
diff --git a/apps/web/src/content/unrelated/cli-block.mdx b/apps/web/src/content/unrelated/cli-block.mdx
new file mode 100644
index 000000000..693529484
--- /dev/null
+++ b/apps/web/src/content/unrelated/cli-block.mdx
@@ -0,0 +1,3 @@
+```bash
+openstatus monitors trigger [id]
+```
diff --git a/apps/web/src/content/unrelated/github-action-block.mdx b/apps/web/src/content/unrelated/github-action-block.mdx
new file mode 100644
index 000000000..418bd14a4
--- /dev/null
+++ b/apps/web/src/content/unrelated/github-action-block.mdx
@@ -0,0 +1,20 @@
+```yaml
+name: Run OpenStatus Synthetics CI
+
+on:
+ workflow_dispatch:
+ push:
+ branches: [main]
+
+jobs:
+ synthetic_ci:
+ runs-on: ubuntu-latest
+ name: Run OpenStatus Synthetics CI
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Run OpenStatus Synthetics CI
+ uses: openstatushq/openstatus-github-action@v1
+ with:
+ api_key: ${{ secrets.OPENSTATUS_API_KEY }}
+```
\ No newline at end of file
diff --git a/apps/web/src/content/unrelated/otel-block.mdx b/apps/web/src/content/unrelated/otel-block.mdx
new file mode 100644
index 000000000..1606a101f
--- /dev/null
+++ b/apps/web/src/content/unrelated/otel-block.mdx
@@ -0,0 +1,82 @@
+```json
+{
+ "resourceMetrics": [
+ {
+ "resource": {
+ "attributes": [
+ {
+ "key": "service.name",
+ "value": { "stringValue": "openstatus-synthetic-check" }
+ },
+ {
+ "key": "service.version",
+ "value": { "stringValue": "0.1.0" }
+ }
+ ]
+ },
+ "scopeMetrics": [
+ {
+ "scope": {
+ "name": "OpenStatus"
+ },
+ "metrics": [
+ {
+ "name": "openstatus.status",
+ "description": "Status of the check",
+ "unit": "1",
+ "sum": {
+ "dataPoints": [
+ {
+ "attributes": [
+ { "key": "openstatus.probes", "value": { "stringValue": "fra" } },
+ { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },
+ { "key": "http.response.status_code", "value": { "intValue": 200 } }
+ ],
+ "value": 1
+ }
+ ],
+ "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
+ "isMonotonic": true
+ }
+ },
+ {
+ "name": "openstatus.http.request.duration",
+ "description": "Duration of the check",
+ "unit": "ms",
+ "gauge": {
+ "dataPoints": [
+ {
+ "attributes": [
+ { "key": "openstatus.probes", "value": { "stringValue": "fra" } },
+ { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },
+ { "key": "http.response.status_code", "value": { "intValue": 200 } }
+ ],
+ "value": 431.12
+ }
+ ]
+ }
+ },
+ {
+ "name": "openstatus.http.dns.duration",
+ "description": "Duration of the dns lookup",
+ "unit": "ms",
+ "gauge": {
+ "dataPoints": [
+ {
+ "attributes": [
+ { "key": "openstatus.probes", "value": { "stringValue": "fra" } },
+ { "key": "openstatus.target", "value": { "stringValue": "https://acme.com" } },
+ { "key": "http.response.status_code", "value": { "intValue": 200 } }
+ ],
+ "value": 56.45
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
+```
\ No newline at end of file
diff --git a/apps/web/src/content/unrelated/terraform-provider-block.mdx b/apps/web/src/content/unrelated/terraform-provider-block.mdx
new file mode 100644
index 000000000..15d3c1fcc
--- /dev/null
+++ b/apps/web/src/content/unrelated/terraform-provider-block.mdx
@@ -0,0 +1,14 @@
+```hcl
+provider "openstatus" {
+ openstatus_api_token= "YOUR_API_TOKEN"
+}
+
+resource "openstatus_monitor" "my_monitor" {
+ url = "https://www.openstatus.dev"
+ regions= ["iad", "jnb"]
+ periodicity = "10m"
+ name = "test-monitor"
+ active = true
+ description = "This is a test monitor"
+}
+```
\ No newline at end of file