|
| 1 | +import Link from 'next/link' |
| 2 | +import { |
| 3 | + ArrowRight, |
| 4 | + BookUser, |
| 5 | + Users, |
| 6 | + BookCheck, |
| 7 | + TicketPlus, |
| 8 | + Library, |
| 9 | + BookCopy, |
| 10 | + CreditCard, |
| 11 | + CalendarClock, |
| 12 | +} from 'lucide-react' |
| 13 | +import { Button } from '@/components/ui/button' |
| 14 | +import { |
| 15 | + Card, |
| 16 | + CardContent, |
| 17 | + CardDescription, |
| 18 | + CardHeader, |
| 19 | + CardTitle, |
| 20 | +} from '@/components/ui/card' |
| 21 | + |
| 22 | +export default function LandingPage() { |
| 23 | + // In a real app, these would come from an API |
| 24 | + const stats = [ |
| 25 | + { label: 'Libraries', value: '25+', icon: Library }, |
| 26 | + { label: 'Active Users', value: '10,000+', icon: Users }, |
| 27 | + { label: 'Books Available', value: '100,000+', icon: BookCheck }, |
| 28 | + { label: 'Daily Borrows', value: '500+', icon: BookCopy }, |
| 29 | + ] |
| 30 | + |
| 31 | + const features = [ |
| 32 | + { |
| 33 | + title: 'Effortless Browsing', |
| 34 | + description: |
| 35 | + 'Find books across libraries in seconds—no more endless searches', |
| 36 | + icon: BookCheck, |
| 37 | + }, |
| 38 | + { |
| 39 | + title: 'Reserve & Collect', |
| 40 | + description: "Reserve books online, pick them up when it's convenient", |
| 41 | + icon: TicketPlus, |
| 42 | + }, |
| 43 | + { |
| 44 | + title: 'Tailored Memberships', |
| 45 | + description: 'Borrow the way that fits you, with options for everyone', |
| 46 | + icon: CreditCard, |
| 47 | + }, |
| 48 | + { |
| 49 | + title: 'Stay on Top of It', |
| 50 | + description: 'Easy tracking for due dates, renewals, and past loans', |
| 51 | + icon: CalendarClock, |
| 52 | + }, |
| 53 | + ] |
| 54 | + |
| 55 | + return ( |
| 56 | + <div className="flex flex-col min-h-screen"> |
| 57 | + <header className="px-4 lg:px-6 h-14 flex items-center border-b justify-between"> |
| 58 | + <Link className="flex items-center justify-center" href="/"> |
| 59 | + <BookUser className="h-6 w-6" /> |
| 60 | + <span className="ml-2 text-lg font-bold">Librarease</span> |
| 61 | + </Link> |
| 62 | + <nav className="flex gap-4 sm:gap-6"> |
| 63 | + <Button variant="ghost" asChild> |
| 64 | + <Link href="/login">Sign In</Link> |
| 65 | + </Button> |
| 66 | + <Button asChild> |
| 67 | + <Link href="/signup">Get Started</Link> |
| 68 | + </Button> |
| 69 | + </nav> |
| 70 | + </header> |
| 71 | + <main className="flex-1"> |
| 72 | + <section className="w-full py-12 md:py-24 lg:py-32 xl:py-48 bg-slate-50"> |
| 73 | + <div className="container px-4 md:px-6 mx-auto"> |
| 74 | + <div className="flex flex-col items-center space-y-4 text-center"> |
| 75 | + <div className="space-y-2"> |
| 76 | + <h1 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl/none"> |
| 77 | + Your Borrowing, Simplified |
| 78 | + </h1> |
| 79 | + <p className="mx-auto max-w-[700px] text-gray-500 md:text-xl"> |
| 80 | + Discover a hassle-free way to browse and reserve books online. |
| 81 | + Borrow what you need, then pick it up from your library—on |
| 82 | + your schedule. |
| 83 | + </p> |
| 84 | + </div> |
| 85 | + <div className="space-y-2 md:space-x-4"> |
| 86 | + <Button size="lg" asChild> |
| 87 | + <Link href="/signup"> |
| 88 | + Start Borrowing Today |
| 89 | + <ArrowRight className="ml-2 h-4 w-4" /> |
| 90 | + </Link> |
| 91 | + </Button> |
| 92 | + <Button variant="outline" size="lg" asChild> |
| 93 | + <Link href="/about">Explore Features</Link> |
| 94 | + </Button> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </section> |
| 99 | + |
| 100 | + <section className="w-full py-12 md:py-24 lg:py-32"> |
| 101 | + <div className="container px-4 md:px-6 mx-auto"> |
| 102 | + <div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-4"> |
| 103 | + {stats.map((stat) => { |
| 104 | + const Icon = stat.icon |
| 105 | + return ( |
| 106 | + <Card key={stat.label} className="relative overflow-hidden"> |
| 107 | + <CardHeader> |
| 108 | + <Icon className="h-8 w-8 text-primary" /> |
| 109 | + </CardHeader> |
| 110 | + <CardContent> |
| 111 | + <div className="text-3xl font-bold">{stat.value}</div> |
| 112 | + <p className="text-sm text-gray-500">{stat.label}</p> |
| 113 | + </CardContent> |
| 114 | + </Card> |
| 115 | + ) |
| 116 | + })} |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + </section> |
| 120 | + |
| 121 | + <section className="w-full py-12 md:py-24 lg:py-32 bg-slate-50"> |
| 122 | + <div className="container px-4 md:px-6 mx-auto"> |
| 123 | + <div className="flex flex-col items-center justify-center space-y-4 text-center"> |
| 124 | + <div className="space-y-2"> |
| 125 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl"> |
| 126 | + Why Librarease? |
| 127 | + </h2> |
| 128 | + <p className="max-w-[900px] text-gray-500 md:text-xl"> |
| 129 | + A smarter, simpler way to connect with your library. |
| 130 | + </p> |
| 131 | + </div> |
| 132 | + <div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-4 mt-8"> |
| 133 | + {features.map((feature) => { |
| 134 | + const Icon = feature.icon |
| 135 | + return ( |
| 136 | + <Card |
| 137 | + key={feature.title} |
| 138 | + className="relative overflow-hidden" |
| 139 | + > |
| 140 | + <CardHeader> |
| 141 | + <Icon className="h-8 w-8 text-primary" /> |
| 142 | + <CardTitle className="text-lg"> |
| 143 | + {feature.title} |
| 144 | + </CardTitle> |
| 145 | + </CardHeader> |
| 146 | + <CardContent> |
| 147 | + <CardDescription>{feature.description}</CardDescription> |
| 148 | + </CardContent> |
| 149 | + </Card> |
| 150 | + ) |
| 151 | + })} |
| 152 | + </div> |
| 153 | + </div> |
| 154 | + </div> |
| 155 | + </section> |
| 156 | + |
| 157 | + <section className="w-full py-12 md:py-24 lg:py-32 border-t"> |
| 158 | + <div className="container px-4 md:px-6 mx-auto"> |
| 159 | + <div className="flex flex-col items-center justify-center space-y-4 text-center"> |
| 160 | + <div className="space-y-2"> |
| 161 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl"> |
| 162 | + Ready to Start? |
| 163 | + </h2> |
| 164 | + <p className="max-w-[600px] text-gray-500 md:text-xl"> |
| 165 | + Join our community today and get access to all features. |
| 166 | + </p> |
| 167 | + </div> |
| 168 | + <Button size="lg" asChild> |
| 169 | + <Link href="/signup"> |
| 170 | + Create Free Account |
| 171 | + <ArrowRight className="ml-2 h-4 w-4" /> |
| 172 | + </Link> |
| 173 | + </Button> |
| 174 | + </div> |
| 175 | + </div> |
| 176 | + </section> |
| 177 | + </main> |
| 178 | + <footer className="flex flex-col gap-2 sm:flex-row py-6 w-full shrink-0 items-center px-4 md:px-6 border-t"> |
| 179 | + <p className="text-xs text-gray-500"> |
| 180 | + © {new Date().getFullYear()} Librarease. All rights reserved. |
| 181 | + </p> |
| 182 | + <nav className="sm:ml-auto flex gap-4 sm:gap-6"> |
| 183 | + <Link className="text-xs hover:underline underline-offset-4" href="#"> |
| 184 | + Terms of Service |
| 185 | + </Link> |
| 186 | + <Link className="text-xs hover:underline underline-offset-4" href="#"> |
| 187 | + Privacy |
| 188 | + </Link> |
| 189 | + </nav> |
| 190 | + </footer> |
| 191 | + </div> |
| 192 | + ) |
| 193 | +} |
0 commit comments