feat: replace home page with home board (#1530)
This commit is contained in:
5
apps/nextjs/src/app/[locale]/(home-board)/layout.tsx
Normal file
5
apps/nextjs/src/app/[locale]/(home-board)/layout.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import definition from "../boards/(content)/(home)/_definition";
|
||||||
|
|
||||||
|
const { layout } = definition;
|
||||||
|
|
||||||
|
export default layout;
|
||||||
7
apps/nextjs/src/app/[locale]/(home-board)/page.tsx
Normal file
7
apps/nextjs/src/app/[locale]/(home-board)/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import definition from "../boards/(content)/(home)/_definition";
|
||||||
|
|
||||||
|
const { generateMetadataAsync: generateMetadata, page } = definition;
|
||||||
|
|
||||||
|
export default page;
|
||||||
|
|
||||||
|
export { generateMetadata };
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import type { PropsWithChildren } from "react";
|
|
||||||
import { AppShellMain } from "@mantine/core";
|
|
||||||
|
|
||||||
import { MainHeader } from "~/components/layout/header";
|
|
||||||
import { ClientShell } from "~/components/layout/shell";
|
|
||||||
|
|
||||||
export default function MainLayout({ children }: PropsWithChildren) {
|
|
||||||
return (
|
|
||||||
<ClientShell hasNavigation={false}>
|
|
||||||
<MainHeader />
|
|
||||||
<AppShellMain>{children}</AppShellMain>
|
|
||||||
</ClientShell>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import { Stack, Title } from "@mantine/core";
|
|
||||||
|
|
||||||
export default function HomePage() {
|
|
||||||
return (
|
|
||||||
<Stack>
|
|
||||||
<Title>Home</Title>
|
|
||||||
</Stack>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user