diff --git a/src/app/page.tsx b/src/app/page.tsx index 617e021..6acff19 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,7 @@ import { fetchMainPageContent } from '@/features/pages/services/pages.service'; import { AboutSection } from '@/widgets/about-section'; +import { AppDownloadSection } from '@/widgets/app-download-section'; import { CharitySection } from '@/widgets/charity-section'; import { CtaSection } from '@/widgets/cta-section'; import { HeroSection } from '@/widgets/hero-section'; @@ -18,6 +19,7 @@ export default async function Home() { return (
+ diff --git a/src/shared/components/app-store-buttons.tsx b/src/shared/components/app-store-buttons.tsx new file mode 100644 index 0000000..60d87ad --- /dev/null +++ b/src/shared/components/app-store-buttons.tsx @@ -0,0 +1,91 @@ +'use client'; + +import { useTextController } from '@/shared/language/hooks/use-text-controller'; + +export const AppStoreButtons = ({ className = '' }: { className?: string }) => { + const { t } = useTextController(); + + const playStoreLink = t('play.google.com'); + const appStoreLink = t('app.store'); + + return ( + + ); +}; diff --git a/src/widgets/app-download-section.tsx b/src/widgets/app-download-section.tsx new file mode 100644 index 0000000..a297c0f --- /dev/null +++ b/src/widgets/app-download-section.tsx @@ -0,0 +1,47 @@ +'use client'; + +import Image from 'next/image'; + +import { Container } from '@/shared/components/container'; +import { useTextController } from '@/shared/language/hooks/use-text-controller'; +import { useMediaController } from '@/shared/media/hooks/use-media-controller'; +import { AppStoreButtons } from '@/shared/components/app-store-buttons'; + +export const AppDownloadSection = () => { + const { t } = useTextController(); + const { m } = useMediaController(); + + return ( +
+ +
+
+

+ {t('common.name')} всегда с вами +

+

+ Заправляйтесь быстрее, копите баллы и следите за акциями в нашем мобильном приложении. Ваш верный помощник на дорогах Таджикистана. +

+
+ + + +
+
+ + + + Бонусная карта в телефоне +
+
+ + + + История заправок +
+
+
+
+
+ ); +}; diff --git a/src/widgets/cta-section.tsx b/src/widgets/cta-section.tsx index 75482a5..f56c658 100644 --- a/src/widgets/cta-section.tsx +++ b/src/widgets/cta-section.tsx @@ -1,10 +1,7 @@ 'use client'; -import Link from 'next/link'; - import { Container } from '@/shared/components/container'; import { useTextController } from '@/shared/language/hooks/use-text-controller'; -import { Button } from '@/shared/shadcn-ui/button'; export const CtaSection = () => { const { t } = useTextController(); @@ -17,9 +14,9 @@ export const CtaSection = () => { {t('home.cta.title')}

{t('home.cta.description')}

-

- {t('common.buttons.purchaseCardAtGasStations')} -

+

+ {t('common.buttons.purchaseCardAtGasStations')} +

diff --git a/src/widgets/footer.tsx b/src/widgets/footer.tsx index b9bd70d..a8fb7d4 100644 --- a/src/widgets/footer.tsx +++ b/src/widgets/footer.tsx @@ -4,6 +4,7 @@ import { Fuel, Mail, MapPin, Phone } from 'lucide-react'; import Link from 'next/link'; import { useTextController } from '@/shared/language/hooks/use-text-controller'; +import { AppStoreButtons } from '@/shared/components/app-store-buttons'; import { Logo } from '@/shared/assets/logo'; export const Footer = () => { @@ -19,7 +20,7 @@ export const Footer = () => {

{t('home.hero.description')}

-
+ +
diff --git a/src/widgets/hero-section.tsx b/src/widgets/hero-section.tsx index bf3f524..32d974a 100644 --- a/src/widgets/hero-section.tsx +++ b/src/widgets/hero-section.tsx @@ -7,6 +7,7 @@ import { useEffect } from 'react'; import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useMediaController } from '@/shared/media/hooks/use-media-controller'; +import { AppStoreButtons } from '@/shared/components/app-store-buttons'; import { Button } from '@/shared/shadcn-ui/button'; export const HeroSection = () => {