WIP: New User Guide (#3984)
* initial commit * Theme setup on twenty-website package * Left bar, Content done * Content added, useDeviceType hook added * useDeviceType file renamed * Responsiveness introduced * Mobile responsiveness fix * TOC layout * PR fixes * PR changes 2 * PR changes #3
This commit is contained in:
16
packages/twenty-website/src/app/user-guide/[slug]/page.tsx
Normal file
16
packages/twenty-website/src/app/user-guide/[slug]/page.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import UserGuideContent from '@/app/components/user-guide/UserGuideContent';
|
||||
import { getPost } from '@/app/get-posts';
|
||||
|
||||
export default async function UserGuideSlug({
|
||||
params,
|
||||
}: {
|
||||
params: { slug: string };
|
||||
}) {
|
||||
const basePath = '/src/content/user-guide';
|
||||
|
||||
const mainPost = await getPost(
|
||||
params.slug && params.slug.length ? params.slug : 'home',
|
||||
basePath,
|
||||
);
|
||||
return mainPost && <UserGuideContent item={mainPost} />;
|
||||
}
|
||||
Reference in New Issue
Block a user