Skip to content

Open-source status page, incident response and uptime monitoring

fix: little stuff (#928)

Maximilian Kaske73cc1d3361e7
diff --git a/apps/web/src/app/(content)/features/_components/hero.tsx b/apps/web/src/app/(content)/features/_components/hero.tsx
index 07cf36d4c..ac2780a5e 100644
--- a/apps/web/src/app/(content)/features/_components/hero.tsx
+++ b/apps/web/src/app/(content)/features/_components/hero.tsx
@@ -15,7 +15,14 @@ export function Hero({ title, subTitle, className, ...props }: HeroProps) {
)}
{...props}
>
- <h1 className="text-center font-cal text-5xl leading-tight">{title}</h1>
+ <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>
diff --git a/apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx b/apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx
index 5c3020284..65b38f77a 100644
--- a/apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx
+++ b/apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx
@@ -33,13 +33,11 @@ export default async function Onboarding({
</Button>
}
/>
- <div className="grid h-full w-full gap-6 md:grid-cols-3 md:gap-8">
- <div className="md:col-span-2">
+ <div className="flex flex-1 flex-col gap-6 md:grid md:grid-cols-3 md:gap-8">
+ <div className="flex flex-col md:col-span-2">
<MonitorForm
notifications={allNotifications}
defaultSection="request"
- // FIXME: we are getting an https://react.dev/errors/482 error here!
- withTestButton={false}
/>
</div>
<div className="hidden h-full md:col-span-1 md:block">
@@ -62,8 +60,8 @@ export default async function Onboarding({
</Button>
}
/>
- <div className="grid h-full w-full gap-6 md:grid-cols-3 md:gap-8">
- <div className="md:col-span-2">
+ <div className="flex flex-1 flex-col gap-6 md:grid md:grid-cols-3 md:gap-8">
+ <div className="flex flex-col md:col-span-2">
<StatusPageForm
{...{ workspaceSlug, allMonitors }}
nextUrl={`/app/${workspaceSlug}/status-pages`}
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts
index fa4b98505..3fe309918 100644
--- a/apps/web/src/app/sitemap.ts
+++ b/apps/web/src/app/sitemap.ts
@@ -16,14 +16,16 @@ export default function sitemap(): MetadataRoute.Sitemap {
const routes = [
"/",
- "/play",
- "/play/checker",
- "/oss-friends",
- "/pricing",
"/about",
+ "/app/login",
"/blog",
"/changelog",
- "/app/login",
+ "/features/status-page",
+ "/features/monitoring",
+ "/play",
+ "/play/checker",
+ "/pricing",
+ "/oss-friends",
].map((route) => ({
url: addPathToBaseURL(route),
lastModified: new Date(),
diff --git a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx b/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx
index 119be1bb4..b2a46b904 100644
--- a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx
+++ b/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx
@@ -11,7 +11,7 @@ import { ResponseHeaderTable } from "./response-header-table";
import { ResponseTimingTable } from "./response-timing-table";
import type { Timing } from "./utils";
-export async function ResponseDetailTabs({
+export function ResponseDetailTabs({
timing,
headers,
status,
diff --git a/apps/web/src/config/pages.ts b/apps/web/src/config/pages.ts
index c4034a7ba..f0630f3c5 100644
--- a/apps/web/src/config/pages.ts
+++ b/apps/web/src/config/pages.ts
@@ -2,6 +2,7 @@ import type { ValidIcon } from "@/components/icons";
export type Page = {
title: string;
+ subtitle?: string;
description: string;
href: string;
icon: ValidIcon;
@@ -207,22 +208,23 @@ export const pagesConfig = [
},
] as const satisfies readonly Page[];
-type MarketingPageType = Page & { subtitle: string };
+type MarketingPageType = Page;
export const marketingProductPagesConfig = [
{
- subtitle: "Get insights of the latency of your API and website from all over the world.",
href: "/features/monitoring",
title: "Monitoring",
- description:
- "Monitor your API and website globablly.",
+ 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",
},
{
- subtitle: "Easily report to your users with our public or private status page.",
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",
@@ -295,7 +297,7 @@ export const marketingPagesConfig = [
export function getPageBySegment(
segment: string | string[],
- currentPage: readonly Page[] = pagesConfig
+ currentPage: readonly Page[] = pagesConfig,
): Page | undefined {
if (typeof segment === "string") {
const page = currentPage.find((page) => page.segment === segment);