page.tsx237 lines, 8.6 KB
| 1 | import Link from "next/link"; |
| 2 | import { |
| 3 | ArrowRight, |
| 4 | CheckCircle, |
| 5 | GitPullRequest, |
| 6 | GitMerge, |
| 7 | MessageSquare, |
| 8 | ScanSearch, |
| 9 | Shield, |
| 10 | Wand2, |
| 11 | Zap, |
| 12 | } from "lucide-react"; |
| 13 | import { Button } from "@/components/ui/button"; |
| 14 | |
| 15 | export default function HomePage() { |
| 16 | return ( |
| 17 | <div className="min-h-screen bg-background"> |
| 18 | {/* Header */} |
| 19 | <header className="sticky top-0 z-50 border-b border-border/40 bg-background/80 backdrop-blur-lg"> |
| 20 | <div className="mx-auto flex h-14 max-w-5xl items-center justify-between px-6"> |
| 21 | <Link |
| 22 | href="/" |
| 23 | className="font-semibold tracking-tight hover:opacity-80 transition-opacity" |
| 24 | > |
| 25 | CodeReviewAI |
| 26 | </Link> |
| 27 | |
| 28 | <div className="flex items-center gap-2"> |
| 29 | <Button variant="ghost" size="sm" asChild> |
| 30 | <Link href="/sign-in">Sign in</Link> |
| 31 | </Button> |
| 32 | <Button size="sm" asChild> |
| 33 | <Link href="/sign-up">Get started</Link> |
| 34 | </Button> |
| 35 | </div> |
| 36 | </div> |
| 37 | </header> |
| 38 | |
| 39 | <main> |
| 40 | {/* Hero */} |
| 41 | <section className="relative overflow-hidden"> |
| 42 | <div className="absolute inset-0 -z-10"> |
| 43 | <div className="absolute left-1/2 top-0 h-[600px] w-[600px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/[0.03] blur-3xl" /> |
| 44 | </div> |
| 45 | |
| 46 | <div className="mx-auto max-w-2xl px-6 py-24 text-center sm:py-32"> |
| 47 | <h1 className="text-4xl font-semibold tracking-tight sm:text-5xl lg:text-6xl"> |
| 48 | Ship better code, |
| 49 | <br /> |
| 50 | <span className="text-gradient">faster</span> |
| 51 | </h1> |
| 52 | |
| 53 | <p className="mx-auto mt-6 max-w-lg text-muted-foreground leading-relaxed"> |
| 54 | Automated code reviews that catch bugs, security issues, and |
| 55 | maintainability problems before they reach production. |
| 56 | </p> |
| 57 | |
| 58 | <div className="mt-10 flex items-center justify-center gap-3"> |
| 59 | <Button size="lg" asChild> |
| 60 | <Link href="/sign-up"> |
| 61 | Start for free |
| 62 | <ArrowRight className="h-4 w-4" /> |
| 63 | </Link> |
| 64 | </Button> |
| 65 | <Button size="lg" variant="outline" asChild> |
| 66 | <Link href="/sign-in">Sign in</Link> |
| 67 | </Button> |
| 68 | </div> |
| 69 | |
| 70 | <div className="mt-12 flex flex-wrap items-center justify-center gap-6 text-sm text-muted-foreground"> |
| 71 | <span className="flex items-center gap-2"> |
| 72 | <CheckCircle className="h-4 w-4 text-emerald-500" /> |
| 73 | No credit card required |
| 74 | </span> |
| 75 | <span className="flex items-center gap-2"> |
| 76 | <CheckCircle className="h-4 w-4 text-emerald-500" /> |
| 77 | GitHub integration |
| 78 | </span> |
| 79 | <span className="flex items-center gap-2"> |
| 80 | <CheckCircle className="h-4 w-4 text-emerald-500" /> |
| 81 | Private repos supported |
| 82 | </span> |
| 83 | </div> |
| 84 | </div> |
| 85 | </section> |
| 86 | |
| 87 | {/* Features */} |
| 88 | <section className="border-t border-border/40"> |
| 89 | <div className="mx-auto max-w-5xl px-6 py-24"> |
| 90 | <div className="text-center"> |
| 91 | <h2 className="text-2xl font-semibold tracking-tight"> |
| 92 | Everything you need for better reviews |
| 93 | </h2> |
| 94 | <p className="mt-2 text-muted-foreground"> |
| 95 | Focus on building. Let AI handle the repetitive review work. |
| 96 | </p> |
| 97 | </div> |
| 98 | |
| 99 | <div className="mt-16 grid gap-x-12 gap-y-10 sm:grid-cols-2 lg:grid-cols-3"> |
| 100 | {[ |
| 101 | { |
| 102 | icon: Zap, |
| 103 | title: "Instant feedback", |
| 104 | description: |
| 105 | "Get comprehensive reviews in seconds, not hours.", |
| 106 | }, |
| 107 | { |
| 108 | icon: Shield, |
| 109 | title: "Security scanning", |
| 110 | description: |
| 111 | "Detect vulnerabilities and secrets automatically.", |
| 112 | }, |
| 113 | { |
| 114 | icon: MessageSquare, |
| 115 | title: "Clear suggestions", |
| 116 | description: "Actionable feedback you can apply immediately.", |
| 117 | }, |
| 118 | { |
| 119 | icon: GitPullRequest, |
| 120 | title: "PR integration", |
| 121 | description: "Reviews appear right in your pull requests.", |
| 122 | }, |
| 123 | { |
| 124 | icon: ScanSearch, |
| 125 | title: "Context aware", |
| 126 | description: "Understands your codebase patterns and style.", |
| 127 | }, |
| 128 | { |
| 129 | icon: Wand2, |
| 130 | title: "Always improving", |
| 131 | description: "Powered by the latest AI models.", |
| 132 | }, |
| 133 | ].map((feature) => ( |
| 134 | <div key={feature.title} className="group"> |
| 135 | <div className="flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10 transition-colors group-hover:bg-primary/15"> |
| 136 | <feature.icon className="h-4 w-4 text-primary" /> |
| 137 | </div> |
| 138 | <h3 className="mt-3 font-medium">{feature.title}</h3> |
| 139 | <p className="mt-1 text-sm text-muted-foreground leading-relaxed"> |
| 140 | {feature.description} |
| 141 | </p> |
| 142 | </div> |
| 143 | ))} |
| 144 | </div> |
| 145 | </div> |
| 146 | </section> |
| 147 | |
| 148 | {/* How it works */} |
| 149 | <section className="border-t border-border/40 bg-muted/30"> |
| 150 | <div className="mx-auto max-w-5xl px-6 py-24"> |
| 151 | <div className="text-center"> |
| 152 | <h2 className="text-2xl font-semibold tracking-tight"> |
| 153 | Up and running in minutes |
| 154 | </h2> |
| 155 | <p className="mt-2 text-muted-foreground"> |
| 156 | Three steps to better code reviews. |
| 157 | </p> |
| 158 | </div> |
| 159 | |
| 160 | <div className="mt-16 grid gap-8 sm:grid-cols-3"> |
| 161 | {[ |
| 162 | { |
| 163 | step: "1", |
| 164 | icon: GitPullRequest, |
| 165 | title: "Connect GitHub", |
| 166 | description: "Sign in and select repositories to enable.", |
| 167 | }, |
| 168 | { |
| 169 | step: "2", |
| 170 | icon: ScanSearch, |
| 171 | title: "Open a PR", |
| 172 | description: |
| 173 | "CodeReviewAI triggers automatically on every pull request.", |
| 174 | }, |
| 175 | { |
| 176 | step: "3", |
| 177 | icon: GitMerge, |
| 178 | title: "Merge with confidence", |
| 179 | description: "Address suggestions and ship faster.", |
| 180 | }, |
| 181 | ].map((item) => ( |
| 182 | <div key={item.step} className="text-center"> |
| 183 | <div className="mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-primary/10"> |
| 184 | <item.icon className="h-5 w-5 text-primary" /> |
| 185 | </div> |
| 186 | <h3 className="mt-4 font-medium">{item.title}</h3> |
| 187 | <p className="mt-1 text-sm text-muted-foreground leading-relaxed"> |
| 188 | {item.description} |
| 189 | </p> |
| 190 | </div> |
| 191 | ))} |
| 192 | </div> |
| 193 | </div> |
| 194 | </section> |
| 195 | |
| 196 | {/* CTA */} |
| 197 | <section className="border-t border-border/40"> |
| 198 | <div className="mx-auto max-w-2xl px-6 py-24 text-center"> |
| 199 | <h2 className="text-2xl font-semibold tracking-tight"> |
| 200 | Ready to improve your code reviews? |
| 201 | </h2> |
| 202 | <p className="mt-2 text-muted-foreground"> |
| 203 | Start free. Upgrade when your team needs more. |
| 204 | </p> |
| 205 | <Button size="lg" className="mt-8" asChild> |
| 206 | <Link href="/sign-up"> |
| 207 | Get started for free |
| 208 | <ArrowRight className="h-4 w-4" /> |
| 209 | </Link> |
| 210 | </Button> |
| 211 | </div> |
| 212 | </section> |
| 213 | </main> |
| 214 | |
| 215 | {/* Footer */} |
| 216 | <footer className="border-t border-border/40"> |
| 217 | <div className="mx-auto flex max-w-5xl items-center justify-between px-6 py-6 text-sm text-muted-foreground"> |
| 218 | <span>© 2025 CodeReviewAI</span> |
| 219 | <div className="flex items-center gap-6"> |
| 220 | <Link |
| 221 | href="/sign-in" |
| 222 | className="hover:text-foreground transition-colors" |
| 223 | > |
| 224 | Sign in |
| 225 | </Link> |
| 226 | <Link |
| 227 | href="/sign-up" |
| 228 | className="hover:text-foreground transition-colors" |
| 229 | > |
| 230 | Get started |
| 231 | </Link> |
| 232 | </div> |
| 233 | </div> |
| 234 | </footer> |
| 235 | </div> |
| 236 | ); |
| 237 | } |