Added media content for charity

This commit is contained in:
Umar Adilov 2025-05-15 10:54:43 +05:00
parent 93288d1413
commit 92c01590fd
4 changed files with 14 additions and 11 deletions

View File

@ -40,10 +40,9 @@ export default function AboutPage({ content }: AboutPageProps) {
'/placeholder.svg?height=400&width=1920&text=Наша+История' '/placeholder.svg?height=400&width=1920&text=Наша+История'
} }
alt={t('about.hero.imageAlt')} alt={t('about.hero.imageAlt')}
width={1920}
height={400}
className='object-cover' className='object-cover'
priority priority
fill
/> />
<div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30 px-2'> <div className='absolute inset-0 flex items-center bg-gradient-to-r from-black/70 to-black/30 px-2'>
<div <div

View File

@ -14,6 +14,7 @@ import { CharityPageData } from '@/app/api-utlities/@types/pages';
import { Container } from '@/shared/components/container'; 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 { useMediaController } from '@/shared/media/hooks/use-media-controller';
import { import {
Card, Card,
CardContent, CardContent,
@ -29,7 +30,7 @@ export interface CharityPageProps {
export function CharityPage({ content }: CharityPageProps) { export function CharityPage({ content }: CharityPageProps) {
const { t } = useTextController(); const { t } = useTextController();
const { m } = useMediaController();
return ( return (
<div className='flex min-h-screen flex-col'> <div className='flex min-h-screen flex-col'>
<main className='flex-1'> <main className='flex-1'>
@ -37,12 +38,14 @@ export function CharityPage({ content }: CharityPageProps) {
<section className='relative'> <section className='relative'>
<div className='relative h-[400px] w-full overflow-hidden'> <div className='relative h-[400px] w-full overflow-hidden'>
<Image <Image
src='/placeholder.svg?height=500&width=1920&text=Благотворительный+фонд+Ориё' src={
m('charity.hero-section.banner') ||
'/placeholder.svg?height=500&width=1920&text=Благотворительный+фонд+Ориё'
}
alt={t('charity.hero.imageAlt')} alt={t('charity.hero.imageAlt')}
width={1920}
height={500}
className='object-cover' className='object-cover'
priority priority
fill
/> />
<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 data-aos='fade-down' data-aos-duration='800'>
@ -104,7 +107,10 @@ export function CharityPage({ content }: CharityPageProps) {
className='relative h-[500px] overflow-hidden rounded-xl shadow-xl' className='relative h-[500px] overflow-hidden rounded-xl shadow-xl'
> >
<Image <Image
src='/placeholder.svg?height=500&width=600&text=Наша+миссия' src={
m('charity.second-section.banner') ||
'/placeholder.svg?height=500&width=600&text=Наша+миссия'
}
alt={t('charity.mission.imageAlt')} alt={t('charity.mission.imageAlt')}
fill fill
className='object-cover' className='object-cover'

View File

@ -26,10 +26,9 @@ export function ClientsPage() {
'/placeholder.svg?height=400&width=1920&text=Для+наших+клиентов' '/placeholder.svg?height=400&width=1920&text=Для+наших+клиентов'
} }
alt='Для наших клиентов' alt='Для наших клиентов'
width={1920}
height={400}
className='object-cover' className='object-cover'
priority priority
fill
/> />
<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 className='py-0'>

View File

@ -28,10 +28,9 @@ export function LoyaltyPage() {
'/placeholder.svg?height=400&width=1920&text=Программа+лояльности' '/placeholder.svg?height=400&width=1920&text=Программа+лояльности'
} }
alt='Программа лояльности' alt='Программа лояльности'
width={1920}
height={400}
className='object-cover' className='object-cover'
priority priority
fill
/> />
<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 data-aos='fade-down' data-aos-duration='800'>