Skip to content

Commit 70539ed

Browse files
committed
feat: add information component in home
1 parent b1ecc00 commit 70539ed

File tree

4 files changed

+109
-1
lines changed

4 files changed

+109
-1
lines changed

src/components/common/footer.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const Footer = () => {
1414
return (
1515
<footer id='footer' className='bg-card border-t border-secondary w-full flex justify-center'>
1616
<div className='container py-24 sm:py-32 p-10 w-full place-items-stretch'>
17-
<div className='grid grid-cols-1 sm:grid-cols-3 md:grid-cols-3 xl:grid-cols-5 gap-x-12 gap-y-8 z-50'>
17+
<div className='grid grid-cols-1 sm:grid-cols-4 md:grid-cols-4 xl:grid-cols-6 gap-x-12 gap-y-8 z-50'>
1818
<div className='col-span-full xl:col-span-2'>
1919
<Link href='/' className='flex font-bold items-center'>
2020
<Kinotio width={100} height={50} />
@@ -35,6 +35,15 @@ export const Footer = () => {
3535
))}
3636
</div>
3737

38+
<div className='flex flex-col gap-2'>
39+
<h3 className='font-bold text-lg'>Products</h3>
40+
{DATA.footer.products.map((product, idx) => (
41+
<Link key={idx} href={product.href} className='opacity-60 hover:opacity-100'>
42+
{product.name}
43+
</Link>
44+
))}
45+
</div>
46+
3847
<div className='flex flex-col gap-2'>
3948
<h3 className='font-bold text-lg'>Help</h3>
4049
{DATA.footer.help.map((help, idx) => (
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import { icons } from 'lucide-react'
2+
3+
import { Icon } from '@/components/ui/icon'
4+
5+
const features: { title: string; description: string; icon: string }[] = [
6+
{
7+
title: 'Interactive Setup Wizard',
8+
description:
9+
'Simplify the initial configuration and installation process with a guided, step-by-step wizard.',
10+
icon: 'Wand'
11+
},
12+
{
13+
title: 'Comprehensive API Documentation',
14+
description:
15+
'Access detailed API references with examples to help integrate and extend the product.',
16+
icon: 'Code'
17+
},
18+
{
19+
title: 'Deployment Guides',
20+
description:
21+
'Follow in-depth tutorials for deploying the product across various environments, including cloud and on-premises.',
22+
icon: 'Cloud'
23+
},
24+
{
25+
title: 'Use Case Scenarios',
26+
description:
27+
'Explore real-world examples and case studies demonstrating how to apply the product to solve specific problems.',
28+
icon: 'BookOpen'
29+
},
30+
{
31+
title: 'Search and Navigation',
32+
description:
33+
'Utilize advanced search functionality and intuitive navigation to quickly find relevant information.',
34+
icon: 'Search'
35+
},
36+
{
37+
title: 'Troubleshooting and FAQs',
38+
description:
39+
'Access a dedicated section for common issues and frequently asked questions to resolve problems quickly.',
40+
icon: 'HandHelping'
41+
}
42+
]
43+
44+
export const Information = () => {
45+
return (
46+
<section id='information' className='w-full py-12 md:py-24 lg:py-32 flex justify-center'>
47+
<div className='container px-4 md:px-6'>
48+
<div className='gap-6'>
49+
<div className='space-y-4 grid grid-cols-2'>
50+
<div className='space-y-2 flex flex-col justify-center'>
51+
<h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>
52+
Introducing Our Documentation
53+
</h2>
54+
<p className='max-w-[600px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed'>
55+
Our Documentation Platform offers an extensive collection of resources designed to
56+
guide you through every aspect of our product. From initial configuration and
57+
installation to seamless deployment, our step-by-step instructions ensure a smooth
58+
setup process.
59+
</p>
60+
</div>
61+
62+
<div className='grid grid-cols-2 gap-4'>
63+
{features.map((feature) => (
64+
<div key={feature.title} className='rounded-lg border bg-background p-4 shadow-sm'>
65+
<div className='flex h-12 w-12 items-center justify-center rounded-full bg-primary'>
66+
<Icon
67+
name={feature.icon as keyof typeof icons}
68+
size={20}
69+
className='text-primary-foreground'
70+
/>
71+
</div>
72+
<h3 className='mt-4 text-lg font-semibold'>{feature.title}</h3>
73+
<p className='text-sm text-muted-foreground'>{feature.description}</p>
74+
</div>
75+
))}
76+
</div>
77+
</div>
78+
</div>
79+
</div>
80+
</section>
81+
)
82+
}

src/data/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ export const DATA = {
4242
name: 'FAQ'
4343
}
4444
],
45+
products: [
46+
{
47+
href: '#',
48+
name: 'Drowser'
49+
},
50+
{
51+
href: '#',
52+
name: 'Drowser Studio'
53+
},
54+
{
55+
href: '#',
56+
name: 'Gelda'
57+
}
58+
],
4559
socials: [
4660
{
4761
icon: 'Github',

src/pages/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { ThemeProvider } from '@/components/theme-provider'
66

77
import { Header } from '@/components/common/header'
88
import { Footer } from '@/components/common/footer'
9+
910
import { Hero } from '@/components/sections/hero'
1011
import { FAQ } from '@/components/sections/faq'
12+
import { Information } from '@/components/sections/information'
1113

1214
import { DATA } from '@/data'
1315

@@ -79,6 +81,7 @@ export default function Home() {
7981

8082
<Header />
8183
<Hero />
84+
<Information />
8285
<FAQ />
8386
<Footer />
8487
</div>

0 commit comments

Comments
 (0)