|
1 | | -import { type PropsWithChildren } from 'react' |
2 | | -import { FaCheckSquare } from 'react-icons/fa' |
| 1 | +import { Code, Layers, Sparkles, Zap } from 'lucide-react' |
| 2 | +import Link from 'next/link' |
3 | 3 |
|
4 | | -import { PageHeading } from '@/components/page-heading' |
| 4 | +import { Hero } from '@/components/hero' |
5 | 5 | import { |
6 | | - TypographyBold, |
7 | | - TypographyH2, |
8 | | - TypographyList, |
9 | | - TypographyP, |
10 | | -} from '@/components/ui/typography' |
| 6 | + Card, |
| 7 | + CardContent, |
| 8 | + CardDescription, |
| 9 | + CardHeader, |
| 10 | + CardTitle, |
| 11 | +} from '@/components/ui/card' |
| 12 | +import { TypographyBold } from '@/components/ui/typography' |
11 | 13 |
|
12 | 14 | export default function Page() { |
13 | | - const Check = () => <FaCheckSquare color='#1dc355' size={24} /> |
14 | | - const ListItem = ({ children }: PropsWithChildren) => ( |
15 | | - <div className='flex items-center gap-2'> |
16 | | - <Check /> |
17 | | - {children} |
18 | | - </div> |
19 | | - ) |
| 15 | + const features = [ |
| 16 | + { |
| 17 | + title: 'Highly Customizable', |
| 18 | + description: |
| 19 | + 'Style finder patterns, modules, and colors exactly how you want with advanced configuration.', |
| 20 | + icon: <Sparkles className='h-5 w-5 text-primary' />, |
| 21 | + }, |
| 22 | + { |
| 23 | + title: 'Performance Optimized', |
| 24 | + description: |
| 25 | + 'Generates QR codes efficiently without sacrificing quality or bundle size.', |
| 26 | + icon: <Zap className='h-5 w-5 text-primary' />, |
| 27 | + }, |
| 28 | + { |
| 29 | + title: 'SVG-Based Rendering', |
| 30 | + description: 'Crisp and scalable output for web and print, powered by SVG.', |
| 31 | + icon: <Layers className='h-5 w-5 text-primary' />, |
| 32 | + }, |
| 33 | + { |
| 34 | + title: 'Developer-Friendly', |
| 35 | + description: |
| 36 | + 'Built with TypeScript, easy to use, and focused on a great developer experience.', |
| 37 | + icon: <Code className='h-5 w-5 text-primary' />, |
| 38 | + }, |
| 39 | + ] |
| 40 | + |
20 | 41 | return ( |
21 | 42 | <> |
22 | | - <PageHeading heading='Overview' /> |
23 | | - <TypographyH2>The Ultimate Customizable QR Code Generator for React</TypographyH2> |
24 | | - <TypographyP> |
25 | | - Welcome to <TypographyBold>@lglab/react-qr-code</TypographyBold>, the modern, |
26 | | - high-performance QR code generator built for React developers. Designed for |
27 | | - flexibility, this library lets you create highly customizable QR codes with |
28 | | - advanced styling options. |
29 | | - </TypographyP> |
| 43 | + <Hero /> |
| 44 | + <div className='mb-12 grid grid-cols-1 gap-4 md:grid-cols-2'> |
| 45 | + {features.map((feature) => ( |
| 46 | + <Card key={feature.title}> |
| 47 | + <CardHeader className='flex-row items-start gap-4 space-y-0'> |
| 48 | + <div className='mb-2 inline-flex h-9 w-9 items-center justify-center rounded-lg bg-background shadow-sm'> |
| 49 | + {feature.icon} |
| 50 | + </div> |
| 51 | + <div> |
| 52 | + <CardTitle className='text-lg'>{feature.title}</CardTitle> |
| 53 | + <CardDescription className='text-sm leading-relaxed'> |
| 54 | + {feature.description} |
| 55 | + </CardDescription> |
| 56 | + </div> |
| 57 | + </CardHeader> |
| 58 | + </Card> |
| 59 | + ))} |
| 60 | + </div> |
30 | 61 |
|
31 | | - <TypographyList |
32 | | - className='p-0 list-none' |
33 | | - items={[ |
34 | | - { |
35 | | - key: 'Customizable', |
36 | | - content: ( |
37 | | - <ListItem> |
38 | | - <div> |
39 | | - <span className='font-semibold'>Highly Customizable</span> - Style the |
40 | | - finder patterns, modules, and colors exactly how you want. |
41 | | - </div> |
42 | | - </ListItem> |
43 | | - ), |
44 | | - }, |
45 | | - { |
46 | | - key: 'Performance', |
47 | | - content: ( |
48 | | - <ListItem> |
49 | | - <div> |
50 | | - <span className='font-semibold'>Performance Optimized</span> - Generates |
51 | | - QR codes efficiently without sacrificing quality. |
52 | | - </div> |
53 | | - </ListItem> |
54 | | - ), |
55 | | - }, |
56 | | - { |
57 | | - key: 'SVG', |
58 | | - content: ( |
59 | | - <ListItem> |
60 | | - <div> |
61 | | - <span className='font-semibold'>SVG-Based Rendering</span> - Crisp and |
62 | | - scalable output for web and print |
63 | | - </div> |
64 | | - </ListItem> |
65 | | - ), |
66 | | - }, |
67 | | - { |
68 | | - key: 'Developer-Friendly', |
69 | | - content: ( |
70 | | - <ListItem> |
71 | | - <div> |
72 | | - <span className='font-semibold'>Developer-Friendly</span> - Built with |
73 | | - TypeScript, easy to use, and well-documented |
74 | | - </div> |
75 | | - </ListItem> |
76 | | - ), |
77 | | - }, |
78 | | - ]} |
79 | | - ></TypographyList> |
| 62 | + <Card> |
| 63 | + <CardHeader className='flex-row items-start gap-4 space-y-0'> |
| 64 | + <div className='mt-1 shrink-0 rounded-lg bg-background p-2 shadow-sm'> |
| 65 | + <Sparkles className='h-6 w-6 text-primary' /> |
| 66 | + </div> |
| 67 | + <div> |
| 68 | + <CardTitle className='mb-1 text-xl'>Optimized for AI</CardTitle> |
| 69 | + <CardDescription className='text-base text-foreground/80'> |
| 70 | + We provide <TypographyBold>llms.txt</TypographyBold> and{' '} |
| 71 | + <TypographyBold>llms-full.txt</TypographyBold> files to help tools like |
| 72 | + Cursor and Windsurf understand the library documentation instantly. |
| 73 | + </CardDescription> |
| 74 | + </div> |
| 75 | + </CardHeader> |
| 76 | + <CardContent className='pt-0'> |
| 77 | + <Link |
| 78 | + href='/llms-txt' |
| 79 | + className='ml-14 inline-flex items-center gap-1 font-medium text-primary hover:underline' |
| 80 | + > |
| 81 | + Learn how to use with AI tools → |
| 82 | + </Link> |
| 83 | + </CardContent> |
| 84 | + </Card> |
80 | 85 | </> |
81 | 86 | ) |
82 | 87 | } |
0 commit comments