change data articles and create head and detail page item blog
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user