Skip to content

Commit a3101aa

Browse files
authored
Add how it works section to reviewer landing page (#8884)
1 parent 11f1c06 commit a3101aa

File tree

1 file changed

+63
-2
lines changed

1 file changed

+63
-2
lines changed

apps/web-roo-code/src/app/reviewer/ReviewerContent.tsx

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
"use client"
22

3-
import { ArrowRight, Blocks, BookMarked, ListChecks, LucideIcon } from "lucide-react"
3+
import {
4+
ArrowRight,
5+
Blocks,
6+
BookMarked,
7+
ListChecks,
8+
LucideIcon,
9+
GitPullRequest,
10+
Key,
11+
MessageSquareCode,
12+
} from "lucide-react"
413
import Image from "next/image"
514

615
import { Button } from "@/components/ui"
@@ -16,6 +25,26 @@ interface Feature {
1625
logos?: string[]
1726
}
1827

28+
const workflowSteps: Feature[] = [
29+
{
30+
icon: GitPullRequest,
31+
title: "1. Connect Your Repository",
32+
description: "Link your GitHub repository and configure which branches and pull requests should be reviewed.",
33+
},
34+
{
35+
icon: Key,
36+
title: "2. Add Your API Key",
37+
description:
38+
"Provide your AI provider API key and set your review preferences, custom rules, and quality standards.",
39+
},
40+
{
41+
icon: MessageSquareCode,
42+
title: "3. Get Review Comments",
43+
description:
44+
"Every pull request gets detailed GitHub comments in minutes from a Roo Code agent highlighting issues and suggesting improvements.",
45+
},
46+
]
47+
1948
const howItWorks: Feature[] = [
2049
{
2150
icon: Blocks,
@@ -68,7 +97,7 @@ export function ReviewerContent() {
6897
<p>
6998
Roo Code&apos;s PR Reviewer flips the script: you bring your own key and
7099
leverage it to the max – to find real issues, increase code quality and keep
71-
your PR queue moving.
100+
your pull request queue moving.
72101
</p>
73102
</div>
74103
</div>
@@ -109,6 +138,38 @@ export function ReviewerContent() {
109138
</div>
110139
</section>
111140

141+
{/* How It Works Section */}
142+
<section className="relative overflow-hidden border-t border-border py-32">
143+
<div className="container relative z-10 mx-auto px-4 sm:px-6 lg:px-8">
144+
<div className="mx-auto mb-12 md:mb-24 max-w-5xl text-center">
145+
<div>
146+
<h2 className="text-4xl font-bold tracking-tight sm:text-5xl">How It Works</h2>
147+
</div>
148+
</div>
149+
150+
<div className="relative mx-auto md:max-w-[1200px]">
151+
<ul className="grid grid-cols-1 place-items-center gap-6 md:grid-cols-3 lg:gap-8">
152+
{workflowSteps.map((step, index) => {
153+
const Icon = step.icon
154+
return (
155+
<li
156+
key={index}
157+
className="relative h-full border border-border rounded-2xl bg-background p-8 transition-all duration-300 hover:shadow-lg">
158+
<Icon className="size-6 text-foreground/80" />
159+
<h3 className="mb-3 mt-3 text-xl font-semibold text-foreground">
160+
{step.title}
161+
</h3>
162+
<div className="leading-relaxed font-light text-muted-foreground">
163+
{step.description}
164+
</div>
165+
</li>
166+
)
167+
})}
168+
</ul>
169+
</div>
170+
</div>
171+
</section>
172+
112173
<section className="relative overflow-hidden border-t border-border py-32">
113174
<div className="container relative z-10 mx-auto px-4 sm:px-6 lg:px-8">
114175
<div className="mx-auto mb-12 md:mb-24 max-w-5xl text-center">

0 commit comments

Comments
 (0)