feat(ui): page liste des cartes avec lien création (F-08)
Route /cards montant CardList + action 'Nouvelle carte' vers /cards/new.
This commit is contained in:
1 parent
d82a82baf3
commit
b030896e06
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
import Link from 'next/link'
|
||||
import { CardList } from '@/components/card-list'
|
||||
|
||||
export const metadata = { title: 'Cartes' }
|
||||
|
||||
export default function CardsPage() {
|
||||
return (
|
||||
<main className="mx-auto max-w-3xl px-4 py-8">
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<h1 className="text-2xl font-bold text-slate-900">Cartes</h1>
|
||||
<Link
|
||||
href="/cards/new"
|
||||
className="rounded-lg bg-slate-900 px-4 py-2 text-sm font-medium text-white hover:bg-slate-700"
|
||||
>
|
||||
Nouvelle carte
|
||||
</Link>
|
||||
</div>
|
||||
<CardList />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user