Skip to content

Commit a95031d

Browse files
committed
docs: Add admin section to home page
1 parent 0245dcc commit a95031d

File tree

9 files changed

+495
-20
lines changed

9 files changed

+495
-20
lines changed

apps/docs/src/app/(home)/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { buttonVariants } from '@vitnode/core/components/ui/button';
44
import { cn } from '@vitnode/core/lib/utils';
55
import { CallToActionSection } from './sections/call-to-action';
66
import { PoweringBySection } from './sections/powering-by/powering-by';
7+
import { AdminSection } from './sections/admin/admin';
78

89
export const metadata: Metadata = {
910
title: 'VitNode: Extendable Framework for Building Apps',
@@ -43,7 +44,6 @@ export default function HomePage() {
4344
}),
4445
)}
4546
href="/docs/dev"
46-
prefetch
4747
>
4848
Get Started
4949
</Link>
@@ -79,6 +79,7 @@ export default function HomePage() {
7979
</section>
8080

8181
<PoweringBySection />
82+
<AdminSection />
8283

8384
<CallToActionSection />
8485
</div>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { CpuIcon, LockIcon, SparklesIcon, ZapIcon } from 'lucide-react';
2+
import Image from 'next/image';
3+
import debugPanelImg from './debug_panel.png';
4+
5+
export const AdminSection = () => {
6+
return (
7+
<section className="py-16 md:py-32">
8+
<div className="mx-auto max-w-6xl space-y-12 px-6">
9+
<div className="flex items-center justify-center text-center">
10+
<h2 className="max-w-xl text-4xl font-semibold">
11+
Powerful AdminCP brings together all management tools
12+
</h2>
13+
</div>
14+
<div className="relative rounded-3xl p-3 md:-mx-8 lg:col-span-3">
15+
<div className="aspect-88/36 relative">
16+
<div className="bg-linear-to-t z-1 from-background absolute inset-0 to-transparent"></div>
17+
<Image
18+
src={debugPanelImg}
19+
className="hidden dark:block"
20+
alt="payments illustration dark"
21+
width={2797}
22+
height={1137}
23+
/>
24+
<Image
25+
src={debugPanelImg}
26+
className="dark:hidden"
27+
alt="payments illustration light"
28+
width={2797}
29+
height={1137}
30+
/>
31+
</div>
32+
</div>
33+
<div className="relative mx-auto grid grid-cols-2 gap-x-3 gap-y-6 sm:gap-8 lg:grid-cols-4">
34+
<div className="space-y-3">
35+
<div className="flex items-center gap-2">
36+
<CpuIcon className="size-4" />
37+
<h3 className="text-sm font-medium">Powerful</h3>
38+
</div>
39+
<p className="text-muted-foreground text-sm">
40+
Manage users, content and settings from one powerful command
41+
center.
42+
</p>
43+
</div>
44+
<div className="space-y-2">
45+
<div className="flex items-center gap-2">
46+
<CpuIcon className="size-4" />
47+
<h3 className="text-sm font-medium">Powerful</h3>
48+
</div>
49+
<p className="text-muted-foreground text-sm">
50+
Manage users, content and settings from one powerful command
51+
center.
52+
</p>
53+
</div>
54+
<div className="space-y-2">
55+
<div className="flex items-center gap-2">
56+
<LockIcon className="size-4" />
57+
<h3 className="text-sm font-medium">Powerful</h3>
58+
</div>
59+
<p className="text-muted-foreground text-sm">
60+
Manage users, content and settings from one powerful command
61+
center.
62+
</p>
63+
</div>
64+
<div className="space-y-2">
65+
<div className="flex items-center gap-2">
66+
<SparklesIcon className="size-4" />
67+
68+
<h3 className="text-sm font-medium">Powerful</h3>
69+
</div>
70+
<p className="text-muted-foreground text-sm">
71+
Manage users, content and settings from one powerful command
72+
center.
73+
</p>
74+
</div>
75+
</div>
76+
</div>
77+
</section>
78+
);
79+
};
258 KB
Loading

apps/docs/src/app/(home)/sections/powering-by/powering-by.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from 'next/link';
2-
import { InfiniteSlider } from '../../../../components/infinite-slider';
2+
import { InfiniteSlider } from '@/components/infinite-slider';
33
import { NextJSLogo } from './logos/nextjs';
44
import { HonoJSLogo } from './logos/honojs';
55
import { TailwindCSSLogo } from './logos/tailwindcss';
@@ -70,16 +70,6 @@ export const PoweringBySection = () => {
7070

7171
<div className="bg-linear-to-r from-background absolute inset-y-0 left-0 w-20"></div>
7272
<div className="bg-linear-to-l from-background absolute inset-y-0 right-0 w-20"></div>
73-
{/* <ProgressiveBlur
74-
className="pointer-events-none absolute left-0 top-0 h-full w-20"
75-
direction="left"
76-
blurIntensity={1}
77-
/>
78-
<ProgressiveBlur
79-
className="pointer-events-none absolute right-0 top-0 h-full w-20"
80-
direction="right"
81-
blurIntensity={1}
82-
/> */}
8373
</div>
8474
</div>
8575
</div>

0 commit comments

Comments
 (0)