1- import { Code , Layers , Sparkles , Zap } from 'lucide-react'
1+ import { ArrowRight , Bot , Code , Layers , Sparkles , Zap } from 'lucide-react'
22import type { Metadata } from 'next'
33import Link from 'next/link'
44
55import { Hero } from '@/components/hero'
6- import {
7- Card ,
8- CardContent ,
9- CardDescription ,
10- CardHeader ,
11- CardTitle ,
12- } from '@/components/ui/card'
136import { TypographyBold } from '@/components/ui/typography'
147
158export const metadata : Metadata = {
@@ -20,77 +13,78 @@ export const metadata: Metadata = {
2013 'React QR Code is a highly customizable and lightweight QR code generator for React applications. Easily style QR codes with unique finder patterns, rounded corners, and customizable colors.' ,
2114}
2215
23- export default function Page ( ) {
24- const features = [
25- {
26- title : 'Highly Customizable' ,
27- description :
28- 'Style finder patterns, modules, and colors exactly how you want with advanced configuration.' ,
29- icon : < Sparkles className = 'h-4 w-4 text-primary' /> ,
30- } ,
31- {
32- title : 'Performance Optimized' ,
33- description :
34- 'Generates QR codes efficiently without sacrificing quality or bundle size.' ,
35- icon : < Zap className = 'h-4 w-4 text-primary' /> ,
36- } ,
37- {
38- title : 'SVG-Based Rendering' ,
39- description : 'Crisp and scalable output for web and print, powered by SVG.' ,
40- icon : < Layers className = 'h-4 w-4 text-primary' /> ,
41- } ,
42- {
43- title : 'Developer-Friendly' ,
44- description :
45- 'Built with TypeScript, easy to use, and focused on a great developer experience.' ,
46- icon : < Code className = 'h-4 w-4 text-primary' /> ,
47- } ,
48- ]
16+ const features = [
17+ {
18+ title : 'Highly Customizable' ,
19+ description :
20+ 'Style finder patterns, modules, and colors exactly how you want with advanced configuration.' ,
21+ icon : Sparkles ,
22+ } ,
23+ {
24+ title : 'Performance Optimized' ,
25+ description :
26+ 'Generates QR codes efficiently without sacrificing quality or bundle size.' ,
27+ icon : Zap ,
28+ } ,
29+ {
30+ title : 'SVG-Based Rendering' ,
31+ description : 'Crisp and scalable output for web and print, powered by SVG.' ,
32+ icon : Layers ,
33+ } ,
34+ {
35+ title : 'Developer-Friendly' ,
36+ description :
37+ 'Built with TypeScript, easy to use, and focused on a great developer experience.' ,
38+ icon : Code ,
39+ } ,
40+ ]
41+
42+ const FeatureIcon = ( { icon : Icon } : { icon : typeof Sparkles } ) => (
43+ < div className = 'inline-flex size-9 shrink-0 items-center justify-center rounded-lg border bg-background shadow-xs' >
44+ < Icon className = 'size-4 text-brand' />
45+ </ div >
46+ )
4947
48+ export default function Page ( ) {
5049 return (
5150 < >
5251 < Hero />
53- < div className = 'mb-4 grid grid-cols-1 gap-4 lg:grid-cols-2 max-w-full md:max-w-4xl mx-auto' >
54- { features . map ( ( feature ) => (
55- < Card key = { feature . title } className = 'shadow-xs' >
56- < CardHeader className = 'flex-row items-start gap-4 space-y-0' >
57- < div className = 'mb-2 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-background shadow-sm' >
58- { feature . icon }
59- </ div >
60- < div className = 'space-y-1' >
61- < CardTitle className = 'text-lg' > { feature . title } </ CardTitle >
62- < CardDescription className = 'text-sm leading-relaxed' >
52+ < div className = 'mx-auto w-full max-w-4xl' >
53+ < div className = 'grid grid-cols-1 overflow-hidden rounded-xl border bg-border gap-px sm:grid-cols-2' >
54+ { features . map ( ( feature ) => (
55+ < div key = { feature . title } className = 'flex flex-col gap-4 bg-background p-6' >
56+ < FeatureIcon icon = { feature . icon } />
57+ < div className = 'space-y-1.5' >
58+ < h3 className = 'font-semibold tracking-tight' > { feature . title } </ h3 >
59+ < p className = 'text-sm leading-relaxed text-muted-foreground' >
6360 { feature . description }
64- </ CardDescription >
61+ </ p >
6562 </ div >
66- </ CardHeader >
67- </ Card >
68- ) ) }
69- </ div >
63+ </ div >
64+ ) ) }
65+ </ div >
7066
71- < Card className = 'max-w-full md:max-w-4xl mx-auto shadow-xs' >
72- < CardHeader className = 'flex-row items-start gap-4 space-y-0' >
73- < div className = 'mt-1 shrink-0 rounded-lg bg-background p-2 shadow-sm' >
74- < Sparkles className = 'h-4 w-4 text-primary' />
67+ < Link
68+ href = '/llms-txt'
69+ className = 'group mt-4 flex flex-col gap-4 rounded-xl border bg-muted/40 p-6 transition-colors hover:bg-muted/70 sm:flex-row sm:items-center'
70+ >
71+ < FeatureIcon icon = { Bot } />
72+ < div className = 'flex-1 space-y-1.5' >
73+ < h3 className = 'font-semibold tracking-tight' > Optimized for AI</ h3 >
74+ < p className = 'text-sm leading-relaxed text-muted-foreground' >
75+ We provide{ ' ' }
76+ < TypographyBold className = 'text-foreground' > llms.txt</ TypographyBold > and{ ' ' }
77+ < TypographyBold className = 'text-foreground' > llms-full.txt</ TypographyBold > { ' ' }
78+ files to help tools like Cursor and Windsurf understand the library
79+ documentation instantly.
80+ </ p >
7581 </ div >
76- < div >
77- < CardTitle className = 'mb-1 text-xl' > Optimized for AI</ CardTitle >
78- < CardDescription className = 'text-base text-foreground/80' >
79- We provide < TypographyBold > llms.txt</ TypographyBold > and{ ' ' }
80- < TypographyBold > llms-full.txt</ TypographyBold > files to help tools like
81- Cursor and Windsurf understand the library documentation instantly.
82- </ CardDescription >
83- </ div >
84- </ CardHeader >
85- < CardContent className = 'pt-0' >
86- < Link
87- href = '/llms-txt'
88- className = 'ml-14 inline-flex items-center gap-1 font-medium text-primary hover:underline'
89- >
90- Learn how to use with AI tools →
91- </ Link >
92- </ CardContent >
93- </ Card >
82+ < span className = 'inline-flex items-center gap-1 text-sm font-medium whitespace-nowrap' >
83+ Learn more
84+ < ArrowRight className = 'size-4 transition-transform group-hover:translate-x-0.5' />
85+ </ span >
86+ </ Link >
87+ </ div >
9488 </ >
9589 )
9690}
0 commit comments