Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat(web): private-locations landing (#1482)
Maximilian Kaske2f6778c2f5fe
diff --git a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx b/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsxindex 7e915794d..d5f1dff2e 100644--- a/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx+++ b/apps/web/src/app/(pages)/(content)/(landing)/[slug]/page.tsx@@ -91,9 +91,11 @@ export default async function Page({function Hero({ hero, description }: { hero: string; description: string }) {return (- <div className="mx-auto my-12 flex flex-col items-center gap-4 sm:my-16 md:gap-6">+ <div className="mx-auto my-12 flex flex-col items-center gap-4 md:my-16 md:gap-6"><div className="flex flex-col gap-2 text-center md:gap-4">- <h1 className="font-cal text-5xl leading-tight md:text-6xl">{hero}</h1>+ <h1 className="max-w-md font-cal text-3xl leading-tight md:max-w-3xl md:text-5xl">+ {hero}+ </h1><h2 className="mx-auto max-w-md text-muted-foreground text-xl md:max-w-xl md:text-2xl">{description}</h2>diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsxindex b425cea33..668995183 100644--- a/apps/web/src/components/icons.tsx+++ b/apps/web/src/components/icons.tsx@@ -15,6 +15,7 @@ import {Cog,Command,Copy,+ Cpu,CreditCard,Eye,EyeOff,@@ -88,6 +89,7 @@ export const Icons = {package: Package,library: Library,cog: Cog,+ cpu: Cpu,hammer: Hammer,search: Search,"search-check": SearchCheck,diff --git a/apps/web/src/components/marketing/feature/index.tsx b/apps/web/src/components/marketing/feature/index.tsxindex 8e7f3d2b1..00ec300d5 100644--- a/apps/web/src/components/marketing/feature/index.tsx+++ b/apps/web/src/components/marketing/feature/index.tsx@@ -1,6 +1,7 @@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 { Icons } from "@/components/icons";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";@@ -102,15 +103,17 @@ export function FeatureStatusPageTracker();}-export function FeatureCharts(- props: Partial<Pick<InteractiveFeatureProps, "position">>,-) {+export function FeatureCharts({+ 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.",+ position = "top",+}: Partial<Pick<InteractiveFeatureProps, "position" | "title" | "subTitle">>) {return (<InteractiveFeatureicon="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."+ title={title}+ subTitle={subTitle}action={<div className="mt-2"><Button variant="outline" className="rounded-full" asChild>@@ -126,7 +129,7 @@ export function FeatureCharts(</div>}col={2}- position={props.position || "top"}+ position={position}withGradient/>);@@ -584,3 +587,70 @@ export function FeatureOpenTelemetry(/>);}++export function FeaturePrivateLocationsDockerImage(+ props: Partial<Pick<InteractiveFeatureProps, "position">>,+) {+ return (+ <InteractiveFeature+ icon="cpu"+ iconText="Performance"+ title="Run anywhere."+ position={props.position || "left"}+ col={1}+ subTitle="The Docker image is so small, you can run it on your own homelab or Raspberry Pi."+ component={+ <div className="flex h-full flex-col items-center justify-center gap-3">+ <Icons.cpu className="size-8 text-muted-foreground" />+ <p className="font-medium">8.5MB</p>+ </div>+ }+ action={+ <Button variant="outline" className="w-max rounded-full" asChild>+ <Link href="https://docs.openstatus.dev/blog/deploy-private-locations-raspberry-pi">+ Blog Post+ </Link>+ </Button>+ }+ />+ );+}++export function FeaturePrivateLocationsDockerInstall(+ props: Partial<Pick<InteractiveFeatureProps, "position">>,+) {+ const blockCLI = allUnrelateds.find(+ (unrelated) => unrelated.slug === "cli-docker-private-locations",+ );++ if (!blockCLI) {+ throw new Error("CLI Docker Private Locations block not found");+ }+ return (+ <InteractiveFeature+ icon="terminal"+ iconText="Docker"+ title="Deploy anywhere."+ subTitle="Run our Docker container on your infrastructure."+ component={+ <Mdx+ code={blockCLI.mdx}+ className="my-auto max-w-none prose-pre:overflow-hidden"+ />+ }+ action={+ <Button variant="outline" className="w-max rounded-full" asChild>+ <a+ href="https://docs.openstatus.dev/tutorial/how-to-create-private-location/"+ rel="noreferrer"+ target="_blank"+ >+ Documentation+ </a>+ </Button>+ }+ col={1}+ position={props.position || "top"}+ />+ );+}diff --git a/apps/web/src/components/ping-response-analysis/multi-region-chart.tsx b/apps/web/src/components/ping-response-analysis/multi-region-chart.tsxindex 4b844a86e..f51addcb8 100644--- a/apps/web/src/components/ping-response-analysis/multi-region-chart.tsx+++ b/apps/web/src/components/ping-response-analysis/multi-region-chart.tsx@@ -102,7 +102,7 @@ export function MultiRegionChart({ regions }: { regions: RegionChecker[] }) {</div>);}}- formatter={(value, name) => (+ formatter={(value, name, item, index) => (<><divclassName="h-2.5 w-2.5 shrink-0 rounded-[2px] bg-(--color-bg)"@@ -120,6 +120,20 @@ export function MultiRegionChart({ regions }: { regions: RegionChecker[] }) {ms</span></div>+ {index === Object.keys(chartConfig).length - 1 && (+ <div className="flex basis-full items-center border-t pt-1.5 font-medium text-foreground text-xs">+ Latency+ <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">+ {Object.keys(chartConfig).reduce((acc, key) => {+ if (key === "transfer") return acc;+ return acc + item.payload[key];+ }, 0)}+ <span className="font-normal text-muted-foreground">+ ms+ </span>+ </div>+ </div>+ )}</>)}/>diff --git a/apps/web/src/config/landings.tsx b/apps/web/src/config/landings.tsxindex c24c58d55..07c719c35 100644--- a/apps/web/src/config/landings.tsx+++ b/apps/web/src/config/landings.tsx@@ -12,6 +12,8 @@ import {FeatureOpenTelemetry,FeatureOperationalBanner,FeaturePasswordProtection,+ FeaturePrivateLocationsDockerImage,+ FeaturePrivateLocationsDockerInstall,FeatureRaycastIntegration,FeatureRegions,FeatureResponseDetails,@@ -123,4 +125,21 @@ export const landingsConfig = {<BookingBanner key="booking-banner" />,],},+ "private-locations": {+ icon: "globe",+ title: "Private Locations",+ hero: "Monitor from anywhere. Literally anywhere.",+ description: "Monitor your services from your own infrastructure.",+ blocks: [+ <SpeedBanner key="speed-banner" />,+ <FeaturePrivateLocationsDockerImage key="feature-private-locations-docker-image" />,+ <FeaturePrivateLocationsDockerInstall key="feature-private-locations-docker-install" />,+ <FeatureCharts+ key="feature-charts"+ title="Private Locations."+ subTitle="Latency, availability and performance of your internal services. Always be close to your users."+ />,+ <BookingBanner key="enterprise-banner" />,+ ],+ },} satisfies Record<string, Landing>;diff --git a/apps/web/src/content/unrelated/cli-docker-private-locations.mdx b/apps/web/src/content/unrelated/cli-docker-private-locations.mdxnew file mode 100644index 000000000..4c41a1235--- /dev/null+++ b/apps/web/src/content/unrelated/cli-docker-private-locations.mdx@@ -0,0 +1,3 @@+```bash+$ docker pull ghcr.io/openstatushq/private-location:latest+```\ No newline at end of file