This commit is contained in:
Samandar Turgunboyev
2026-01-24 17:23:50 +05:00
parent 33185702df
commit 105c384994
16 changed files with 23 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ export function AboutContent() {
height={500} height={500}
src={image.url || '/placeholder.svg'} src={image.url || '/placeholder.svg'}
alt={image.alt} alt={image.alt}
unoptimized
className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110" className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
/> />
</div> </div>

View File

@@ -9,6 +9,7 @@ export function AboutHero() {
<Image <Image
width={500} width={500}
height={500} height={500}
unoptimized
src="/gourmet-food-culinary-magazine-hero-image.jpg" src="/gourmet-food-culinary-magazine-hero-image.jpg"
alt="Gastro Market" alt="Gastro Market"
className="w-full h-full object-cover brightness-50" className="w-full h-full object-cover brightness-50"

View File

@@ -1,4 +1,5 @@
'use client'; 'use client';
import ProductBanner from '@/assets/product.png';
import { cart_api } from '@/features/cart/lib/api'; import { cart_api } from '@/features/cart/lib/api';
import { BASE_URL } from '@/shared/config/api/URLs'; import { BASE_URL } from '@/shared/config/api/URLs';
import { useRouter } from '@/shared/config/i18n/navigation'; import { useRouter } from '@/shared/config/i18n/navigation';
@@ -21,7 +22,6 @@ import { useTranslations } from 'next-intl';
import Image from 'next/image'; import Image from 'next/image';
import { useEffect, useRef, useState } from 'react'; import { useEffect, useRef, useState } from 'react';
import { toast } from 'sonner'; import { toast } from 'sonner';
import ProductBanner from '@/assets/product.png';
const CartPage = () => { const CartPage = () => {
const { cart_id } = useCartId(); const { cart_id } = useCartId();
@@ -167,6 +167,7 @@ const CartPage = () => {
alt={item.product.name} alt={item.product.name}
width={500} width={500}
height={500} height={500}
unoptimized
className="object-cover" className="object-cover"
style={{ width: '100%', height: '100%' }} style={{ width: '100%', height: '100%' }}
/> />

View File

@@ -560,6 +560,7 @@ const OrderPage = () => {
<Image <Image
width={500} width={500}
height={500} height={500}
unoptimized
src={ src={
item.product.images.length !== 0 item.product.images.length !== 0
? BASE_URL + item.product.images[0].image ? BASE_URL + item.product.images[0].image

View File

@@ -37,6 +37,7 @@ const Category = () => {
src={BASE_URL + category.image} src={BASE_URL + category.image}
alt={category.name} alt={category.name}
width={70} width={70}
unoptimized
height={70} height={70}
/> />
<span className="text-gray-900 font-medium"> <span className="text-gray-900 font-medium">

View File

@@ -165,6 +165,7 @@ const ProductDetail = () => {
<div> <div>
<Image <Image
width={500} width={500}
unoptimized
height={500} height={500}
src={ src={
data && data?.images?.length !== 0 data && data?.images?.length !== 0
@@ -192,6 +193,7 @@ const ProductDetail = () => {
<Image <Image
src={BASE_URL + img.image} src={BASE_URL + img.image}
alt="" alt=""
unoptimized
width={120} width={120}
height={120} height={120}
className="object-contain" className="object-contain"

View File

@@ -144,6 +144,7 @@ const Orders = () => {
> >
<Image <Image
width={500} width={500}
unoptimized
height={500} height={500}
src={item.image || '/placeholder.svg'} src={item.image || '/placeholder.svg'}
alt={item.name} alt={item.name}

View File

@@ -521,6 +521,7 @@ const RefreshOrder = () => {
height={500} height={500}
src={item.product_image} src={item.product_image}
alt={item.product_name} alt={item.product_name}
unoptimized
className="w-16 h-16 object-contain bg-gray-100 rounded" className="w-16 h-16 object-contain bg-gray-100 rounded"
/> />
<div className="flex-1"> <div className="flex-1">

View File

@@ -195,6 +195,7 @@ const Animation: React.FC<AnimationProps> = ({
} }
width={500} width={500}
height={500} height={500}
unoptimized
alt={product.name} alt={product.name}
className="w-full h-full object-contain p-3" className="w-full h-full object-contain p-3"
/> />

View File

@@ -222,6 +222,7 @@ export function ProductCard({
: LogosProduct : LogosProduct
} }
alt={product.name} alt={product.name}
unoptimized
className="object-cover" className="object-cover"
/> />
</div> </div>

View File

@@ -31,6 +31,7 @@ const Footer = () => {
src={'/logos/logo-white.png'} src={'/logos/logo-white.png'}
alt={PRODUCT_INFO.name} alt={PRODUCT_INFO.name}
title={PRODUCT_INFO.name} title={PRODUCT_INFO.name}
unoptimized
className="h-10 w-10" className="h-10 w-10"
/> />
</div> </div>

View File

@@ -40,6 +40,7 @@ export function ChangeLang() {
alt="uz" alt="uz"
width={20} width={20}
height={20} height={20}
unoptimized
className="object-cover w-full h-full" className="object-cover w-full h-full"
/> />
) : ( ) : (
@@ -47,6 +48,7 @@ export function ChangeLang() {
src="/flags/ru.png" src="/flags/ru.png"
alt="ru" alt="ru"
width={20} width={20}
unoptimized
height={20} height={20}
className="object-cover w-full h-full" className="object-cover w-full h-full"
/> />

View File

@@ -44,6 +44,7 @@ export const MobileLanguageSelector = () => {
alt={currentLanguage?.key || 'language'} alt={currentLanguage?.key || 'language'}
width={24} width={24}
height={24} height={24}
unoptimized
className="object-cover w-full h-full" className="object-cover w-full h-full"
/> />
</div> </div>
@@ -64,6 +65,7 @@ export const MobileLanguageSelector = () => {
src={lang.key === 'uz' ? '/flags/uz.png' : '/flags/ru.png'} src={lang.key === 'uz' ? '/flags/uz.png' : '/flags/ru.png'}
alt={lang.key} alt={lang.key}
width={20} width={20}
unoptimized
height={20} height={20}
className="object-cover w-full h-full" className="object-cover w-full h-full"
/> />

View File

@@ -120,6 +120,7 @@ export const SearchResult = ({ query }: SearchResultProps) => {
alt={product.name} alt={product.name}
width={64} width={64}
height={64} height={64}
unoptimized
className="w-16 h-16 rounded-md object-contain bg-white border border-slate-100" className="w-16 h-16 rounded-md object-contain bg-white border border-slate-100"
/> />

View File

@@ -231,6 +231,7 @@ const Navbar = () => {
src="/logos/logo.png" src="/logos/logo.png"
alt="logo" alt="logo"
width={40} width={40}
unoptimized
height={20} height={20}
className="w-10 h-fit" className="w-10 h-fit"
/> />
@@ -257,6 +258,7 @@ const Navbar = () => {
<div className="bg-white p-2 rounded-lg"> <div className="bg-white p-2 rounded-lg">
<Image <Image
width={32} width={32}
unoptimized
height={32} height={32}
src={'/logos/logo.png'} src={'/logos/logo.png'}
alt="logo" alt="logo"
@@ -508,6 +510,7 @@ const Navbar = () => {
<Image <Image
src={e.image || '/placeholder.svg'} src={e.image || '/placeholder.svg'}
alt={e.name} alt={e.name}
unoptimized
className="w-5 h-5 object-contain" className="w-5 h-5 object-contain"
/> />
</div> </div>

View File

@@ -141,6 +141,7 @@ const Welcome = () => {
src={BASE_URL + banner.banner} src={BASE_URL + banner.banner}
alt={banner.id} alt={banner.id}
width={900} width={900}
unoptimized
height={900} height={900}
className="object-cover w-full h-full" className="object-cover w-full h-full"
/> />
@@ -183,6 +184,7 @@ const Welcome = () => {
banner.image ? BASE_URL + banner.image : CategoryImage banner.image ? BASE_URL + banner.image : CategoryImage
} }
alt={banner.name} alt={banner.name}
unoptimized
width={500} width={500}
height={500} height={500}
className="w-full h-16 object-contain" className="w-full h-16 object-contain"