2024-02-14 17:13:13 +01:00
|
|
|
import { PageProps } from '$fresh/server.ts'
|
2024-07-01 13:18:54 +02:00
|
|
|
import { BlogCard, blogMock } from ':components/BlogCard.tsx'
|
2024-02-14 17:13:13 +01:00
|
|
|
|
|
|
|
export default function Projet({ params }: PageProps) {
|
2024-07-01 13:18:54 +02:00
|
|
|
const article = blogMock.filter(blogEntry => blogEntry.name === params.name)[0]
|
2024-02-14 17:13:13 +01:00
|
|
|
|
|
|
|
return (
|
2024-06-06 16:38:52 +02:00
|
|
|
article ? BlogCard(article) : <h3>Article inconnu</h3>
|
2024-02-14 17:13:13 +01:00
|
|
|
)
|
|
|
|
}
|