Compare commits

..

No commits in common. "e8bb8a7830b40aa95d2b825aa0e62c772604bf17" and "1e9e2445e64563fafdf9c228432c1732c28738e9" have entirely different histories.

19 changed files with 937 additions and 877 deletions

View File

@ -56,7 +56,7 @@ interface StationListPanelProps {
selectedStation: number | null; selectedStation: number | null;
activeFilters: string[]; activeFilters: string[];
activeCities: string[]; activeCities: string[];
handleMapStationClick: (id: number) => void; setSelectedStation: (id: number | null) => void;
filterToFieldMap: { [key: string]: keyof Stations[number] }; filterToFieldMap: { [key: string]: keyof Stations[number] };
allFilters: string[]; allFilters: string[];
resetFilters: () => void; resetFilters: () => void;
@ -205,7 +205,7 @@ function StationListPanel({
selectedStation, selectedStation,
activeFilters, activeFilters,
activeCities, activeCities,
handleMapStationClick, setSelectedStation,
filterToFieldMap, filterToFieldMap,
allFilters, allFilters,
resetCities, resetCities,
@ -275,7 +275,7 @@ function StationListPanel({
? 'border-blue-500 bg-blue-50' ? 'border-blue-500 bg-blue-50'
: 'border-gray-200 hover:bg-gray-50' : 'border-gray-200 hover:bg-gray-50'
}`} }`}
onClick={() => handleMapStationClick(station.id)} onClick={() => setSelectedStation(station.id)}
> >
<div className='flex items-start justify-between'> <div className='flex items-start justify-between'>
<h4 className='font-medium'>{station.name}</h4> <h4 className='font-medium'>{station.name}</h4>
@ -365,11 +365,6 @@ export default function GasStationMap({ stations }: GasStationMapProps) {
const [isStationListOpen, setIsStationListOpen] = useState(false); const [isStationListOpen, setIsStationListOpen] = useState(false);
const [activeFilterTab, setActiveFilterTab] = useState('cities'); const [activeFilterTab, setActiveFilterTab] = useState('cities');
useEffect(() => {
if (selectedStation === null) return;
setIsStationListOpen(true);
}, [selectedStation]);
// Все доступные фильтры // Все доступные фильтры
const allFilters = [ const allFilters = [
// 'ДТ', -> нет значения в интерфейсе - TODO: поправить // 'ДТ', -> нет значения в интерфейсе - TODO: поправить
@ -439,16 +434,6 @@ export default function GasStationMap({ stations }: GasStationMapProps) {
[filteredStations], [filteredStations],
); );
const handleMapStationClick = (stationId: number) => {
setSelectedStation(() => {
if (selectedStation !== null && selectedStation === stationId) {
return null;
}
return stationId;
});
};
// Переключение фильтра услуг // Переключение фильтра услуг
const toggleFilter = (filter: string) => { const toggleFilter = (filter: string) => {
setActiveFilters((prev) => setActiveFilters((prev) =>
@ -509,7 +494,7 @@ export default function GasStationMap({ stations }: GasStationMapProps) {
selectedStation={selectedStation} selectedStation={selectedStation}
activeFilters={activeFilters} activeFilters={activeFilters}
activeCities={activeCities} activeCities={activeCities}
handleMapStationClick={handleMapStationClick} setSelectedStation={setSelectedStation}
filterToFieldMap={filterToFieldMap} filterToFieldMap={filterToFieldMap}
allFilters={allFilters} allFilters={allFilters}
resetFilters={resetFilters} resetFilters={resetFilters}
@ -521,7 +506,7 @@ export default function GasStationMap({ stations }: GasStationMapProps) {
<YandexMap <YandexMap
points={points} points={points}
selectedStation={selectedStation} selectedStation={selectedStation}
handleMapStationClick={handleMapStationClick} setSelectedStation={setSelectedStation}
/> />
</div> </div>

View File

@ -7,7 +7,7 @@ import { Point } from '../model';
type YandexMapProps = { type YandexMapProps = {
points: Point[]; points: Point[];
selectedStation: number | null; selectedStation: number | null;
handleMapStationClick: (id: number) => void; setSelectedStation: Dispatch<SetStateAction<number | null>>;
}; };
const mapCenter = [38.53575, 68.77905]; const mapCenter = [38.53575, 68.77905];
@ -15,7 +15,7 @@ const mapCenter = [38.53575, 68.77905];
export const YandexMap = ({ export const YandexMap = ({
points, points,
selectedStation, selectedStation,
handleMapStationClick, setSelectedStation,
}: YandexMapProps) => { }: YandexMapProps) => {
return ( return (
<YMaps <YMaps
@ -39,25 +39,30 @@ export const YandexMap = ({
}} }}
className='h-full max-h-[500px] w-full overflow-hidden rounded-md shadow-lg' className='h-full max-h-[500px] w-full overflow-hidden rounded-md shadow-lg'
> >
{points.map((point) => { {points.map((point) => (
const isSelectedStation = selectedStation === point.id; <Placemark
return ( key={point.id}
<Placemark geometry={point.coordinates}
key={point.id} options={{
geometry={point.coordinates} iconLayout: 'default#image',
options={{ iconImageHref:
iconLayout: 'default#image', !selectedStation || selectedStation === point.id
iconImageHref: ? '/map/oriyo-marker.png'
!selectedStation || isSelectedStation : '/map/oriyo-inactive-marker.png',
? '/map/oriyo-marker.png' iconImageSize: selectedStation === point.id ? [70, 70] : [64, 64],
: '/map/oriyo-inactive-marker.png', iconImageOffset: [-24, -36],
iconImageSize: isSelectedStation ? [70, 70] : [64, 64], }}
iconImageOffset: isSelectedStation ? [-28, -40] : [-24, -36], onClick={() =>
}} setSelectedStation(() => {
onClick={() => handleMapStationClick(point.id)} if (selectedStation !== null && selectedStation === point.id) {
/> return null;
); }
})}
return point.id;
})
}
/>
))}
</Map> </Map>
</YMaps> </YMaps>
); );

View File

@ -6,9 +6,10 @@ import Image from 'next/image';
import { AboutUsPageData } from '@/app/api-utlities/@types/about-us'; import { AboutUsPageData } from '@/app/api-utlities/@types/about-us';
import AnimatedCounter from '@/shared/components/animated-counter'; import AnimatedCounter from '@/shared/components/animated-counter';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button';
import { Card, CardContent } from '@/shared/shadcn-ui/card'; import { Card, CardContent } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
import { CompanyTimeline } from '@/widgets/about-page/company-timeline'; import { CompanyTimeline } from '@/widgets/about-page/company-timeline';
import { StationGallery } from '@/widgets/about-page/station-gallery'; import { StationGallery } from '@/widgets/about-page/station-gallery';
@ -61,59 +62,63 @@ export default function AboutPage({ content }: AboutPageProps) {
{/* Company Overview */} {/* Company Overview */}
<Container> <Container>
<div className='grid items-center gap-12 md:grid-cols-2'> <section className='py-16'>
<div data-aos='fade-right'> <div className='container mx-auto'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='grid items-center gap-12 md:grid-cols-2'>
<Fuel className='h-6 w-6 text-red-600' /> <div data-aos='fade-right'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'> <Fuel className='h-6 w-6 text-red-600' />
{t('about.overview.title')}
</h2>
<p className='mb-6 text-gray-600'>
{t('about.overview.description1')}
</p>
<p className='mb-6 text-gray-600'>
{t('about.overview.description2')}
</p>
<p className='mb-6 text-gray-600'>
{t('about.overview.description3')}
</p>
<div className='mb-6 grid grid-cols-1 gap-4 md:grid-cols-2'>
{[0, 1, 2, 3].map((index) => (
<div key={index} className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>
{t(`about.overview.benefits.${index}.title`)}
</h3>
<p className='text-gray-600'>
{t(`about.overview.benefits.${index}.description`)}
</p>
</div>
</div> </div>
))} <h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.overview.title')}
</h2>
<p className='mb-6 text-gray-600'>
{t('about.overview.description1')}
</p>
<p className='mb-6 text-gray-600'>
{t('about.overview.description2')}
</p>
<p className='mb-6 text-gray-600'>
{t('about.overview.description3')}
</p>
<div className='mb-6 grid grid-cols-1 gap-4 md:grid-cols-2'>
{[0, 1, 2, 3].map((index) => (
<div key={index} className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>
{t(`about.overview.benefits.${index}.title`)}
</h3>
<p className='text-gray-600'>
{t(`about.overview.benefits.${index}.description`)}
</p>
</div>
</div>
))}
</div>
</div>
<div
data-aos='zoom-out-right'
className='relative h-[500px] overflow-hidden rounded-xl shadow-xl'
>
<Image
src='/placeholder.svg?height=500&width=600&text=Главный+офис'
alt={t('about.overview.imageAlt')}
fill
className='object-cover'
/>
</div>
</div> </div>
</div> </div>
<div </section>
data-aos='zoom-out-right'
className='relative h-[500px] overflow-hidden rounded-xl shadow-xl'
>
<Image
src='/placeholder.svg?height=500&width=600&text=Главный+офис'
alt={t('about.overview.imageAlt')}
fill
className='object-cover'
/>
</div>
</div>
</Container> </Container>
{/* Stats Section */} {/* Stats Section */}
<section className='bg-red-600 text-white'> <section className='bg-red-600 py-16 text-white'>
<Container> <div className='container mx-auto'>
<div className='mb-12 text-center'> <div className='mb-12 text-center'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.stats.title')} {t('about.stats.title')}
@ -142,176 +147,200 @@ export default function AboutPage({ content }: AboutPageProps) {
</div> </div>
))} ))}
</div> </div>
</Container> </div>
</section> </section>
{/* Our History */} {/* Our History */}
<Container> <section className='py-16'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='container mx-auto'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <Container>
<History className='h-6 w-6 text-red-600' /> <div className='mb-12 flex flex-col items-center justify-center text-center'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <History className='h-6 w-6 text-red-600' />
{t('about.history.title')} </div>
</h2> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<p className='max-w-2xl text-gray-600'> {t('about.history.title')}
{t('about.history.subtitle')} </h2>
</p> <p className='max-w-2xl text-gray-600'>
</div> {t('about.history.subtitle')}
</Container> </p>
</div>
</Container>
<Container> <Container>
<CompanyTimeline timeline={content.history} /> <CompanyTimeline timeline={content.history} />
</Container> </Container>
</div>
</section>
{/* Our Stations */} {/* Our Stations */}
<section className='bg-gray-50'> <Container>
<Container> <section className='bg-gray-50 py-16'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='container mx-auto'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-12 flex flex-col items-center justify-center text-center'>
<MapPin className='h-6 w-6 text-red-600' /> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<MapPin className='h-6 w-6 text-red-600' />
</div>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.stations.title')}
</h2>
<p className='max-w-2xl text-gray-600'>
{t('about.stations.subtitle')}
</p>
</div>
<StationGallery stations={content.stations} />
<div className='mt-12 text-center'>
<p className='mx-auto mb-6 max-w-2xl text-gray-600'>
{t('about.stations.description')}
</p>
<Button className='bg-red-600 hover:bg-red-700'>
{t('about.stations.buttonText')}{' '}
<MapPin className='ml-2 h-4 w-4' />
</Button>
</div> </div>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.stations.title')}
</h2>
<p className='max-w-2xl text-gray-600'>
{t('about.stations.subtitle')}
</p>
</div> </div>
<StationGallery stations={content.stations} /> </section>
<div className='mt-12 text-center'> </Container>
<p className='mx-auto mb-6 max-w-2xl text-gray-600'>
{t('about.stations.description')}
</p>
{/* <Button className='bg-red-600 hover:bg-red-700'>
{t('about.stations.buttonText')}{' '}
<MapPin className='ml-2 h-4 w-4' />
</Button> */}
</div>
</Container>
</section>
{/* Our Values */} {/* Our Values */}
<Container> <Container>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <section className='py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='container mx-auto'>
<Target className='h-6 w-6 text-red-600' /> <div className='mb-12 flex flex-col items-center justify-center text-center'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <Target className='h-6 w-6 text-red-600' />
{t('about.values.title')} </div>
</h2> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<p className='max-w-2xl text-gray-600'> {t('about.values.title')}
{t('about.values.subtitle')} </h2>
</p> <p className='max-w-2xl text-gray-600'>
</div> {t('about.values.subtitle')}
</p>
</div>
<div <div
data-aos='flip-up' data-aos='flip-up'
data-aos-duration='600' data-aos-duration='600'
className='grid gap-8 md:grid-cols-3' className='grid gap-8 md:grid-cols-3'
>
{[0, 1, 2].map((index) => (
<Card
key={index}
className='overflow-hidden transition-all hover:shadow-lg'
> >
<CardContent className='p-6'> {[0, 1, 2].map((index) => (
<div className='mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-red-100'> <Card
<Star className='h-6 w-6 text-red-600' /> key={index}
</div> className='overflow-hidden transition-all hover:shadow-lg'
<h3 className='mb-2 text-xl font-bold'> >
{t(`about.values.items.${index}.title`)} <CardContent className='p-6'>
</h3> <div className='mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-red-100'>
<p className='text-gray-600'> <Star className='h-6 w-6 text-red-600' />
{t(`about.values.items.${index}.description`)} </div>
</p> <h3 className='mb-2 text-xl font-bold'>
</CardContent> {t(`about.values.items.${index}.title`)}
</Card> </h3>
))} <p className='text-gray-600'>
</div> {t(`about.values.items.${index}.description`)}
</p>
</CardContent>
</Card>
))}
</div>
</div>
</section>
</Container> </Container>
{/* Our Team */} {/* Our Team */}
<section className='bg-gray-50'> <Container>
<Container> <section className='bg-gray-50 py-16'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='container mx-auto px-2'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-12 flex flex-col items-center justify-center text-center'>
<Users className='h-6 w-6 text-red-600' /> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
</div> <Users className='h-6 w-6 text-red-600' />
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.team.title')}
</h2>
<p className='max-w-2xl text-gray-600'>
{t('about.team.subtitle')}
</p>
</div>
<div
data-aos='flip-down'
data-aos-duration='600'
className='grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4'
>
{content.team.map((member, index) => (
<div
key={index}
className='overflow-hidden rounded-lg bg-white shadow-md transition-transform hover:scale-105'
>
<div className='relative h-64 w-full'>
{member.photo && (
<Image
src={member.photo}
alt={t(`about.team.members.${index}.name`)}
fill
className='object-cover'
/>
)}
</div>
<div className='p-4 text-center'>
<h3 className='text-lg font-bold'>{member.name}</h3>
<p className='text-gray-600'>{member.profession}</p>
</div>
</div> </div>
))} <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('about.team.title')}
</h2>
<p className='max-w-2xl text-gray-600'>
{t('about.team.subtitle')}
</p>
</div>
<div
data-aos='flip-down'
data-aos-duration='600'
className='grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4'
>
{content.team.map((member, index) => (
<div
key={index}
className='overflow-hidden rounded-lg bg-white shadow-md transition-transform hover:scale-105'
>
<div className='relative h-64 w-full'>
{member.photo && (
<Image
src={member.photo}
alt={t(`about.team.members.${index}.name`)}
fill
className='object-cover'
/>
)}
</div>
<div className='p-4 text-center'>
<h3 className='text-lg font-bold'>{member.name}</h3>
<p className='text-gray-600'>{member.profession}</p>
</div>
</div>
))}
</div>
</div> </div>
</Container> </section>
</section> </Container>
{/* Testimonials */} {/* Testimonials */}
<Container> <Container>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <section className='py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='container mx-auto'>
<Star className='h-6 w-6 text-red-600' /> <div className='mb-12 flex flex-col items-center justify-center text-center'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <Star className='h-6 w-6 text-red-600' />
{t('about.testimonials.title')} </div>
</h2> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<p className='max-w-2xl text-gray-600'> {t('about.testimonials.title')}
{t('about.testimonials.subtitle')} </h2>
</p> <p className='max-w-2xl text-gray-600'>
</div> {t('about.testimonials.subtitle')}
</p>
</div>
<div data-aos='zoom-out-right' className='grid gap-8 md:grid-cols-3'> <div
{content.reviews.map((review, index) => ( data-aos='zoom-out-right'
<Card className='grid gap-8 md:grid-cols-3'
key={index}
className='overflow-hidden transition-all hover:shadow-lg'
> >
<CardContent className='p-6'> {content.reviews.map((review, index) => (
<div className='mb-4 flex'> <Card
{Array(5) key={index}
.fill(0) className='overflow-hidden transition-all hover:shadow-lg'
.map((_, i) => ( >
<Star <CardContent className='p-6'>
key={i} <div className='mb-4 flex'>
className={`h-5 w-5 ${i < Number(review.rating) ? 'fill-yellow-400 text-yellow-400' : 'text-gray-300'}`} {Array(5)
/> .fill(0)
))} .map((_, i) => (
</div> <Star
<p className='mb-4 text-gray-600 italic'>"{review.review}"</p> key={i}
<p className='font-semibold'>{review.fullname}</p> className={`h-5 w-5 ${i < Number(review.rating) ? 'fill-yellow-400 text-yellow-400' : 'text-gray-300'}`}
</CardContent> />
</Card> ))}
))} </div>
</div> <p className='mb-4 text-gray-600 italic'>
"{review.review}"
</p>
<p className='font-semibold'>{review.fullname}</p>
</CardContent>
</Card>
))}
</div>
</div>
</section>
</Container> </Container>
<CtaSection /> <CtaSection />

View File

@ -10,14 +10,16 @@ import {
} from 'lucide-react'; } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button';
import { import {
Card, Card,
CardContent, CardContent,
CardFooter,
CardHeader, CardHeader,
CardTitle, CardTitle,
} from '@/shared/shadcn-ui/card'; } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
import { CtaSection } from '@/widgets/cta-section'; import { CtaSection } from '@/widgets/cta-section';
@ -27,32 +29,6 @@ export const metadata = {
'Благотворительные проекты и инициативы GasNetwork. Мы помогаем обществу и заботимся о будущем.', 'Благотворительные проекты и инициативы GasNetwork. Мы помогаем обществу и заботимся о будущем.',
}; };
const events = [
{
title: 'Благотворительный марафон',
description:
'Ежегодный благотворительный марафон в поддержку детей с особыми потребностями.',
date: '15 июня 2023',
location: 'Парк Рудаки, Душанбе',
image: '/placeholder.svg?height=200&width=300&text=Марафон',
},
{
title: 'Экологическая акция',
description: 'Очистка берегов реки Варзоб от мусора и посадка деревьев.',
date: '22 июля 2023',
location: 'Река Варзоб, Душанбе',
image: '/placeholder.svg?height=200&width=300&text=Экологическая+акция',
},
{
title: 'Сбор школьных принадлежностей',
description:
'Сбор школьных принадлежностей для детей из малообеспеченных семей к новому учебному году.',
date: '1-20 августа 2023',
location: 'Все заправки GasNetwork',
image: '/placeholder.svg?height=200&width=300&text=Школьные+принадлежности',
},
];
export function CharityPage() { export function CharityPage() {
const { t } = useTextController(); const { t } = useTextController();
@ -71,17 +47,23 @@ export function CharityPage() {
priority priority
/> />
<div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'> <div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'>
<Container data-aos='fade-down' data-aos-duration='800'> <Container>
<div className='max-w-2xl space-y-6 text-white'> <div
<div className='inline-flex items-center justify-center rounded-full bg-red-600/20 p-2'> data-aos='fade-down'
<Heart className='size-6 text-red-500' /> data-aos-duration='800'
className='container mx-auto'
>
<div className='max-w-2xl space-y-6 text-white'>
<div className='inline-flex items-center justify-center rounded-full bg-red-600/20 p-2'>
<Heart className='size-6 text-red-500' />
</div>
<h1 className='text-3xl font-bold tracking-tight sm:text-5xl md:text-6xl'>
{t('charity.hero.title')}
</h1>
<p className='text-lg text-gray-200 sm:text-xl'>
{t('charity.hero.subtitle')}
</p>
</div> </div>
<h1 className='text-3xl font-bold tracking-tight sm:text-5xl md:text-6xl'>
{t('charity.hero.title')}
</h1>
<p className='text-lg text-gray-200 sm:text-xl'>
{t('charity.hero.subtitle')}
</p>
</div> </div>
</Container> </Container>
</div> </div>
@ -90,190 +72,235 @@ export function CharityPage() {
{/* Mission Section */} {/* Mission Section */}
<Container> <Container>
<div className='grid items-center gap-12 md:grid-cols-2'> <section className='py-16'>
<div> <div className='container mx-auto'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='grid items-center gap-12 md:grid-cols-2'>
<Heart className='h-6 w-6 text-red-600' /> <div>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'> <Heart className='h-6 w-6 text-red-600' />
{t('charity.mission.title')}
</h2>
<p className='mb-6 text-gray-600'>
{t('charity.mission.description1')}
</p>
<p className='mb-6 text-gray-600'>
{t('charity.mission.description2')}
</p>
<div className='space-y-4'>
{[0, 1, 2].map((index) => (
<div
data-aos='fade-right'
key={index}
className='flex items-start'
>
<CheckCircle className='mr-3 h-6 w-6 flex-shrink-0 text-red-600' />
<div>
<h3 className='text-lg font-medium'>
{t(`charity.mission.principles.${index}.title`)}
</h3>
<p className='text-gray-600'>
{t(`charity.mission.principles.${index}.description`)}
</p>
</div>
</div> </div>
))} <h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('charity.mission.title')}
</h2>
<p className='mb-6 text-gray-600'>
{t('charity.mission.description1')}
</p>
<p className='mb-6 text-gray-600'>
{t('charity.mission.description2')}
</p>
<div className='space-y-4'>
{[0, 1, 2].map((index) => (
<div
data-aos='fade-right'
key={index}
className='flex items-start'
>
<CheckCircle className='mr-3 h-6 w-6 flex-shrink-0 text-red-600' />
<div>
<h3 className='text-lg font-medium'>
{t(`charity.mission.principles.${index}.title`)}
</h3>
<p className='text-gray-600'>
{t(
`charity.mission.principles.${index}.description`,
)}
</p>
</div>
</div>
))}
</div>
</div>
<div
data-aos='fade-right'
className='relative h-[500px] overflow-hidden rounded-xl shadow-xl'
>
<Image
src='/placeholder.svg?height=500&width=600&text=Наша+миссия'
alt={t('charity.mission.imageAlt')}
fill
className='object-cover'
/>
</div>
</div> </div>
</div> </div>
<div </section>
data-aos='fade-right'
className='relative h-[500px] overflow-hidden rounded-xl shadow-xl'
>
<Image
src='/placeholder.svg?height=500&width=600&text=Наша+миссия'
alt={t('charity.mission.imageAlt')}
fill
className='object-cover'
/>
</div>
</div>
</Container> </Container>
{/* Key Figures */} {/* Key Figures */}
<Container className='bg-red-600 text-white'> <section className='bg-red-600 py-16 text-white'>
<div className='mb-12 text-center'> <div className='container mx-auto'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <div className='mb-12 text-center'>
{t('charity.stats.title')} <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
</h2> {t('charity.stats.title')}
<p className='mx-auto max-w-2xl text-white/80'> </h2>
{t('charity.stats.subtitle')} <p className='mx-auto max-w-2xl text-white/80'>
</p> {t('charity.stats.subtitle')}
</p>
</div>
<div className='grid grid-cols-1 gap-8 text-center md:grid-cols-3'>
{[0, 1, 2].map((index) => (
<div key={index} className='space-y-2'>
<h3 className='text-4xl font-bold'>
{t(`charity.stats.items.${index}.value`)}
</h3>
<p className='text-white/80'>
{t(`charity.stats.items.${index}.label`)}
</p>
</div>
))}
</div>
</div> </div>
<div className='grid grid-cols-1 gap-8 text-center md:grid-cols-3'> </section>
{[0, 1, 2].map((index) => (
<div key={index} className='space-y-2'>
<h3 className='text-4xl font-bold'>
{t(`charity.stats.items.${index}.value`)}
</h3>
<p className='text-white/80'>
{t(`charity.stats.items.${index}.label`)}
</p>
</div>
))}
</div>
</Container>
{/* Upcoming Events */} {/* Upcoming Events */}
<Container className='bg-gray-50'> <Container>
<div className='mb-12 text-center'> <section className='bg-gray-50 py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='container mx-auto'>
<Calendar className='h-6 w-6 text-red-600' /> <div className='mb-12 text-center'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <Calendar className='h-6 w-6 text-red-600' />
{t('charity.events.title')}
</h2>
<p className='mx-auto max-w-2xl text-gray-600'>
{t('charity.events.subtitle')}
</p>
</div>
<div className='grid gap-6 md:grid-cols-3'>
{events.map((event, index) => (
<Card
data-aos='zoom-in-up'
key={index}
className='flex flex-col justify-between overflow-hidden'
>
<div>
<div className='relative h-48 w-full'>
<Image
src={event.image || '/placeholder.svg'}
alt={event.title}
fill
className='object-cover'
/>
</div>
<CardHeader>
<CardTitle className='text-xl lg:text-2xl'>
{event.title}
</CardTitle>
</CardHeader>
<CardContent className='space-y-4'>
<p className='text-gray-600'>{event.description}</p>
<div className='flex items-center text-sm text-gray-500'>
<Calendar className='mr-2 h-4 w-4' />
{event.date}
</div>
<div className='flex items-center text-sm text-gray-500'>
<MapPin className='mr-2 h-4 w-4' />
{event.location}
</div>
</CardContent>
</div> </div>
{/* <CardFooter> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<Button className='w-full bg-red-600 hover:bg-red-700'> {t('charity.events.title')}
{t(`charity.events.button`)} </h2>
</Button> <p className='mx-auto max-w-2xl text-gray-600'>
</CardFooter> */} {t('charity.events.subtitle')}
</Card> </p>
))} </div>
</div>
<div className='grid gap-6 md:grid-cols-3'>
{[
{
title: 'Благотворительный марафон',
description:
'Ежегодный благотворительный марафон в поддержку детей с особыми потребностями.',
date: '15 июня 2023',
location: 'Парк Рудаки, Душанбе',
image: '/placeholder.svg?height=200&width=300&text=Марафон',
},
{
title: 'Экологическая акция',
description:
'Очистка берегов реки Варзоб от мусора и посадка деревьев.',
date: '22 июля 2023',
location: 'Река Варзоб, Душанбе',
image:
'/placeholder.svg?height=200&width=300&text=Экологическая+акция',
},
{
title: 'Сбор школьных принадлежностей',
description:
'Сбор школьных принадлежностей для детей из малообеспеченных семей к новому учебному году.',
date: '1-20 августа 2023',
location: 'Все заправки GasNetwork',
image:
'/placeholder.svg?height=200&width=300&text=Школьные+принадлежности',
},
].map((event, index) => (
<Card
data-aos='zoom-in-up'
key={index}
className='flex flex-col justify-between overflow-hidden'
>
<div>
<div className='relative h-48 w-full'>
<Image
src={event.image || '/placeholder.svg'}
alt={event.title}
fill
className='object-cover'
/>
</div>
<CardHeader>
<CardTitle className='text-xl lg:text-2xl'>
{event.title}
</CardTitle>
</CardHeader>
<CardContent className='space-y-4'>
<p className='text-gray-600'>{event.description}</p>
<div className='flex items-center text-sm text-gray-500'>
<Calendar className='mr-2 h-4 w-4' />
{event.date}
</div>
<div className='flex items-center text-sm text-gray-500'>
<MapPin className='mr-2 h-4 w-4' />
{event.location}
</div>
</CardContent>
</div>
<CardFooter>
<Button className='w-full bg-red-600 hover:bg-red-700'>
{t(`charity.events.button`)}
</Button>
</CardFooter>
</Card>
))}
</div>
</div>
</section>
</Container> </Container>
{/* How to Help */} {/* How to Help */}
<Container> <Container>
<div className='mb-12 text-center'> <section className='py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='container mx-auto'>
<Users className='h-6 w-6 text-red-600' /> <div className='mb-12 text-center'>
</div> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <Users className='h-6 w-6 text-red-600' />
{t('charity.help.title')} </div>
</h2> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<p className='mx-auto max-w-2xl text-gray-600'> {t('charity.help.title')}
{t('charity.help.subtitle')} </h2>
</p> <p className='mx-auto max-w-2xl text-gray-600'>
</div> {t('charity.help.subtitle')}
</p>
</div>
<div className='grid gap-3 md:grid-cols-2 md:gap-6 lg:grid-cols-4'> <div className='grid gap-3 md:grid-cols-2 md:gap-6 lg:grid-cols-4'>
{[ {[
{ {
title: 'Сделать пожертвование', title: 'Сделать пожертвование',
description: description:
'Ваше пожертвование поможет нам реализовать больше проектов и помочь большему количеству людей.', 'Ваше пожертвование поможет нам реализовать больше проектов и помочь большему количеству людей.',
icon: <Landmark className='h-10 w-10 text-red-600' />, icon: <Landmark className='h-10 w-10 text-red-600' />,
}, },
{ {
title: 'Стать волонтером', title: 'Стать волонтером',
description: description:
'Присоединяйтесь к нашей команде волонтеров и помогайте нам в реализации благотворительных проектов.', 'Присоединяйтесь к нашей команде волонтеров и помогайте нам в реализации благотворительных проектов.',
icon: <Users className='h-10 w-10 text-red-600' />, icon: <Users className='h-10 w-10 text-red-600' />,
}, },
{ {
title: 'Участвовать в мероприятиях', title: 'Участвовать в мероприятиях',
description: description:
'Принимайте участие в наших благотворительных мероприятиях и акциях.', 'Принимайте участие в наших благотворительных мероприятиях и акциях.',
icon: <Calendar className='h-10 w-10 text-red-600' />, icon: <Calendar className='h-10 w-10 text-red-600' />,
}, },
{ {
title: 'Распространять информацию', title: 'Распространять информацию',
description: description:
'Расскажите о нашем фонде и его деятельности своим друзьям и знакомым.', 'Расскажите о нашем фонде и его деятельности своим друзьям и знакомым.',
icon: <Heart className='h-10 w-10 text-red-600' />, icon: <Heart className='h-10 w-10 text-red-600' />,
}, },
].map((item, index) => ( ].map((item, index) => (
<Card data-aos='zoom-in' key={index} className='text-center'> <Card data-aos='zoom-in' key={index} className='text-center'>
<CardHeader> <CardHeader>
<div className='mb-4 flex justify-center'>{item.icon}</div> <div className='mb-4 flex justify-center'>
<CardTitle className='break-words hyphens-auto'> {item.icon}
{item.title} </div>
</CardTitle> <CardTitle className='break-words hyphens-auto'>
</CardHeader> {item.title}
<CardContent> </CardTitle>
<p className='text-gray-600'>{item.description}</p> </CardHeader>
</CardContent> <CardContent>
</Card> <p className='text-gray-600'>{item.description}</p>
))} </CardContent>
</div> </Card>
))}
</div>
</div>
</section>
</Container> </Container>
<CtaSection /> <CtaSection />
</main> </main>

View File

@ -3,10 +3,10 @@
import { Download, Eye } from 'lucide-react'; import { Download, Eye } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
import { Card, CardContent } from '@/shared/shadcn-ui/card'; import { Card, CardContent } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
export function CertificatesPage() { export function CertificatesPage() {
const { t } = useTextController(); const { t } = useTextController();
@ -67,8 +67,8 @@ export function CertificatesPage() {
certificates.length = 0; certificates.length = 0;
return ( return (
<main> <Container>
<Container> <main className='container mx-auto py-10'>
<div className='mb-10 text-center'> <div className='mb-10 text-center'>
<h1 className='mb-4 text-4xl font-bold'>{t('certificates.title')}</h1> <h1 className='mb-4 text-4xl font-bold'>{t('certificates.title')}</h1>
<p className='mx-auto max-w-2xl text-lg text-gray-600'> <p className='mx-auto max-w-2xl text-lg text-gray-600'>
@ -125,7 +125,7 @@ export function CertificatesPage() {
</Card> </Card>
))} ))}
</div> </div>
</Container> </main>
</main> </Container>
); );
} }

View File

@ -2,8 +2,8 @@
import Image from 'next/image'; import Image from 'next/image';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import Container from '@/shared/shadcn-ui/conteiner';
import { BenefitsSection } from '@/widgets/clients/ui/benefits-section'; import { BenefitsSection } from '@/widgets/clients/ui/benefits-section';
import { ServicesOverviewSection } from '@/widgets/clients/ui/services-overview-section'; import { ServicesOverviewSection } from '@/widgets/clients/ui/services-overview-section';
@ -33,7 +33,7 @@ export function ClientsPage() {
priority priority
/> />
<div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'> <div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'>
<Container className='py-0'> <Container>
<div <div
data-aos='fade-down' data-aos='fade-down'
data-aos-duration='1000' data-aos-duration='1000'

View File

@ -3,9 +3,9 @@
import { Check, Percent } from 'lucide-react'; import { Check, Percent } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Card, CardContent } from '@/shared/shadcn-ui/card'; import { Card, CardContent } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
import { CtaSection } from '@/widgets/cta-section'; import { CtaSection } from '@/widgets/cta-section';
@ -35,304 +35,323 @@ export function LoyaltyPage() {
priority priority
/> />
<div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'> <div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30'>
<Container data-aos='fade-down' data-aos-duration='800'> <Container>
<div className='max-w-2xl space-y-4 text-white'> <div
<h1 className='text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl'> data-aos='fade-down'
{t('clients.loyalty.title')} data-aos-duration='800'
</h1> className='container mx-auto'
<p className='text-lg text-gray-200'> >
{t('clients.loyalty.description')} <div className='max-w-2xl space-y-4 text-white'>
</p> <h1 className='text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl'>
{t('clients.loyalty.title')}
</h1>
<p className='text-lg text-gray-200'>
{t('clients.loyalty.description')}
</p>
</div>
</div> </div>
</Container> </Container>
</div> </div>
</div> </div>
</section> </section>
{/* Program Overview */}
<Container> <Container>
<div className='grid items-center gap-12 md:grid-cols-2'> {/* Program Overview */}
<div data-aos='fade-right'> <section className='py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='container mx-auto'>
<Percent className='h-6 w-6 text-red-600' /> <div className='grid items-center gap-12 md:grid-cols-2'>
</div> <div data-aos='fade-right'>
<h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
{t('clients.loyalty.programm.about')} <Percent className='h-6 w-6 text-red-600' />
</h2> </div>
<p className='mb-6 text-gray-600'> <h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('clients.loyalty.programm.about-description')} {t('clients.loyalty.programm.about')}
</p> </h2>
<p className='mb-6 text-gray-600'> <p className='mb-6 text-gray-600'>
{t('clients.loyalty.programm.about-description-2')} {t('clients.loyalty.programm.about-description')}
</p> </p>
<p className='mb-6 text-gray-600'>
{t('clients.loyalty.programm.about-description-2')}
</p>
<div className='space-y-4'> <div className='space-y-4'>
<div className='flex items-start'> <div className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'> <div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span> <span className='text-xs text-white'></span>
</div> </div>
<div className='ml-3'> <div className='ml-3'>
<h3 className='text-lg font-medium'> <h3 className='text-lg font-medium'>
{t('clients.loyalty.programm.conditions-1')} {t('clients.loyalty.programm.conditions-1')}
</h3> </h3>
<p className='text-gray-600'> <p className='text-gray-600'>
{t('clients.loyalty.programm.conditions.description-1')} {t(
</p> 'clients.loyalty.programm.conditions.description-1',
)}
</p>
</div>
</div>
<div className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>
{t('clients.loyalty.programm.conditions-2')}
</h3>
<p className='text-gray-600'>
{t(
'clients.loyalty.programm.conditions.description-2',
)}
</p>
</div>
</div>
<div className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>
{t('clients.loyalty.programm.conditions-3')}
</h3>
<p className='text-gray-600'>
{t(
'clients.loyalty.programm.conditions.description-3',
)}
</p>
</div>
</div>
</div> </div>
</div> </div>
<div className='flex items-start'> <div
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'> data-aos='fade-up'
<span className='text-xs text-white'></span> className='relative h-[400px] overflow-hidden rounded-xl shadow-xl'
</div> >
<div className='ml-3'> <Image
<h3 className='text-lg font-medium'> src={ProgrammImg}
{t('clients.loyalty.programm.conditions-2')} alt='Программа лояльности'
</h3> fill
<p className='text-gray-600'> className='w-full object-contain p-2.5'
{t('clients.loyalty.programm.conditions.description-2')} priority
</p> />
</div>
</div>
<div className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>
{t('clients.loyalty.programm.conditions-3')}
</h3>
<p className='text-gray-600'>
{t('clients.loyalty.programm.conditions.description-3')}
</p>
</div>
</div> </div>
</div> </div>
</div> </div>
<div </section>
data-aos='fade-up'
className='relative h-[400px] overflow-hidden rounded-xl shadow-xl'
>
<Image
src={ProgrammImg}
alt='Программа лояльности'
fill
className='w-full object-contain p-2.5'
priority
/>
</div>
</div>
</Container>
{/* How It Works */} {/* How It Works */}
<section className='bg-gray-50'> <section className='bg-gray-50 px-2 py-16'>
<Container> <div className='container mx-auto'>
<div className='mb-12 text-center'> <div className='mb-12 text-center'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('clients.loyalty.works.title')} {t('clients.loyalty.works.title')}
</h2> </h2>
<p className='mx-auto max-w-2xl text-gray-600'> <p className='mx-auto max-w-2xl text-gray-600'>
{t('clients.loyalty.works.description')} {t('clients.loyalty.works.description')}
</p>
</div>
<div className='grid gap-8 sm:grid-cols-2 lg:grid-cols-4'>
<div data-aos='zoom-in-up' className='text-center'>
<div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
1
</div>
<h3 className='mb-2 text-xl font-bold'>
{t('clients.loyalty.works.stage-1')}
</h3>
<p className='text-gray-600'>
{t('clients.loyalty.works.stage.description-1')}
</p> </p>
</div> </div>
<div data-aos='zoom-in-up' className='text-center'>
<div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
2
</div>
<h3 className='mb-2 text-xl font-bold'>
{t('clients.loyalty.works.stage-2')}
</h3>
<p className='text-gray-600'>
{t('clients.loyalty.works.stage.description-2')}
</p>
</div>
<div data-aos='zoom-in-up' className='text-center'>
<div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
3
</div>
<h3 className='mb-2 text-xl font-bold'>
{t('clients.loyalty.works.stage-3')}
</h3>
<p className='text-gray-600'>
{t('clients.loyalty.works.stage.description-3')}
</p>
</div>
<div data-aos='zoom-in-up' className='text-center'>
<div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
4
</div>
<h3 className='mb-2 text-xl font-bold'>
{t('clients.loyalty.works.stage-4')}
</h3>
<p className='text-gray-600'>
{t('clients.loyalty.works.stage.description-4')}
</p>
</div>
</div>
</Container>
</section>
{/* Loyalty Levels */} <div className='grid gap-8 sm:grid-cols-2 lg:grid-cols-4'>
<Container> <div data-aos='zoom-in-up' className='text-center'>
<div className='mb-12 text-center'> <div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> 1
{t('clients.loyalty.works.levels.title')} </div>
</h2> <h3 className='mb-2 text-xl font-bold'>
<p className='mx-auto max-w-2xl text-gray-600'> {t('clients.loyalty.works.stage-1')}
{t('clients.loyalty.works.levels.description')} </h3>
</p> <p className='text-gray-600'>
</div> {t('clients.loyalty.works.stage.description-1')}
<div className='grid gap-8 md:grid-cols-3'>
<Card
data-aos='flip-left'
data-aos-duration='500'
className='overflow-hidden border-t-4 border-t-gray-400 transition-all hover:shadow-lg'
>
<CardContent className='p-6'>
<h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-1.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-1.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p> </p>
</div> </div>
<ul className='space-y-2'> <div data-aos='zoom-in-up' className='text-center'>
<li className='flex items-center'> <div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
<Check className='mr-2 h-5 w-5 text-green-500' /> 2
<span> </div>
{t('clients.loyalty.works.levels.card-1.bonus-1')} <h3 className='mb-2 text-xl font-bold'>
</span> {t('clients.loyalty.works.stage-2')}
</li> </h3>
<li className='flex items-center'> <p className='text-gray-600'>
<Check className='mr-2 h-5 w-5 text-green-500' /> {t('clients.loyalty.works.stage.description-2')}
<span>
{t('clients.loyalty.works.levels.card-1.bonus-2')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-1.bonus-3')}
</span>
</li>
</ul>
</CardContent>
</Card>
<Card
data-aos='flip-left'
data-aos-duration='500'
className='overflow-hidden border-t-4 border-t-yellow-500 transition-all hover:shadow-lg'
>
<CardContent className='p-6'>
<h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-2.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-2.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p> </p>
</div> </div>
<ul className='space-y-2'> <div data-aos='zoom-in-up' className='text-center'>
<li className='flex items-center'> <div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
<Check className='mr-2 h-5 w-5 text-green-500' /> 3
<span> </div>
{t('clients.loyalty.works.levels.card-2.bonus-1')} <h3 className='mb-2 text-xl font-bold'>
</span> {t('clients.loyalty.works.stage-3')}
</li> </h3>
<li className='flex items-center'> <p className='text-gray-600'>
<Check className='mr-2 h-5 w-5 text-green-500' /> {t('clients.loyalty.works.stage.description-3')}
<span>
{t('clients.loyalty.works.levels.card-2.bonus-2')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-3')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-4')}
</span>
</li>
</ul>
</CardContent>
</Card>
<Card
data-aos='flip-left'
data-aos-duration='500'
className='overflow-hidden border-t-4 border-t-red-600 transition-all hover:shadow-lg'
>
<CardContent className='p-6'>
<h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-3.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-3.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p> </p>
</div> </div>
<ul className='space-y-2'> <div data-aos='zoom-in-up' className='text-center'>
<li className='flex items-center'> <div className='mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-600 text-2xl font-bold text-white'>
<Check className='mr-2 h-5 w-5 text-green-500' /> 4
<span> </div>
{t('clients.loyalty.works.levels.card-3.bonus-1')} <h3 className='mb-2 text-xl font-bold'>
</span> {t('clients.loyalty.works.stage-4')}
</li> </h3>
<li className='flex items-center'> <p className='text-gray-600'>
<Check className='mr-2 h-5 w-5 text-green-500' /> {t('clients.loyalty.works.stage.description-4')}
<span> </p>
{t('clients.loyalty.works.levels.card-3.bonus-2')} </div>
</span> </div>
</li> </div>
<li className='flex items-center'> </section>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span> {/* Loyalty Levels */}
{t('clients.loyalty.works.levels.card-3.bonus-3')} <section className='py-16'>
</span> <div className='container mx-auto'>
</li> <div className='mb-12 text-center'>
<li className='flex items-center'> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
<Check className='mr-2 h-5 w-5 text-green-500' /> {t('clients.loyalty.works.levels.title')}
<span> </h2>
{t('clients.loyalty.works.levels.card-3.bonus-4')} <p className='mx-auto max-w-2xl text-gray-600'>
</span> {t('clients.loyalty.works.levels.description')}
</li> </p>
<li className='flex items-center'> </div>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span> <div className='grid gap-8 md:grid-cols-3'>
{t('clients.loyalty.works.levels.card-3.bonus-5')} <Card
</span> data-aos='flip-left'
</li> data-aos-duration='500'
</ul> className='overflow-hidden border-t-4 border-t-gray-400 transition-all hover:shadow-lg'
</CardContent> >
</Card> <CardContent className='p-6'>
</div> <h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-1.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-1.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p>
</div>
<ul className='space-y-2'>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-1.bonus-1')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-1.bonus-2')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-1.bonus-3')}
</span>
</li>
</ul>
</CardContent>
</Card>
<Card
data-aos='flip-left'
data-aos-duration='500'
className='overflow-hidden border-t-4 border-t-yellow-500 transition-all hover:shadow-lg'
>
<CardContent className='p-6'>
<h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-2.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-2.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p>
</div>
<ul className='space-y-2'>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-1')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-2')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-3')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-2.bonus-4')}
</span>
</li>
</ul>
</CardContent>
</Card>
<Card
data-aos='flip-left'
data-aos-duration='500'
className='overflow-hidden border-t-4 border-t-red-600 transition-all hover:shadow-lg'
>
<CardContent className='p-6'>
<h3 className='mb-4 text-center text-2xl font-bold'>
{t('clients.loyalty.works.levels.card-3.title')}
</h3>
<div className='mb-6 text-center'>
<span className='text-4xl font-bold'>
{t('clients.loyalty.works.levels.card-3.percent')}
</span>
<p className='text-sm text-gray-600'>
{t('clients.loyalty.works.levels.card.mark')}
</p>
</div>
<ul className='space-y-2'>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-3.bonus-1')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-3.bonus-2')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-3.bonus-3')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-3.bonus-4')}
</span>
</li>
<li className='flex items-center'>
<Check className='mr-2 h-5 w-5 text-green-500' />
<span>
{t('clients.loyalty.works.levels.card-3.bonus-5')}
</span>
</li>
</ul>
</CardContent>
</Card>
</div>
</div>
</section>
</Container> </Container>
<CtaSection /> <CtaSection />

View File

@ -8,7 +8,6 @@ import { Suspense } from 'react';
import { LoginForm } from '@/features/auth/login-form'; import { LoginForm } from '@/features/auth/login-form';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
import { import {
@ -18,6 +17,7 @@ import {
CardHeader, CardHeader,
CardTitle, CardTitle,
} from '@/shared/shadcn-ui/card'; } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
import { import {
Tabs, Tabs,
TabsContent, TabsContent,
@ -134,35 +134,40 @@ export default function LoginPage() {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<main className='flex min-h-screen flex-col items-center justify-center'> <Container>
<div className='flex-1'> <div className='flex min-h-screen flex-col items-center justify-center'>
<Container className='max-w-6xl'> <main className='flex-1'>
<div className='mb-12 flex flex-col items-center text-center'> <div className='container max-w-6xl py-16'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-12 flex flex-col items-center text-center'>
<Fuel className='h-6 w-6 text-red-600' /> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<Fuel className='h-6 w-6 text-red-600' />
</div>
<h1 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('auth.title')}
</h1>
<p className='max-w-2xl text-gray-600'>{t('auth.description')}</p>
</div> </div>
<h1 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('auth.title')}
</h1>
<p className='max-w-2xl text-gray-600'>{t('auth.description')}</p>
</div>
<div data-aos='zoom-in' className='mx-auto max-w-lg'> <div data-aos='zoom-in' className='mx-auto max-w-lg'>
<Suspense> <Suspense>
<LoginPageTabs /> <LoginPageTabs />
</Suspense> </Suspense>
<div className='mt-8 text-center text-sm text-gray-500'> <div className='mt-8 text-center text-sm text-gray-500'>
<p> <p>
{t('auth.loginIssues')}{' '} {t('auth.loginIssues')}{' '}
<Link href='/contact' className='text-red-600 hover:underline'> <Link
{t('auth.contactLink')} href='/contact'
</Link> className='text-red-600 hover:underline'
</p> >
{t('auth.contactLink')}
</Link>
</p>
</div>
</div> </div>
</div> </div>
</Container> </main>
</div> </div>
</main> </Container>
); );
} }

View File

@ -1,18 +0,0 @@
'use client';
import { ComponentProps } from 'react';
import { cn } from '../lib/utils';
interface ContainerProps extends ComponentProps<'div'> {}
export function Container({ children, className, ...props }: ContainerProps) {
return (
<div
className={cn('container mx-auto px-2.5 py-8 sm:py-16', className)}
{...props}
>
{children}
</div>
);
}

View File

@ -0,0 +1,10 @@
"use client"
interface ContainerProps {
children: React.ReactNode
}
export default function Container({children}: ContainerProps) {
return (
<div className="container mx-auto px-2.5 py-1">{children}</div>
)
}

View File

@ -4,15 +4,14 @@ import { Users } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import AboutCounter from '@/shared/components/about-counter'; import AboutCounter from '@/shared/components/about-counter';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
export const AboutSection = () => { export const AboutSection = () => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section id='about'> <section id='about' className='px-2 py-8 sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='grid items-center gap-12 md:grid-cols-2'> <div className='grid items-center gap-12 md:grid-cols-2'>
<div> <div>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
@ -39,7 +38,7 @@ export const AboutSection = () => {
/> />
</div> </div>
</div> </div>
</Container> </div>
</section> </section>
); );
}; };

View File

@ -4,7 +4,6 @@ import { ChevronRight, Heart } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import Link from 'next/link'; import Link from 'next/link';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
@ -12,8 +11,8 @@ export const CharitySection = () => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section id='charity'> <section id='charity' className='px-2 py-8 sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='grid items-center gap-12 md:grid-cols-2'> <div className='grid items-center gap-12 md:grid-cols-2'>
<div <div
className='relative order-2 h-[400px] w-full overflow-hidden rounded-xl shadow-xl md:order-1' className='relative order-2 h-[400px] w-full overflow-hidden rounded-xl shadow-xl md:order-1'
@ -60,7 +59,7 @@ export const CharitySection = () => {
</Link> </Link>
</div> </div>
</div> </div>
</Container> </div>
</section> </section>
); );
}; };

View File

@ -3,8 +3,8 @@
import { Percent } from 'lucide-react'; import { Percent } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import Container from '@/shared/shadcn-ui/conteiner';
interface Benefit { interface Benefit {
title: string; title: string;
@ -34,52 +34,55 @@ export const BenefitsSection = () => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section className='bg-gray-50'> <Container>
<Container> <section className='bg-gray-50 py-16'>
<div className='grid items-center gap-12 md:grid-cols-2'> <div className='container mx-auto'>
<div <div className='grid items-center gap-12 md:grid-cols-2'>
data-aos='fade-right' <div
data-aos-duration='4000' data-aos='fade-right'
className='order-2 md:order-1' data-aos-duration='4000'
> className='order-2 md:order-1'
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> >
<Percent className='h-6 w-6 text-red-600' /> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
</div> <Percent className='h-6 w-6 text-red-600' />
<h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'> </div>
{t('clients.benefits.title')} <h2 className='mb-6 text-3xl font-bold tracking-tight sm:text-4xl'>
</h2> {t('clients.benefits.title')}
<p className='mb-6 text-gray-600'> </h2>
{t('clients.benefits.subtitle')} <p className='mb-6 text-gray-600'>
</p> {t('clients.benefits.subtitle')}
<div className='space-y-4'> </p>
{benefits.map(({ title, description }) => {
return ( <div className='space-y-4'>
<div key={title} className='flex items-start'> {benefits.map(({ title, description }) => {
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'> return (
<span className='text-xs text-white'></span> <div key={title} className='flex items-start'>
<div className='mt-1 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-red-600'>
<span className='text-xs text-white'></span>
</div>
<div className='ml-3'>
<h3 className='text-lg font-medium'>{title}</h3>
<p className='text-gray-600'>{description}</p>
</div>
</div> </div>
<div className='ml-3'> );
<h3 className='text-lg font-medium'>{title}</h3> })}
<p className='text-gray-600'>{description}</p> </div>
</div> </div>
</div> <div
); data-aos='fade-up'
})} className='relative order-1 h-[400px] overflow-hidden rounded-xl shadow-xl md:order-2'
>
<Image
src='/placeholder.svg?height=400&width=600&text=Преимущества+для+клиентов'
alt='Преимущества для клиентов'
fill
className='object-cover'
/>
</div> </div>
</div>
<div
data-aos='fade-up'
className='relative order-1 h-[400px] overflow-hidden rounded-xl shadow-xl md:order-2'
>
<Image
src='/placeholder.svg?height=400&width=600&text=Преимущества+для+клиентов'
alt='Преимущества для клиентов'
fill
className='object-cover'
/>
</div> </div>
</div> </div>
</Container> </section>
</section> </Container>
); );
}; };

View File

@ -3,7 +3,6 @@
import { CreditCard, type LucideProps, Percent, Wallet } from 'lucide-react'; import { CreditCard, type LucideProps, Percent, Wallet } from 'lucide-react';
import { type ForwardRefExoticComponent, type RefAttributes } from 'react'; import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { import {
Card, Card,
@ -12,6 +11,7 @@ import {
CardHeader, CardHeader,
CardTitle, CardTitle,
} from '@/shared/shadcn-ui/card'; } from '@/shared/shadcn-ui/card';
import Container from '@/shared/shadcn-ui/conteiner';
interface ServiceOverview { interface ServiceOverview {
title: string; title: string;
@ -50,42 +50,41 @@ export const ServicesOverviewSection = () => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section> <Container>
<Container> <section className='py-16'>
<div className='mb-12 text-center'> <div className='container mx-auto'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <div className='mb-12 text-center'>
{t('clients.services.title')} <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
</h2> {t('clients.services.title')}
<p className='mx-auto max-w-2xl text-gray-600'> </h2>
{t('clients.services.subtitle')} <p className='mx-auto max-w-2xl text-gray-600'>
</p> {t('clients.services.subtitle')}
</p>
</div>
<div data-aos='flip-up' data-aos-duration='600' className='grid gap-3 md:grid-cols-2 md:gap-6 lg:grid-cols-3'>
{servicesOverview.map(({ description, Icon, contentText, title }) => {
return (
<Card
key={title}
className='overflow-hidden transition-all hover:shadow-lg'
>
<CardHeader className='pb-3'>
<div className='mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-red-100'>
<Icon className='h-6 w-6 text-red-600' />
</div>
<CardTitle>{title}</CardTitle>
<CardDescription>{description}</CardDescription>
</CardHeader>
<CardContent className='text-sm text-gray-600'>
<p>{contentText}</p>
</CardContent>
</Card>
);
})}
</div>
</div> </div>
<div </section>
data-aos='flip-up' </Container>
data-aos-duration='600'
className='grid gap-3 md:grid-cols-2 md:gap-6 lg:grid-cols-3'
>
{servicesOverview.map(({ description, Icon, contentText, title }) => {
return (
<Card
key={title}
className='overflow-hidden transition-all hover:shadow-lg'
>
<CardHeader className='pb-3'>
<div className='mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-red-100'>
<Icon className='h-6 w-6 text-red-600' />
</div>
<CardTitle>{title}</CardTitle>
<CardDescription>{description}</CardDescription>
</CardHeader>
<CardContent className='text-sm text-gray-600'>
<p>{contentText}</p>
</CardContent>
</Card>
);
})}
</div>
</Container>
</section>
); );
}; };

View File

@ -2,7 +2,6 @@
import Link from 'next/link'; import Link from 'next/link';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
@ -10,8 +9,8 @@ export const CtaSection = () => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section className='bg-red-600 text-white'> <section className='bg-red-600 px-2 py-8 text-white sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='flex flex-col items-center text-center'> <div className='flex flex-col items-center text-center'>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'> <h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('home.cta.title')} {t('home.cta.title')}
@ -25,7 +24,7 @@ export const CtaSection = () => {
</Link> </Link>
</div> </div>
</div> </div>
</Container> </div>
</section> </section>
); );
}; };

View File

@ -6,7 +6,6 @@ import { Stations } from '@/app/api-utlities/@types';
import { GasStationMap } from '@/features/map'; import { GasStationMap } from '@/features/map';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
interface MapSectionProps { interface MapSectionProps {
@ -17,8 +16,8 @@ export const MapSection = ({ stations }: MapSectionProps) => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section id='stations' className='bg-gray-50'> <section id='stations' className='bg-gray-50 px-2 py-8 sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='mb-12 flex flex-col items-center justify-center text-center'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<MapPin className='h-6 w-6 text-red-600' /> <MapPin className='h-6 w-6 text-red-600' />
@ -36,7 +35,7 @@ export const MapSection = ({ stations }: MapSectionProps) => {
> >
<GasStationMap stations={stations} /> <GasStationMap stations={stations} />
</div> </div>
</Container> </div>
</section> </section>
); );
}; };

View File

@ -4,7 +4,6 @@ import { Gift } from 'lucide-react';
import { Discounts } from '@/app/api-utlities/@types/index'; import { Discounts } from '@/app/api-utlities/@types/index';
import { Container } from '@/shared/components/container';
import PromotionSlider from '@/shared/components/promotion-slider'; import PromotionSlider from '@/shared/components/promotion-slider';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
@ -16,8 +15,8 @@ export const PromotionsSection = ({ discounts }: PromotionsSectionProps) => {
const { t } = useTextController(); const { t } = useTextController();
return ( return (
<section id='promotions' className='bg-gray-50'> <section id='promotions' className='bg-gray-50 px-2 py-8 sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='mb-12 flex flex-col items-center justify-center text-center'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<Gift className='h-6 w-6 text-red-600' /> <Gift className='h-6 w-6 text-red-600' />
@ -30,7 +29,7 @@ export const PromotionsSection = ({ discounts }: PromotionsSectionProps) => {
</p> </p>
</div> </div>
<PromotionSlider discounts={discounts} /> <PromotionSlider discounts={discounts} />
</Container> </div>
</section> </section>
); );
}; };

View File

@ -2,7 +2,6 @@
import { useEffect, useRef, useState } from 'react'; import { useEffect, useRef, useState } from 'react';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import AnimatedCounter from '../shared/components/animated-counter'; import AnimatedCounter from '../shared/components/animated-counter';
@ -37,8 +36,11 @@ export function StatsSection() {
}, []); }, []);
return ( return (
<section ref={sectionRef} className='bg-red-600 text-white'> <section
<Container> ref={sectionRef}
className='bg-red-600 px-2 py-6 text-white sm:py-12'
>
<div className='container mx-auto'>
<div className='grid grid-cols-2 gap-4 text-center sm:gap-8 md:grid-cols-4'> <div className='grid grid-cols-2 gap-4 text-center sm:gap-8 md:grid-cols-4'>
<div className='space-y-2'> <div className='space-y-2'>
<h3 className='text-3xl font-bold'> <h3 className='text-3xl font-bold'>
@ -65,7 +67,7 @@ export function StatsSection() {
<p className='text-sm text-white/80'>{t('home.stats.mode')}</p> <p className='text-sm text-white/80'>{t('home.stats.mode')}</p>
</div> </div>
</div> </div>
</Container> </div>
</section> </section>
); );
} }

View File

@ -4,7 +4,6 @@ import { Briefcase } from 'lucide-react';
import { Jobs } from '@/app/api-utlities/@types/index'; import { Jobs } from '@/app/api-utlities/@types/index';
import { Container } from '@/shared/components/container';
import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { useTextController } from '@/shared/language/hooks/use-text-controller';
import { cn } from '@/shared/lib/utils'; import { cn } from '@/shared/lib/utils';
import { Badge } from '@/shared/shadcn-ui/badge'; import { Badge } from '@/shared/shadcn-ui/badge';
@ -38,8 +37,8 @@ export const VacanciesSection = ({ jobs }: VacanciesSectionProps) => {
const jobsTabsTitle = [allVacancies, ...Array.from(jobsByType.keys())]; const jobsTabsTitle = [allVacancies, ...Array.from(jobsByType.keys())];
return ( return (
<section id='vacancies'> <section id='vacancies' className='px-2 py-8 sm:py-16'>
<Container> <div className='container mx-auto'>
<div className='mb-12 flex flex-col items-center justify-center text-center'> <div className='mb-12 flex flex-col items-center justify-center text-center'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'> <div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<Briefcase className='h-6 w-6 text-red-600' /> <Briefcase className='h-6 w-6 text-red-600' />
@ -89,7 +88,7 @@ export const VacanciesSection = ({ jobs }: VacanciesSectionProps) => {
</TabsContent> </TabsContent>
))} ))}
</Tabs> </Tabs>
</Container> </div>
</section> </section>
); );
}; };