Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/components/category/category-list.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/components/category/category-list.tsx |
| Original SHA-256 | 1738604a549987397837b9952c76cae4cf02398f34838a5fc501565600556b65 |
| Git blob SHA | 284f431dfa6e2b0c543ada51b0c7be63f3ce1c16 |
| Reading-copy SHA-256 | 1738604a549987397837b9952c76cae4cf02398f34838a5fc501565600556b65 |
Recovered source transcript
Download complete source text ↓28 lines · 0.9 KB
import Link from 'next/link'
import { Card, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
import { categories } from '@/lib/categories'
import { getRoute } from '@/lib/routes'
/**
* Renders a grid of category cards linking to their respective pages
*/
export function CategoryList() {
return (
<>
{categories.map(category => (
<Link key={category.slug} href={getRoute('category.page', { category: category.slug })}>
<Card className="h-full transition-all hover:border-primary hover:bg-muted/50">
<CardHeader>
<CardTitle className="flex items-center gap-2">
<category.icon className="h-5 w-5" />
{category.name}
</CardTitle>
<CardDescription>{category.description}</CardDescription>
</CardHeader>
</Card>
</Link>
))}
</>
)
}