import { getSession } from "@/lib/session"; import { getUserRepositoriesWithStars } from "@/actions/repositories"; import { RepoList } from "@/components/repo-list"; import { Button } from "@/components/ui/button"; import { GitBranch, Plus, Rocket, Code, Users, BookOpen } from "lucide-react"; import Link from "next/link"; export default async function HomePage() { const session = await getSession(); if (!session?.user) { return ; } const username = (session.user as { username?: string }).username || ""; const repos = await getUserRepositoriesWithStars(username); return (

Repositories

{repos.length === 0 ? (

No repositories yet

Create your first repository to start building something awesome

) : ( )}
); } function LandingPage() { return (
Built for developers, by developers

Where the world
builds software

Host and review code, manage projects, and build software alongside millions of developers. Your code, your way.

Everything you need to ship

Powerful features to help you build, test, and deploy your projects faster

); } function FeatureCard({ icon: Icon, title, description, }: { icon: React.ElementType; title: string; description: string; }) { return (

{title}

{description}

); }