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
+13 -2
View File
@@ -1,7 +1,12 @@
'use client'
import { FC } from 'react'
import ServiceItem from '@/components/ServiceItem'
import { useGetLanding } from './hooks/useHomeData'
const DanakSuggestedService: FC = () => {
const { data } = useGetLanding()
return (
<div className='max-w-maxWidth mx-auto xl:mt-20 mt-12'>
<h2 className='xl:text-2xl text-sm font-bold text-center xl:text-right'>
@@ -9,8 +14,14 @@ const DanakSuggestedService: FC = () => {
</h2>
<div className='xl:mt-14 mt-10 flex xl:flex-row flex-col gap-8'>
<ServiceItem />
<ServiceItem />
{
data?.data?.danakSuggestServices?.map((item) => {
return (
<ServiceItem key={item.id} item={item} />
)
})
}
</div>
</div>
)