Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/(marketing)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { LandingFooter } from "@/components/landing/LandingFooter";
import { LandingHeader } from "@/components/landing/LandingHeader";
import { LandingMainSection } from "@/components/landing/LandingMainSection";
import { LandingWrapper } from "@/components/landing/LandingWrapper";
import { makePageMetadata } from "@/seo/metadata";

Expand All @@ -15,7 +16,7 @@ export default function MarketingLayout({ children }: { children: React.ReactNod
<body>
<LandingWrapper>
<LandingHeader />
<main className="flex-1">{children}</main>
<LandingMainSection className="flex-1">{children}</LandingMainSection>
<LandingFooter />
</LandingWrapper>
</body>
Expand Down
13 changes: 13 additions & 0 deletions src/components/landing/LandingMainSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { cn } from "@/lib/utils";
import { LandingMainSectionProps } from "@/types/landing";

export function LandingMainSection({ children, className }: LandingMainSectionProps) {
return (
<main
id="landing-main"
className={cn("mx-auto w-full max-w-[128rem] px-6 py-15", "space-y-[10rem]", className)}
>
{children}
</main>
);
}
5 changes: 5 additions & 0 deletions src/types/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ export type LandingFooterColumnProps = {
title: string;
links: FooterLink[];
};

export type LandingMainSectionProps = {
children: React.ReactNode;
className?: string;
};