change data articles and create head and detail page item blog

This commit is contained in:
Ehsan
2024-07-19 22:05:53 +03:30
parent 03e3cc3177
commit 57d33a532c
8 changed files with 94 additions and 17 deletions
+19
View File
@@ -0,0 +1,19 @@
import Image from "next/image"
function Detail({ data }) {
return (
<div>
<Image
className="rounded-[8px] overflow-hidden"
src={data.cover}
alt="cover-blog"
height={570}
width={808}
/>
<div dangerouslySetInnerHTML={{ __html: data.caption }} />
{/* <p >{data.caption}</p> */}
</div>
)
}
export default Detail