diff --git a/src/shared/components/promotion-slider.tsx b/src/shared/components/promotion-slider.tsx index 3b6bd1b..1c1106a 100644 --- a/src/shared/components/promotion-slider.tsx +++ b/src/shared/components/promotion-slider.tsx @@ -74,68 +74,64 @@ export default function PromotionSlider() { }; return ( -
-
-
- {promotions.map((promo) => ( -
- -
- {promo.title} +
+
+ {promotions.map((promo) => ( +
+ +
+ {promo.title} +
+ +

{promo.title}

+

+ {promo.description} +

+
+ + Действует до: {promo.validUntil} + +
- -

{promo.title}

-

- {promo.description} -

-
- - Действует до: {promo.validUntil} - - -
-
-
-
- ))} -
+ + +
+ ))}
- - + + + {Object.entries(languages).map(([code, { name, flag }]) => ( + { + setLanguage(code as Language); + setOpen(false); + }} + > + {flag} + {name} + {code === language && } + + ))} + + + ); +} diff --git a/src/shared/providers/providers.tsx b/src/shared/providers/providers.tsx index d4fa91b..f2c02cd 100644 --- a/src/shared/providers/providers.tsx +++ b/src/shared/providers/providers.tsx @@ -2,11 +2,11 @@ import { Provider } from 'react-redux'; +import { LanguageProvider } from '../language'; import { store } from '../store'; import { ThemeProvider } from '../theme/theme-provider'; import { AosProvider } from './aos-provider'; import { Toaster } from './toaster'; -import { LanguageProvider } from '../language'; type ProvidersProps = { children: React.ReactNode; diff --git a/src/widgets/about-section.tsx b/src/widgets/about-section.tsx index 08455c4..11d8a6b 100644 --- a/src/widgets/about-section.tsx +++ b/src/widgets/about-section.tsx @@ -1,30 +1,27 @@ +'use client'; + import { Users } from 'lucide-react'; import Image from 'next/image'; import AboutCounter from '@/shared/components/about-counter'; +import { useLanguage } from '@/shared/language'; export const AboutSection = () => { + const { t } = useLanguage(); + return (
-
+

- О нашей компании + {t('home.about.title')}

-

- Наша сеть заправок является одной из ведущих в Таджикистане. Мы - предоставляем качественное топливо и высокий уровень обслуживания - для наших клиентов уже более 15 лет. -

-

- Мы постоянно развиваемся, открывая новые станции и улучшая сервис - на существующих. Наша цель - сделать заправку автомобиля - максимально удобной и быстрой для каждого клиента. -

+

{t('home.about.description1')}

+

{t('home.about.description2')}

@@ -33,9 +30,11 @@ export const AboutSection = () => {
-

Качественное топливо

+

+ {t('home.about.features.quality.title')} +

- Мы гарантируем высокое качество нашего топлива + {t('home.about.features.quality.description')}

@@ -45,10 +44,10 @@ export const AboutSection = () => {

- Современное оборудование + {t('home.about.features.equipment.title')}

- Все наши станции оснащены современным оборудованием + {t('home.about.features.equipment.description')}

@@ -58,18 +57,18 @@ export const AboutSection = () => {

- Профессиональный персонал + {t('home.about.features.staff.title')}

- Наши сотрудники - профессионалы своего дела + {t('home.about.features.staff.description')}

{ + const { t } = useLanguage(); + return (
{

- Благотворительный фонд + {t('home.charity.title')}

- Наш благотворительный фонд был создан для поддержки социально - значимых проектов в Таджикистане. Мы стремимся внести свой вклад в - развитие общества и помочь тем, кто в этом нуждается. -

-

- Основные направления деятельности нашего фонда: + {t('home.charity.description')}

+

{t('home.charity.directions')}

  • - Поддержка образовательных программ + {t('home.charity.education')}
  • - Помощь детям из малообеспеченных семей + {t('home.charity.children')}
  • - Экологические инициативы + {t('home.charity.ecology')}
  • - Поддержка спортивных мероприятий + {t('home.charity.sports')}
diff --git a/src/widgets/cta-section.tsx b/src/widgets/cta-section.tsx index 6d358e5..3e2f9e5 100644 --- a/src/widgets/cta-section.tsx +++ b/src/widgets/cta-section.tsx @@ -1,21 +1,23 @@ +'use client'; + +import { useLanguage } from '@/shared/language'; import { Button } from '@/shared/shadcn-ui/button'; export const CtaSection = () => { + const { t } = useLanguage(); + return (

- Присоединяйтесь к нам + {t('home.cta.title')}

-

- Станьте частью нашей сети. Получайте специальные предложения, бонусы - и скидки. -

+

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

- - +
diff --git a/src/widgets/footer.tsx b/src/widgets/footer.tsx index 9593170..bdbc63d 100644 --- a/src/widgets/footer.tsx +++ b/src/widgets/footer.tsx @@ -1,23 +1,25 @@ +'use client'; + import { Fuel, Mail, MapPin, Phone } from 'lucide-react'; import Link from 'next/link'; import '.././app/globals.css' +import { useLanguage } from '@/shared/language'; import { Button } from '@/shared/shadcn-ui/button'; export const Footer = () => { + const { t } = useLanguage(); + return ( -
@@ -99,7 +103,7 @@ export const VacanciesSection = () => {
@@ -133,7 +137,7 @@ export const VacanciesSection = () => { @@ -146,7 +150,8 @@ export const VacanciesSection = () => {