update: fix main page

This commit is contained in:
BunyodL 2025-04-27 01:21:33 +05:00
parent 8c2ad18450
commit 624c31cfc9
7 changed files with 17 additions and 56 deletions

View File

@ -1,6 +1,5 @@
{ {
"common.buttons.readMore": "Read More", "common.buttons.readMore": "Read More",
"common.buttons.viewAll": "View All",
"common.buttons.findStation": "Find Station", "common.buttons.findStation": "Find Station",
"common.buttons.learnMore": "Learn More", "common.buttons.learnMore": "Learn More",
"common.buttons.download": "Download", "common.buttons.download": "Download",
@ -13,7 +12,7 @@
"common.buttons.filter": "Filter", "common.buttons.filter": "Filter",
"common.buttons.resetFilters": "Reset Filters", "common.buttons.resetFilters": "Reset Filters",
"common.buttons.downloadApp": "Download App", "common.buttons.downloadApp": "Download App",
"common.buttons.getLoyaltyCard": "Get Loyalty Card", "common.buttons.purchaseCardAtGasStations": "Purchase a card at gas stations",
"common.buttons.sendResume": "Send Resume", "common.buttons.sendResume": "Send Resume",
"common.buttons.showAllStations": "Show All Stations", "common.buttons.showAllStations": "Show All Stations",
"common.buttons.allPromotions": "All Promotions", "common.buttons.allPromotions": "All Promotions",
@ -30,8 +29,6 @@
"common.footer.contacts": "Contacts", "common.footer.contacts": "Contacts",
"common.footer.navigation": "Navigation", "common.footer.navigation": "Navigation",
"common.footer.subscribe": "Subscribe",
"common.footer.subscribeText": "Subscribe to our newsletter to receive news and special offers.",
"common.footer.yourEmail": "Your email", "common.footer.yourEmail": "Your email",
"common.footer.rights": "All rights reserved.", "common.footer.rights": "All rights reserved.",
@ -84,7 +81,6 @@
"certificates.title": "Our Certificates", "certificates.title": "Our Certificates",
"certificates.description": "GasNetwork adheres to high standards of quality and safety. Our certificates confirm the compliance of our products and services with international and national standards.", "certificates.description": "GasNetwork adheres to high standards of quality and safety. Our certificates confirm the compliance of our products and services with international and national standards.",
"certificates.issueDate": "Issue Date", "certificates.issueDate": "Issue Date",
"certificates.expiryDate": "Valid Until", "certificates.expiryDate": "Valid Until",
"certificates.faq": "Frequently Asked Questions", "certificates.faq": "Frequently Asked Questions",

View File

@ -1,19 +1,18 @@
{ {
"common.buttons.readMore": "Подробнее", "common.buttons.readMore": "Подробнее",
"common.buttons.viewAll": "Смотреть все",
"common.buttons.findStation": "Найти заправку", "common.buttons.findStation": "Найти заправку",
"common.buttons.learnMore": "Узнать больше", "common.buttons.learnMore": "Узнать больше",
"common.buttons.download": "Скачать", "common.buttons.download": "Скачать",
"common.buttons.view": "Просмотр", "common.buttons.view": "Просмотр",
"common.buttons.contactUs": "Связаться с нами", "common.buttons.contactUs": "Связаться с нами",
"common.buttons.apply": "Оформить", "common.buttons.apply": "Подать заявку",
"common.buttons.login": "Вход", "common.buttons.login": "Вход",
"common.buttons.logout": "Выйти", "common.buttons.logout": "Выйти",
"common.buttons.submit": "Отправить", "common.buttons.submit": "Отправить",
"common.buttons.filter": "Фильтры", "common.buttons.filter": "Фильтры",
"common.buttons.resetFilters": "Сбросить фильтры", "common.buttons.resetFilters": "Сбросить фильтры",
"common.buttons.downloadApp": "Скачать приложение", "common.buttons.downloadApp": "Скачать приложение",
"common.buttons.getLoyaltyCard": "Получить карту лояльности", "common.buttons.purchaseCardAtGasStations": "Приобретайте карту в сети АЗС",
"common.buttons.sendResume": "Отправить резюме", "common.buttons.sendResume": "Отправить резюме",
"common.buttons.showAllStations": "Показать все заправки", "common.buttons.showAllStations": "Показать все заправки",
"common.buttons.allPromotions": "Все акции", "common.buttons.allPromotions": "Все акции",
@ -30,8 +29,6 @@
"common.footer.contacts": "Контакты", "common.footer.contacts": "Контакты",
"common.footer.navigation": "Навигация", "common.footer.navigation": "Навигация",
"common.footer.subscribe": "Подписка",
"common.footer.subscribeText": "Подпишитесь на нашу рассылку, чтобы получать новости и специальные предложения.",
"common.footer.yourEmail": "Ваш email", "common.footer.yourEmail": "Ваш email",
"common.footer.rights": "Все права защищены.", "common.footer.rights": "Все права защищены.",

View File

@ -2,6 +2,7 @@
import { ChevronRight, Heart } from 'lucide-react'; import { ChevronRight, Heart } from 'lucide-react';
import Image from 'next/image'; import Image from 'next/image';
import Link from 'next/link';
import { useLanguage } from '@/shared/language'; import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
@ -53,9 +54,9 @@ export const CharitySection = () => {
<span>{t('home.charity.sports')}</span> <span>{t('home.charity.sports')}</span>
</li> </li>
</ul> </ul>
<Button className='bg-red-600 hover:bg-red-700'> <Link href={'/charity'}>
{t('home.charity.learnMore')} <Button>{t('home.charity.learnMore')}</Button>
</Button> </Link>
</div> </div>
</div> </div>
</div> </div>

View File

@ -15,9 +15,8 @@ export const CtaSection = () => {
</h2> </h2>
<p className='mb-8 max-w-2xl'>{t('home.cta.description')}</p> <p className='mb-8 max-w-2xl'>{t('home.cta.description')}</p>
<div className='flex flex-col gap-4 sm:flex-row'> <div className='flex flex-col gap-4 sm:flex-row'>
<Button variant='outline'>{t('common.buttons.downloadApp')}</Button>
<Button variant='secondary'> <Button variant='secondary'>
{t('common.buttons.getLoyaltyCard')} {t('common.buttons.purchaseCardAtGasStations')}
</Button> </Button>
</div> </div>
</div> </div>

View File

@ -2,18 +2,18 @@
import { Fuel, Mail, MapPin, Phone } from 'lucide-react'; import { Fuel, Mail, MapPin, Phone } from 'lucide-react';
import Link from 'next/link'; import Link from 'next/link';
import '.././app/globals.css'
import { useLanguage } from '@/shared/language'; import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button';
import '.././app/globals.css';
export const Footer = () => { export const Footer = () => {
const { t } = useLanguage(); const { t } = useLanguage();
return ( return (
<footer className='bg-gray-900 py-12 text-white px-4'> <footer className='bg-gray-900 px-4 py-12 text-white'>
<div className='containe mx-autor'> <div className='containe mx-autor'>
<div className='grid grid-cols-1 gap-8 md:grid-cols-4'> <div className='grid grid-cols-1 gap-8 md:grid-cols-3'>
<div> <div>
<div className='mb-4 flex items-center gap-2'> <div className='mb-4 flex items-center gap-2'>
<Fuel className='h-6 w-6 text-red-500' /> <Fuel className='h-6 w-6 text-red-500' />
@ -121,24 +121,6 @@ export const Footer = () => {
</li> </li>
</ul> </ul>
</div> </div>
<div>
<h3 className='mb-4 text-lg font-semibold'>
{t('common.footer.subscribe')}
</h3>
<p className='mb-4 text-gray-400'>
{t('common.footer.subscribeText')}
</p>
<form className='space-y-2'>
<input
type='email'
placeholder={t('common.footer.yourEmail')}
className='w-full rounded-md border border-gray-700 bg-gray-800 px-4 py-2 text-white'
/>
<Button className='w-full bg-red-600 hover:bg-red-700 heartbeat'>
{t('common.footer.subscribe')}
</Button>
</form>
</div>
</div> </div>
<div className='mt-8 border-t border-gray-800 pt-8 text-center text-gray-400'> <div className='mt-8 border-t border-gray-800 pt-8 text-center text-gray-400'>
<p> <p>

View File

@ -1,10 +1,9 @@
'use client'; 'use client';
import { ArrowRight, Gift } from 'lucide-react'; import { Gift } from 'lucide-react';
import PromotionSlider from '@/shared/components/promotion-slider'; import PromotionSlider from '@/shared/components/promotion-slider';
import { useLanguage } from '@/shared/language'; import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button';
export const PromotionsSection = () => { export const PromotionsSection = () => {
const { t } = useLanguage(); const { t } = useLanguage();
@ -24,12 +23,6 @@ export const PromotionsSection = () => {
</p> </p>
</div> </div>
<PromotionSlider /> <PromotionSlider />
<div className='mt-8 flex justify-center'>
<Button className='bg-red-600 hover:bg-red-700'>
{t('common.buttons.viewAll')}{' '}
<ArrowRight className='ml-2 h-4 w-4' />
</Button>
</div>
</div> </div>
</section> </section>
); );

View File

@ -1,6 +1,6 @@
'use client'; 'use client';
import { ArrowRight, Briefcase } from 'lucide-react'; import { Briefcase } from 'lucide-react';
import { useLanguage } from '@/shared/language'; import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button'; import { Button } from '@/shared/shadcn-ui/button';
@ -66,7 +66,7 @@ export const VacanciesSection = () => {
</div> </div>
</div> </div>
<Button variant='outline' size='sm'> <Button variant='outline' size='sm'>
{t('common.buttons.readMore')} {t('common.buttons.apply')}
</Button> </Button>
</div> </div>
</div> </div>
@ -103,7 +103,7 @@ export const VacanciesSection = () => {
</div> </div>
</div> </div>
<Button variant='outline' size='sm'> <Button variant='outline' size='sm'>
{t('common.buttons.readMore')} {t('common.buttons.apply')}
</Button> </Button>
</div> </div>
</div> </div>
@ -137,7 +137,7 @@ export const VacanciesSection = () => {
</div> </div>
</div> </div>
<Button variant='outline' size='sm'> <Button variant='outline' size='sm'>
{t('common.buttons.readMore')} {t('common.buttons.apply')}
</Button> </Button>
</div> </div>
</div> </div>
@ -147,13 +147,6 @@ export const VacanciesSection = () => {
)} )}
</TabsContent> </TabsContent>
</Tabs> </Tabs>
<div className='mt-8 flex justify-center'>
<Button className='bg-red-600 hover:bg-red-700'>
{t('common.buttons.sendResume')}{' '}
<ArrowRight className='ml-2 h-4 w-4' />
</Button>
</div>
</div> </div>
</section> </section>
); );