-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
94 lines (89 loc) · 3.31 KB
/
page.tsx
File metadata and controls
94 lines (89 loc) · 3.31 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { Code, Layers, Sparkles, Zap } from 'lucide-react'
import type { Metadata } from 'next'
import Link from 'next/link'
import { Hero } from '@/components/hero'
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from '@/components/ui/card'
import { TypographyBold } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'Overview',
description:
'Overview of the React QR Code library, including key features, performance characteristics, and links to installation, demo, and documentation.',
}
export default function Page() {
const features = [
{
title: 'Highly Customizable',
description:
'Style finder patterns, modules, and colors exactly how you want with advanced configuration.',
icon: <Sparkles className='h-4 w-4 text-primary' />,
},
{
title: 'Performance Optimized',
description:
'Generates QR codes efficiently without sacrificing quality or bundle size.',
icon: <Zap className='h-4 w-4 text-primary' />,
},
{
title: 'SVG-Based Rendering',
description: 'Crisp and scalable output for web and print, powered by SVG.',
icon: <Layers className='h-4 w-4 text-primary' />,
},
{
title: 'Developer-Friendly',
description:
'Built with TypeScript, easy to use, and focused on a great developer experience.',
icon: <Code className='h-4 w-4 text-primary' />,
},
]
return (
<>
<Hero />
<div className='mb-4 grid grid-cols-1 gap-4 lg:grid-cols-2 max-w-full md:max-w-4xl mx-auto'>
{features.map((feature) => (
<Card key={feature.title} className='shadow-xs'>
<CardHeader className='flex-row items-start gap-4 space-y-0'>
<div className='mb-2 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-background shadow-sm'>
{feature.icon}
</div>
<div className='space-y-1'>
<CardTitle className='text-lg'>{feature.title}</CardTitle>
<CardDescription className='text-sm leading-relaxed'>
{feature.description}
</CardDescription>
</div>
</CardHeader>
</Card>
))}
</div>
<Card className='max-w-full md:max-w-4xl mx-auto shadow-xs'>
<CardHeader className='flex-row items-start gap-4 space-y-0'>
<div className='mt-1 shrink-0 rounded-lg bg-background p-2 shadow-sm'>
<Sparkles className='h-4 w-4 text-primary' />
</div>
<div>
<CardTitle className='mb-1 text-xl'>Optimized for AI</CardTitle>
<CardDescription className='text-base text-foreground/80'>
We provide <TypographyBold>llms.txt</TypographyBold> and{' '}
<TypographyBold>llms-full.txt</TypographyBold> files to help tools like
Cursor and Windsurf understand the library documentation instantly.
</CardDescription>
</div>
</CardHeader>
<CardContent className='pt-0'>
<Link
href='/llms-txt'
className='ml-14 inline-flex items-center gap-1 font-medium text-primary hover:underline'
>
Learn how to use with AI tools →
</Link>
</CardContent>
</Card>
</>
)
}