Add board pages

This commit is contained in:
Meier Lukas
2023-07-29 20:56:20 +02:00
parent 0c3d9f335c
commit cf12c8575d
4 changed files with 36 additions and 0 deletions

1
src/pages/b/[id].tsx Normal file
View File

@@ -0,0 +1 @@
export { default, getServerSideProps } from '../board/[id]';

1
src/pages/b/index.tsx Normal file
View File

@@ -0,0 +1 @@
export { default, getServerSideProps } from '../board';

16
src/pages/board/[id].tsx Normal file
View File

@@ -0,0 +1,16 @@
import { GetServerSideProps } from 'next';
export default function BoardPage() {
return (
<div>
<h1>BoardPage</h1>
</div>
);
}
export const getServerSideProps: GetServerSideProps = async () => {
console.log('getServerSideProps');
return {
props: {},
};
};

18
src/pages/board/index.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { Title } from '@mantine/core';
import { GetServerSideProps } from 'next';
import { MainLayout } from '~/components/layout/main';
export default function BoardPage() {
return (
<MainLayout>
<Title order={1}>BoardPage</Title>
</MainLayout>
);
}
export const getServerSideProps: GetServerSideProps = async () => {
console.log('getServerSideProps');
return {
props: {},
};
};