Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
import { cn } from "../../../../lib/utils";
import { Background } from "./background";
export function BasicLayout({
title,
description,
children,
tw,
}: {
title: string;
description?: string | null;
children?: React.ReactNode;
tw?: string;
}) {
return (
<Background>
<div tw="flex flex-col h-full w-full px-24">
<div tw="flex flex-col flex-1 justify-end">
<div tw="flex flex-col px-12">
<h3 style={{ fontFamily: "Cal" }} tw="text-5xl">
{title}
</h3>
{description ? (
<p
tw="text-slate-600 text-3xl"
style={{ lineClamp: 2, display: "block" }}
>
{description}
</p>
) : null}
</div>
</div>
<div
tw={cn(
"mt-1 flex flex-col justify-center rounded-t-lg border-t-2 border-r-2 border-l-2 border-slate-200 bg-white px-12 shadow-2xl",
tw,
)}
>
{children}
</div>
</div>
</Background>
);
}