Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apps/web/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Navbar } from "@/components/navbar"
import { Hero } from "@/components/hero"
import { Features } from "@/components/features"
import { Modes } from "@/components/modes"
import { InputFormats } from "@/components/input-formats"
import { Install } from "@/components/install"
import { CTA } from "@/components/cta"
import { Footer } from "@/components/footer"

export default function Page() {
return (
Expand All @@ -9,6 +16,8 @@ export default function Page() {
<Modes />
<InputFormats />
<Install />
<CTA />
<Footer />
</main>
)
}
51 changes: 51 additions & 0 deletions apps/web/components/cta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import Link from "next/link"
import { Button } from "@/components/ui/button"
import { ArrowRight, Github } from "lucide-react"

export function CTA() {
return (
<section className="py-24 md:py-32">
<div className="mx-auto max-w-6xl px-6">
<div className="relative overflow-hidden rounded-2xl border border-border bg-card p-12 text-center md:p-20">
{/* Subtle glow */}
<div
className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 h-[400px] w-[600px] rounded-full opacity-[0.05]"
style={{
background:
"radial-gradient(ellipse, hsl(160 84% 39%) 0%, transparent 70%)",
}}
/>

<div className="relative">
<h2 className="text-balance text-3xl font-bold tracking-tight text-foreground md:text-4xl">
Stop guessing. Start understanding.
</h2>
<p className="mx-auto mt-4 max-w-xl text-pretty text-muted-foreground leading-relaxed">
Run a single command and get a clear explanation of any
public GitHub repository.
</p>

<div className="mt-8 flex flex-col items-center gap-4 sm:flex-row sm:justify-center">
<Button asChild size="lg" className="gap-2 px-6">
<Link href="#install">
Install Now
<ArrowRight className="h-4 w-4" />
</Link>
</Button>
<Button asChild variant="outline" size="lg" className="gap-2 px-6 bg-transparent">
<Link
href="https://github.com/calchiwo/ExplainThisRepo"
target="_blank"
rel="noopener noreferrer"
>
<Github className="h-4 w-4" />
Star on GitHub
</Link>
</Button>
</div>
</div>
</div>
</div>
</section>
)
}
68 changes: 68 additions & 0 deletions apps/web/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import Link from "next/link"
import { Terminal } from "lucide-react"

export function Footer() {
return (
<footer className="border-t border-border py-12">
<div className="mx-auto max-w-6xl px-6">
<div className="flex flex-col items-center gap-8 md:flex-row md:justify-between">
<div className="flex items-center gap-2.5">
<div className="flex h-7 w-7 items-center justify-center rounded-lg bg-primary">
<Terminal className="h-3.5 w-3.5 text-primary-foreground" />
</div>
<span className="text-sm font-semibold text-foreground">
ExplainThisRepo
</span>
</div>

<div className="flex items-center gap-6">
<Link
href="https://pypi.org/project/explainthisrepo/"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
PyPI
</Link>
<Link
href="https://www.npmjs.com/package/explainthisrepo"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
npm
</Link>
<Link
href="https://github.com/calchiwo/ExplainThisRepo"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
GitHub
</Link>
<Link
href="https://x.com/calchiwo"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
Twitter
</Link>
</div>

<p className="text-xs text-muted-foreground">
MIT License. Built by{" "}
<Link
href="https://calebwodi.vercel.app"
target="_blank"
rel="noopener noreferrer"
className="text-foreground underline underline-offset-4 transition-colors hover:text-primary"
>
Caleb Wodi
</Link>
</p>
</div>
</div>
</footer>
)
}