fix
This commit is contained in:
@@ -5,6 +5,7 @@ import { FC } from 'react'
|
|||||||
import { Navigation } from 'swiper/modules'
|
import { Navigation } from 'swiper/modules'
|
||||||
import { Swiper, SwiperSlide } from 'swiper/react'
|
import { Swiper, SwiperSlide } from 'swiper/react'
|
||||||
import { useGetLanding } from './hooks/useHomeData';
|
import { useGetLanding } from './hooks/useHomeData';
|
||||||
|
import Link from 'next/link';
|
||||||
|
|
||||||
const HeroSection: FC = () => {
|
const HeroSection: FC = () => {
|
||||||
|
|
||||||
@@ -30,10 +31,12 @@ const HeroSection: FC = () => {
|
|||||||
<p>{item.title}</p>
|
<p>{item.title}</p>
|
||||||
<p className='xl:mt-5 font-bold'>{item.description}</p>
|
<p className='xl:mt-5 font-bold'>{item.description}</p>
|
||||||
|
|
||||||
|
<Link href={item.link}>
|
||||||
<Button
|
<Button
|
||||||
className='xl:mt-12 mt-5 !w-fit px-10 bg-white !text-black'
|
className='xl:mt-12 mt-5 !w-fit px-10 bg-white !text-black'
|
||||||
label='درباره ی ما'
|
label='بیشتر بدانید'
|
||||||
/>
|
/>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export async function generateMetadata(
|
|||||||
const service = queryClient.getQueryData(detailServiceQueryOptions(id).queryKey) as ServiceDetailResponse
|
const service = queryClient.getQueryData(detailServiceQueryOptions(id).queryKey) as ServiceDetailResponse
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: 'مجله داناک' + ' | ' + service.data.danakService.name,
|
title: 'محصولات داناک' + ' | ' + service.data.danakService.name,
|
||||||
description: service.data.danakService.metaDescription,
|
description: service.data.danakService.metaDescription,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user