Skip to content

Open-source status page, incident response and uptime monitoring

fix: gap (#1122)

Maximilian Kaske8fbdf0b90383
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 7dac08576..43637bbe3 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -13,7 +13,7 @@ export const revalidate = 600;
export default async function Page() {
return (
<MarketingLayout>
- <div className="grid gap-8">
+ <div className="grid gap-12">
<Hero />
<Partners />
<MonitoringCard />
diff --git a/apps/web/src/app/play/checker/page.tsx b/apps/web/src/app/play/checker/page.tsx
index de4cacec6..a6e863a59 100644
--- a/apps/web/src/app/play/checker/page.tsx
+++ b/apps/web/src/app/play/checker/page.tsx
@@ -47,13 +47,11 @@ export default async function PlayPage({
if (id && !data) return redirect("/play/checker");
return (
- <div className="grid h-full w-full gap-12">
+ <div className="grid w-full gap-12">
<CheckerPlay data={data} />
<Testimonial />
<GlobalMonitoring />
- <div className="mx-auto max-w-2xl lg:max-w-4xl">
- <BottomCTA />
- </div>
+ <BottomCTA className="mx-auto max-w-2xl lg:max-w-4xl" />
</div>
);
}
diff --git a/apps/web/src/components/layout/marketing-layout.tsx b/apps/web/src/components/layout/marketing-layout.tsx
index 545167473..7d1064244 100644
--- a/apps/web/src/components/layout/marketing-layout.tsx
+++ b/apps/web/src/components/layout/marketing-layout.tsx
@@ -8,7 +8,7 @@ export function MarketingLayout({ children }: { children: React.ReactNode }) {
return (
<PlausibleProvider domain="openstatus.dev">
<SessionProvider>
- <main className="flex min-h-screen w-full flex-col items-center justify-center gap-8 p-4 md:p-8">
+ <main className="flex min-h-screen w-full flex-col items-center justify-center gap-12 p-4 md:p-8">
<MarketingHeader className="mx-auto w-full max-w-4xl" />
<div className="mx-auto flex w-full max-w-4xl flex-1 flex-col items-start justify-center">
{children}
diff --git a/apps/web/src/components/layout/public-layout.tsx b/apps/web/src/components/layout/public-layout.tsx
index 5c3988a6a..5379328fa 100644
--- a/apps/web/src/components/layout/public-layout.tsx
+++ b/apps/web/src/components/layout/public-layout.tsx
@@ -6,7 +6,7 @@ import { PublicHeader } from "./public-header";
export function PublicLayout({ children }: { children: React.ReactNode }) {
return (
<SessionProvider>
- <main className="flex min-h-screen w-full flex-col items-center justify-center gap-8 p-4 md:p-8">
+ <main className="flex min-h-screen w-full flex-col items-center justify-center gap-12 p-4 md:p-8">
<PublicHeader className="mx-auto w-full max-w-4xl" />
<div className="mx-auto flex w-full max-w-4xl flex-1 flex-col items-start justify-center">
{children}
diff --git a/apps/web/src/components/marketing/in-between-cta.tsx b/apps/web/src/components/marketing/in-between-cta.tsx
index ec782195f..7a92ecb7a 100644
--- a/apps/web/src/components/marketing/in-between-cta.tsx
+++ b/apps/web/src/components/marketing/in-between-cta.tsx
@@ -1,5 +1,6 @@
import Link from "next/link";
+import { cn } from "@/lib/utils";
import { Button } from "@openstatus/ui/src/components/button";
interface InBetweenCTAProps {
@@ -8,12 +9,22 @@ interface InBetweenCTAProps {
"primary" | "secondary",
{ label: string; href: string; target?: string }
>;
+ className?: string;
}
-export function InBetweenCTA({ description, actions }: InBetweenCTAProps) {
+export function InBetweenCTA({
+ description,
+ actions,
+ className,
+}: InBetweenCTAProps) {
const { primary, secondary } = actions;
return (
- <div className="my-8 flex flex-col items-center justify-between gap-6">
+ <div
+ className={cn(
+ "flex flex-col items-center justify-between gap-6",
+ className,
+ )}
+ >
<p className="max-w-lg text-center text-lg text-muted-foreground">
{description}
</p>
@@ -33,7 +44,7 @@ export function InBetweenCTA({ description, actions }: InBetweenCTAProps) {
);
}
-export function MiddleCTA() {
+export function MiddleCTA(props: Pick<InBetweenCTAProps, "className">) {
return (
<InBetweenCTA
description="Sick of booking a demo to know more? Test your endpoint or check our public dashboard right away."
@@ -41,11 +52,12 @@ export function MiddleCTA() {
primary: { label: "Public Dashboard", href: "/public/monitors/1" },
secondary: { label: "Speed Checker", href: "/play/checker" },
}}
+ {...props}
/>
);
}
-export function BottomCTA() {
+export function BottomCTA(props: Pick<InBetweenCTAProps, "className">) {
return (
<InBetweenCTA
description="Learn how your services are performing over time, and notify your users of any issues."
@@ -53,6 +65,7 @@ export function BottomCTA() {
primary: { label: "Start for Free", href: "/app/login" },
secondary: { label: "Schedule a Demo", href: "/cal", target: "_blank" },
}}
+ {...props}
/>
);
}