update: added images for blocks
This commit is contained in:
parent
62e544d120
commit
24dcaa0122
BIN
public/clients/loyatly/03a771e7-5d76-4111-a516-801aa925659f.jpg
Normal file
BIN
public/clients/loyatly/03a771e7-5d76-4111-a516-801aa925659f.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
BIN
public/main/#promotions/995b9daa-959f-4bd5-9135-ef7c47148f2c.jpg
Normal file
BIN
public/main/#promotions/995b9daa-959f-4bd5-9135-ef7c47148f2c.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
BIN
public/main/#stations/010855ba-587e-4491-9b70-2f15f0a5c2a4.png
Normal file
BIN
public/main/#stations/010855ba-587e-4491-9b70-2f15f0a5c2a4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
BIN
public/main/#stations/9208a904-1768-4a48-bef1-12d09803a41a.png
Normal file
BIN
public/main/#stations/9208a904-1768-4a48-bef1-12d09803a41a.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 580 KiB |
@ -9,6 +9,8 @@ import { Card, CardContent } from '@/shared/shadcn-ui/card';
|
|||||||
import { CtaSection } from '@/widgets/cta-section';
|
import { CtaSection } from '@/widgets/cta-section';
|
||||||
import Container from '@/shared/shadcn-ui/conteiner';
|
import Container from '@/shared/shadcn-ui/conteiner';
|
||||||
|
|
||||||
|
import ProgrammImg from '../../../../public/clients/loyatly/03a771e7-5d76-4111-a516-801aa925659f.jpg'
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: 'Программа лояльности | GasNetwork - Сеть заправок в Таджикистане',
|
title: 'Программа лояльности | GasNetwork - Сеть заправок в Таджикистане',
|
||||||
description:
|
description:
|
||||||
@ -112,10 +114,11 @@ export function LoyaltyPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div data-aos='fade-up' className='relative h-[400px] overflow-hidden rounded-xl shadow-xl'>
|
<div data-aos='fade-up' className='relative h-[400px] overflow-hidden rounded-xl shadow-xl'>
|
||||||
<Image
|
<Image
|
||||||
src='/placeholder.svg?height=400&width=600&text=Программа+лояльности'
|
src={ProgrammImg}
|
||||||
alt='Программа лояльности'
|
alt='Программа лояльности'
|
||||||
fill
|
fill
|
||||||
className='object-cover'
|
className="w-full object-contain p-2.5"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -123,7 +126,7 @@ export function LoyaltyPage() {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
{/* How It Works */}
|
{/* How It Works */}
|
||||||
<section className='bg-gray-50 py-16'>
|
<section className='bg-gray-50 py-16 px-2'>
|
||||||
<div className='container mx-auto'>
|
<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'>
|
||||||
@ -134,8 +137,8 @@ export function LoyaltyPage() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-aos='zoom-in-right' className='grid gap-8 md:grid-cols-4'>
|
<div className='grid gap-8 sm:grid-cols-2 lg:grid-cols-4'>
|
||||||
<div className='text-center'>
|
<div data-aos='zoom-in-right' 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'>
|
<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
|
1
|
||||||
</div>
|
</div>
|
||||||
@ -146,7 +149,7 @@ export function LoyaltyPage() {
|
|||||||
{t('clients.loyalty.works.stage.description-1')}
|
{t('clients.loyalty.works.stage.description-1')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='text-center'>
|
<div data-aos='zoom-in-right' 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'>
|
<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
|
2
|
||||||
</div>
|
</div>
|
||||||
@ -157,7 +160,7 @@ export function LoyaltyPage() {
|
|||||||
{t('clients.loyalty.works.stage.description-2')}
|
{t('clients.loyalty.works.stage.description-2')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='text-center'>
|
<div data-aos='zoom-in-right' 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'>
|
<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
|
3
|
||||||
</div>
|
</div>
|
||||||
@ -168,7 +171,7 @@ export function LoyaltyPage() {
|
|||||||
{t('clients.loyalty.works.stage.description-3')}
|
{t('clients.loyalty.works.stage.description-3')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='text-center'>
|
<div data-aos='zoom-in-right' 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'>
|
<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
|
4
|
||||||
</div>
|
</div>
|
||||||
@ -195,8 +198,8 @@ export function LoyaltyPage() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-aos='flip-down' className='grid gap-8 md:grid-cols-3'>
|
<div className='grid gap-8 md:grid-cols-3'>
|
||||||
<Card className='overflow-hidden border-t-4 border-t-gray-400 transition-all hover:shadow-lg'>
|
<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'>
|
<CardContent className='p-6'>
|
||||||
<h3 className='mb-4 text-center text-2xl font-bold'>
|
<h3 className='mb-4 text-center text-2xl font-bold'>
|
||||||
{t('clients.loyalty.works.levels.card-1.title')}
|
{t('clients.loyalty.works.levels.card-1.title')}
|
||||||
@ -232,7 +235,7 @@ export function LoyaltyPage() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className='overflow-hidden border-t-4 border-t-yellow-500 transition-all hover:shadow-lg'>
|
<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'>
|
<CardContent className='p-6'>
|
||||||
<h3 className='mb-4 text-center text-2xl font-bold'>
|
<h3 className='mb-4 text-center text-2xl font-bold'>
|
||||||
{t('clients.loyalty.works.levels.card-2.title')}
|
{t('clients.loyalty.works.levels.card-2.title')}
|
||||||
@ -274,7 +277,7 @@ export function LoyaltyPage() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className='overflow-hidden border-t-4 border-t-red-600 transition-all hover:shadow-lg'>
|
<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'>
|
<CardContent className='p-6'>
|
||||||
<h3 className='mb-4 text-center text-2xl font-bold'>
|
<h3 className='mb-4 text-center text-2xl font-bold'>
|
||||||
{t('clients.loyalty.works.levels.card-3.title')}
|
{t('clients.loyalty.works.levels.card-3.title')}
|
||||||
|
|||||||
@ -5,12 +5,12 @@ import Image from 'next/image';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { Discounts } from '@/app/api-utlities/@types/main';
|
import { Discounts } from '@/app/api-utlities/@types/index';
|
||||||
|
|
||||||
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 PromoImg from '../../../public/main/#promotions/995b9daa-959f-4bd5-9135-ef7c47148f2c.jpg'
|
||||||
const promotions = [
|
const promotions = [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@ -99,14 +99,16 @@ export default function PromotionSlider({ discounts }: PromotionSliderProps) {
|
|||||||
data-aos-duration='700'
|
data-aos-duration='700'
|
||||||
>
|
>
|
||||||
<Card className='h-full overflow-hidden transition-shadow hover:shadow-lg'>
|
<Card className='h-full overflow-hidden transition-shadow hover:shadow-lg'>
|
||||||
<div className='relative h-48'>
|
<div className='relative h-72'>
|
||||||
|
<div className='rounded-lg'>
|
||||||
<Image
|
<Image
|
||||||
src={promo.image || '/placeholder.svg'}
|
src={PromoImg}
|
||||||
alt={promo.name}
|
alt={promo.name}
|
||||||
fill
|
fill
|
||||||
className='object-cover'
|
className='object-contain p-2 rounded-lg'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<CardContent className='p-4'>
|
<CardContent className='p-4'>
|
||||||
<h3 className='mb-2 text-lg font-bold'>{promo.name}</h3>
|
<h3 className='mb-2 text-lg font-bold'>{promo.name}</h3>
|
||||||
<p className='mb-3 text-sm text-gray-600'>
|
<p className='mb-3 text-sm text-gray-600'>
|
||||||
|
|||||||
@ -12,6 +12,7 @@ export const AosProvider = ({ children }: AosInitProps) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
AOS.init({
|
AOS.init({
|
||||||
|
mirror: false,
|
||||||
once: false,
|
once: false,
|
||||||
offset: 100,
|
offset: 100,
|
||||||
duration: 600,
|
duration: 600,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user