انتقال تمام محتوای متنی سایت به دیتابیس — همه متن‌های فرانت‌اند از GET /api/site خوانده می‌شوند

This commit is contained in:
MMD
2026-09-06 20:16:17 +03:30
parent 8bb303dda2
commit 1fde4e30fc
36 changed files with 1096 additions and 454 deletions
+5 -8
View File
@@ -2,19 +2,16 @@ import React from 'react'
import { PageHero } from '../components/PageHero'
import { Faq } from '../components/home/Faq'
import { ContactSection } from '../components/ContactSection'
import { IMAGES } from '../data/site'
import { usePageHero } from '../api'
export function FaqPage() {
const hero = usePageHero('faq')
return (
<>
<PageHero
title="سوالات متداول"
lead="پیش از تماس، شاید پاسخ پرسش شما همین‌جا باشد. اگر نبود، خوشحال می‌شویم مستقیم صحبت کنیم."
image={IMAGES[1]}
/>
<PageHero title={hero.title} lead={hero.lead} image={hero.image} />
<Faq hideHeading={true} />
<ContactSection />
</>
)