diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 663381f..a7ca202 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,9 @@ - + + + diff --git a/components/MobileShowcase.tsx b/components/MobileShowcase.tsx index e0a45f8..52973cd 100644 --- a/components/MobileShowcase.tsx +++ b/components/MobileShowcase.tsx @@ -1,21 +1,22 @@ 'use client'; -import Link from 'next/link'; +import {PhoneOutlined} from '@ant-design/icons'; import {featuredMachines} from '@/data/products'; import {useLanguage} from '@/app/context/LanguageContext'; import {commerceCopy} from '@/data/commerce'; -import QuantityControl from './QuantityControl'; export default function MobileShowcase() { const {t, dir, locale} = useLanguage(); + const copy = commerceCopy[locale]; + const contact = t.contactInfo; return (
-
+
{featuredMachines(t.machines).map(machine => (
{/**/} @@ -31,12 +32,26 @@ export default function MobileShowcase() { {/*
- {commerceCopy[locale].details} + {copy.details}
*/}
))}
+ +
+

{copy.supportOrderTitle}

+

{copy.supportOrderDescription}

+ + + {copy.callSupport} + {contact.orderPhone} + +
); } diff --git a/components/ShowcaseSection.tsx b/components/ShowcaseSection.tsx index 4fb8219..6043a2a 100644 --- a/components/ShowcaseSection.tsx +++ b/components/ShowcaseSection.tsx @@ -2,6 +2,7 @@ import {useEffect, useState} from 'react'; import Link from 'next/link'; +import {PhoneOutlined} from '@ant-design/icons'; import {useLanguage} from '@/app/context/LanguageContext'; import {commerceCopy} from '@/data/commerce'; import HorizontalShowcase from './HorizontalShowcase'; @@ -10,7 +11,7 @@ import MobileShowcase from './MobileShowcase'; const MOBILE_BREAKPOINT = 768; export default function ShowcaseSection() { - const {locale} = useLanguage(); + const {t, locale} = useLanguage(); const copy = commerceCopy[locale]; const [isMobile, setIsMobile] = useState(null); @@ -26,7 +27,29 @@ export default function ShowcaseSection() { }, []); if (isMobile === null) return null; - if (!isMobile) return ; + if (!isMobile) + return ( + <> + +
+
+
+

{copy.supportOrderTitle}

+

{copy.supportOrderDescription}

+
+ + + {copy.callSupport} + {t.contactInfo.orderPhone} + +
+
+ + ); return ( <> diff --git a/data/commerce.ts b/data/commerce.ts index 91bb705..b66003d 100644 --- a/data/commerce.ts +++ b/data/commerce.ts @@ -25,6 +25,9 @@ const fa = { specifications: 'ویژگی‌های دستگاه', model: 'مدل دستگاه', gallery: 'تصاویر دستگاه', + supportOrderTitle: 'تماس با پشتیبانی و ثبت سفارش', + supportOrderDescription: 'برای مشاوره خرید، بررسی ظرفیت دستگاه و ثبت سفارش مستقیم با تیم فروش تماس بگیرید.', + callSupport: 'تماس برای خرید', baseImage: 'نمای اصلی', alternateImage: 'نمای جایگزین', developmentTitle: 'روبات مارکت در حال توسعه است', @@ -60,6 +63,10 @@ export const commerceCopy: Record> = { specifications: 'Machine features', model: 'Machine model', gallery: 'Machine images', + supportOrderTitle: 'Support and ordering', + supportOrderDescription: + 'Call the sales team for purchase guidance, machine capacity review, and direct ordering.', + callSupport: 'Call to order', baseImage: 'Main view', alternateImage: 'Alternate view', developmentTitle: 'Robot Market is under development',