|
| 1 | +import { ArrowRight } from "lucide-react" |
| 2 | +import type { Metadata } from "next" |
| 3 | +import Link from "next/link" |
| 4 | + |
| 5 | +import { Button } from "@/components/ui" |
| 6 | +import { AnimatedBackground } from "@/components/homepage" |
| 7 | +import { SEO } from "@/lib/seo" |
| 8 | +import { EXTERNAL_LINKS } from "@/lib/constants" |
| 9 | + |
| 10 | +const TITLE = "Roo Code Extension" |
| 11 | +const DESCRIPTION = "Open-source VS Code extension that turns your editor into an AI dev team. Works with any model." |
| 12 | +const PATH = "/extension" |
| 13 | +const OG_IMAGE = SEO.ogImage |
| 14 | + |
| 15 | +export const metadata: Metadata = { |
| 16 | + title: TITLE, |
| 17 | + description: DESCRIPTION, |
| 18 | + alternates: { canonical: `${SEO.url}${PATH}` }, |
| 19 | + openGraph: { |
| 20 | + title: TITLE, |
| 21 | + description: DESCRIPTION, |
| 22 | + url: `${SEO.url}${PATH}`, |
| 23 | + siteName: SEO.name, |
| 24 | + images: [{ url: OG_IMAGE.url, width: OG_IMAGE.width, height: OG_IMAGE.height, alt: OG_IMAGE.alt }], |
| 25 | + locale: SEO.locale, |
| 26 | + type: "website", |
| 27 | + }, |
| 28 | + twitter: { |
| 29 | + card: SEO.twitterCard, |
| 30 | + title: TITLE, |
| 31 | + description: DESCRIPTION, |
| 32 | + images: [OG_IMAGE.url], |
| 33 | + }, |
| 34 | + keywords: [...SEO.keywords, "VS Code extension", "Roo Code extension"], |
| 35 | +} |
| 36 | + |
| 37 | +export default function ExtensionPage() { |
| 38 | + const breadcrumbLd = { |
| 39 | + "@context": "https://schema.org", |
| 40 | + "@type": "BreadcrumbList", |
| 41 | + itemListElement: [ |
| 42 | + { "@type": "ListItem", position: 1, name: "Home", item: SEO.url }, |
| 43 | + { "@type": "ListItem", position: 2, name: "Extension", item: `${SEO.url}${PATH}` }, |
| 44 | + ], |
| 45 | + } |
| 46 | + |
| 47 | + return ( |
| 48 | + <> |
| 49 | + <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbLd) }} /> |
| 50 | + <section className="relative flex md:h-[calc(80vh-theme(spacing.12))] items-center overflow-hidden"> |
| 51 | + <AnimatedBackground /> |
| 52 | + <div className="container relative flex items-center h-full z-10 mx-auto px-4 sm:px-6 lg:px-8"> |
| 53 | + <div className="grid h-full relative gap-8 lg:grid-cols-2"> |
| 54 | + <div className="flex flex-col px-4 justify-center space-y-6 sm:space-y-8"> |
| 55 | + <div> |
| 56 | + <h1 className="text-4xl font-bold tracking-tight mt-8 text-center md:text-left md:text-4xl lg:text-5xl lg:mt-0"> |
| 57 | + Roo Code Extension |
| 58 | + </h1> |
| 59 | + <p className="mt-4 max-w-md text-lg text-muted-foreground text-center md:text-left sm:mt-6"> |
| 60 | + Open-source AI coding agent that lives in VS Code. Multi-step, project‑wide context, |
| 61 | + and works with any model. |
| 62 | + </p> |
| 63 | + </div> |
| 64 | + <div className="flex flex-col space-y-3 sm:flex-row sm:space-x-4 sm:space-y-0"> |
| 65 | + <Button |
| 66 | + size="lg" |
| 67 | + className="w-full hover:bg-gray-200 dark:bg-white dark:text-black sm:w-auto"> |
| 68 | + <a |
| 69 | + href={EXTERNAL_LINKS.MARKETPLACE} |
| 70 | + target="_blank" |
| 71 | + rel="noreferrer" |
| 72 | + className="flex w-full items-center justify-center"> |
| 73 | + Install VS Code Extension |
| 74 | + <ArrowRight className="ml-2" /> |
| 75 | + </a> |
| 76 | + </Button> |
| 77 | + <Button |
| 78 | + variant="outline" |
| 79 | + size="lg" |
| 80 | + className="w-full sm:w-auto bg-white/20 dark:bg-white/10 backdrop-blur-sm border border-black/40 dark:border-white/30 hover:border-blue-400 hover:bg-white/30 dark:hover:bg-white/20 hover:shadow-[0_0_20px_rgba(59,130,246,0.5)] transition-all duration-300"> |
| 81 | + <a |
| 82 | + href={EXTERNAL_LINKS.DOCUMENTATION} |
| 83 | + target="_blank" |
| 84 | + rel="noreferrer" |
| 85 | + className="flex w-full items-center justify-center"> |
| 86 | + Docs |
| 87 | + <ArrowRight className="ml-2" /> |
| 88 | + </a> |
| 89 | + </Button> |
| 90 | + </div> |
| 91 | + <div className="text-sm text-muted-foreground text-center md:text-left"> |
| 92 | + <Link href="/pricing" className="underline underline-offset-4 hover:text-foreground"> |
| 93 | + Pricing |
| 94 | + </Link> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + </section> |
| 100 | + </> |
| 101 | + ) |
| 102 | +} |
0 commit comments