mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
✨ Add board pages
This commit is contained in:
1
src/pages/b/[id].tsx
Normal file
1
src/pages/b/[id].tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default, getServerSideProps } from '../board/[id]';
|
||||
1
src/pages/b/index.tsx
Normal file
1
src/pages/b/index.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default, getServerSideProps } from '../board';
|
||||
16
src/pages/board/[id].tsx
Normal file
16
src/pages/board/[id].tsx
Normal 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
18
src/pages/board/index.tsx
Normal 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: {},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user