landing api

This commit is contained in:
hamid zarghami
2025-04-14 15:31:57 +03:30
parent 15af39fc84
commit 74c47893dd
25 changed files with 3365 additions and 124 deletions
+11 -3
View File
@@ -1,8 +1,11 @@
import BlogItem from '@/components/BlogItem'
import SectionHeader from '@/components/SectionHeader'
import { FC } from 'react'
import { useGetLanding } from './hooks/useHomeData'
const Blog: FC = () => {
const { data } = useGetLanding()
return (
<div className='xl:mt-24 mt-14 max-w-maxWidth mx-auto'>
<SectionHeader
@@ -10,9 +13,14 @@ const Blog: FC = () => {
/>
<div className='flex xl:flex-row flex-col gap-8 xl:mt-16 mt-10 items-center'>
<BlogItem />
<BlogItem />
<BlogItem />
{
data?.data?.pinnedBlogs?.map((item) => {
return (
<BlogItem key={item.id} item={item} />
)
})
}
</div>
</div>
)