page home responsive & change component element & page blog item

This commit is contained in:
Ehsan
2024-08-15 10:10:57 +03:30
parent 1341253384
commit fd3b82143b
44 changed files with 4149 additions and 103 deletions
+7 -11
View File
@@ -1,17 +1,13 @@
import Image from "next/image"
import Caption from "./Caption";
import SocialMedia from "./SocialMedia";
import CommentUser from "./commentUser";
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 className="w-[68%]">
<Caption data={data} />
<SocialMedia />
<CommentUser data={data} />
</div>
)
}