@ -1,5 +1,5 @@
|
||||
import UserGuideContent from '@/app/components/user-guide/UserGuideContent';
|
||||
import { getPost } from '@/app/get-posts';
|
||||
import UserGuideContent from '@/app/_components/user-guide/UserGuideContent';
|
||||
import { getPost } from '@/app/_server-utils/get-posts';
|
||||
|
||||
export default async function UserGuideSlug({
|
||||
params,
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
export type UserGuideHomeCardsType = {
|
||||
url: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
image: string;
|
||||
};
|
||||
|
||||
export const UserGuideHomeCards: UserGuideHomeCardsType[] = [
|
||||
{
|
||||
url: 'what-is-twenty',
|
||||
title: 'What is Twenty',
|
||||
subtitle:
|
||||
"A brief on Twenty's commitment to reshaping CRM with Open Source",
|
||||
image: '/images/user-guide/home/what-is-twenty.png',
|
||||
},
|
||||
{
|
||||
url: 'create-a-workspace',
|
||||
title: 'Create a Workspace',
|
||||
subtitle: 'Custom objects store unique info in workspaces.',
|
||||
image: '/images/user-guide/home/create-a-workspace.png',
|
||||
},
|
||||
{
|
||||
url: 'import-your-data',
|
||||
title: 'Import your data',
|
||||
subtitle: 'Easily create a note to keep track of important information.',
|
||||
image: '/images/user-guide/home/import-your-data.png',
|
||||
},
|
||||
{
|
||||
url: 'custom-objects',
|
||||
title: 'Custom Objects',
|
||||
subtitle: 'Custom objects store unique info in workspaces.',
|
||||
image: '/images/user-guide/home/custom-objects.png',
|
||||
},
|
||||
];
|
||||
@ -1,29 +0,0 @@
|
||||
export type IndexSubtopic = {
|
||||
title: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type IndexHeading = {
|
||||
[heading: string]: IndexSubtopic[];
|
||||
};
|
||||
|
||||
export const UserGuideIndex = {
|
||||
'Getting Started': [
|
||||
{ title: 'What is Twenty', url: 'what-is-twenty' },
|
||||
{ title: 'Create a Workspace', url: 'create-a-workspace' },
|
||||
{ title: 'Import your data', url: 'import-your-data' },
|
||||
],
|
||||
Objects: [
|
||||
{ title: 'People', url: 'people' },
|
||||
{ title: 'Companies', url: 'companies' },
|
||||
{ title: 'Opportunities', url: 'opportunities' },
|
||||
{ title: 'Custom Objects', url: 'custom-objects' },
|
||||
{ title: 'Remote Objects', url: 'remote-objects' },
|
||||
],
|
||||
Functions: [
|
||||
{ title: 'Email', url: 'email' },
|
||||
{ title: 'Calendar', url: 'calendar' },
|
||||
{ title: 'Notes', url: 'notes' },
|
||||
{ title: 'Tasks', url: 'tasks' },
|
||||
],
|
||||
};
|
||||
@ -3,10 +3,13 @@ import { ReactNode } from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import { usePathname } from 'next/navigation';
|
||||
|
||||
import UserGuideSidebar from '@/app/components/user-guide/UserGuideSidebar';
|
||||
import UserGuideTableContents from '@/app/components/user-guide/UserGuideTableContents';
|
||||
import { Theme } from '@/app/ui/theme/theme';
|
||||
import { DeviceType, useDeviceType } from '@/app/ui/utilities/useDeviceType';
|
||||
import {
|
||||
DeviceType,
|
||||
useDeviceType,
|
||||
} from '@/app/_components/client-utils/useDeviceType';
|
||||
import { Theme } from '@/app/_components/ui/theme/theme';
|
||||
import UserGuideSidebar from '@/app/_components/user-guide/UserGuideSidebar';
|
||||
import UserGuideTableContents from '@/app/_components/user-guide/UserGuideTableContents';
|
||||
|
||||
const StyledContainer = styled.div`
|
||||
width: 100%;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import UserGuideMain from '@/app/components/user-guide/UserGuideMain';
|
||||
import UserGuideMain from '@/app/_components/user-guide/UserGuideMain';
|
||||
|
||||
export default async function UserGuideHome() {
|
||||
return <UserGuideMain />;
|
||||
|
||||
Reference in New Issue
Block a user