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.viewAll": "View All",
"common.buttons.findStation": "Find Station",
"common.buttons.learnMore": "Learn More",
"common.buttons.download": "Download",
@ -13,7 +12,7 @@
"common.buttons.filter": "Filter",
"common.buttons.resetFilters": "Reset Filters",
"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.showAllStations": "Show All Stations",
"common.buttons.allPromotions": "All Promotions",
@ -30,8 +29,6 @@
"common.footer.contacts": "Contacts",
"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.rights": "All rights reserved.",
@ -84,7 +81,6 @@
"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.issueDate": "Issue Date",
"certificates.expiryDate": "Valid Until",
"certificates.faq": "Frequently Asked Questions",

View File

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

View File

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

View File

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

View File

@ -2,18 +2,18 @@
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';
import '.././app/globals.css';
export const Footer = () => {
const { t } = useLanguage();
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='grid grid-cols-1 gap-8 md:grid-cols-4'>
<div className='grid grid-cols-1 gap-8 md:grid-cols-3'>
<div>
<div className='mb-4 flex items-center gap-2'>
<Fuel className='h-6 w-6 text-red-500' />
@ -121,24 +121,6 @@ export const Footer = () => {
</li>
</ul>
</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 className='mt-8 border-t border-gray-800 pt-8 text-center text-gray-400'>
<p>

View File

@ -1,10 +1,9 @@
'use client';
import { ArrowRight, Gift } from 'lucide-react';
import { Gift } from 'lucide-react';
import PromotionSlider from '@/shared/components/promotion-slider';
import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button';
export const PromotionsSection = () => {
const { t } = useLanguage();
@ -24,12 +23,6 @@ export const PromotionsSection = () => {
</p>
</div>
<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>
</section>
);

View File

@ -1,6 +1,6 @@
'use client';
import { ArrowRight, Briefcase } from 'lucide-react';
import { Briefcase } from 'lucide-react';
import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button';
@ -66,7 +66,7 @@ export const VacanciesSection = () => {
</div>
</div>
<Button variant='outline' size='sm'>
{t('common.buttons.readMore')}
{t('common.buttons.apply')}
</Button>
</div>
</div>
@ -103,7 +103,7 @@ export const VacanciesSection = () => {
</div>
</div>
<Button variant='outline' size='sm'>
{t('common.buttons.readMore')}
{t('common.buttons.apply')}
</Button>
</div>
</div>
@ -137,7 +137,7 @@ export const VacanciesSection = () => {
</div>
</div>
<Button variant='outline' size='sm'>
{t('common.buttons.readMore')}
{t('common.buttons.apply')}
</Button>
</div>
</div>
@ -147,13 +147,6 @@ export const VacanciesSection = () => {
)}
</TabsContent>
</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>
</section>
);