-
Notifications
You must be signed in to change notification settings - Fork 808
/
Copy pathpage.tsx
67 lines (58 loc) · 2.03 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { ThemesButton } from '@/components/themes-button';
import { AnnouncementButton } from './announcement-button';
import '../../public/registry/themes.css';
import * as React from 'react';
import { cn } from '@udecode/cn';
import { siteConfig } from '@/config/site';
import { Icons } from '@/components/icons';
import {
PageHeader,
PageHeaderDescription,
PageHeaderHeading,
} from '@/components/page-header';
import { buttonVariants } from '@/registry/default/plate-ui/button';
const HomeTabs = dynamic(() => import('./_components/home-tabs'));
const CustomizerDrawer = dynamic(
() => import('@/components/customizer-drawer')
);
export default function IndexPage() {
return (
<div className="container relative">
<div className="flex items-center justify-between">
<PageHeader className="w-full pb-8">
<AnnouncementButton />
<div className="flex w-full items-center justify-between">
<PageHeaderHeading>Build your rich-text editor.</PageHeaderHeading>
<div className="hidden md:block">
<ThemesButton />
</div>
</div>
<PageHeaderDescription>
Plugin system & primitive component library. <br />
CLI for styled components. Customizable. Open Source.
</PageHeaderDescription>
<section className="flex w-full items-center space-x-4 py-4 md:pb-10">
<Link href="/docs" className={cn(buttonVariants())}>
Get Started1
</Link>
<Link
target="_blank"
rel="noreferrer"
href={siteConfig.links.github}
className={cn(buttonVariants({ variant: 'outline' }))}
>
<Icons.gitHub className="mr-2 size-4" />
GitHub
</Link>
</section>
</PageHeader>
</div>
<section className="relative">
<HomeTabs />
<CustomizerDrawer />
</section>
</div>
);
}