error order update

This commit is contained in:
Samandar Turgunboyev
2025-12-23 16:16:14 +05:00
parent c2a4064951
commit af7b9fd590
6 changed files with 56 additions and 19 deletions

View File

@@ -71,7 +71,7 @@ const Welcome = () => {
<CarouselContent>
{isLoading && (
<CarouselItem className="relative">
<Skeleton className="w-full h-full" />
<Skeleton className="w-full h-[200px]" />
</CarouselItem>
)}
{isError && (
@@ -88,11 +88,11 @@ const Welcome = () => {
className="relative overflow-hidden rounded-2xl"
>
<Image
src={BASE_URL + banner.banner || '/placeholder.svg'}
src={BASE_URL + banner.banner}
alt={banner.id}
fill
className="object-cover"
priority={index === 0}
width={900}
height={900}
className="object-cover w-full h-full"
/>
</AspectRatio>
<Button
@@ -100,6 +100,7 @@ const Welcome = () => {
className="absolute max-lg:w-6 max-lg:h-6 top-1/2 -translate-y-1/2 right-2 cursor-pointer"
variant={'secondary'}
size={'icon'}
aria-label="next images"
>
<ChevronRight className="size-6 max-lg:size-5" />
</Button>
@@ -108,6 +109,7 @@ const Welcome = () => {
className="absolute max-lg:w-6 max-lg:h-6 top-1/2 -translate-y-1/2 left-5 cursor-pointer"
variant={'secondary'}
size={'icon'}
aria-label="prev images"
>
<ChevronLeft className="size-6 max-lg:size-5" />
</Button>
@@ -146,6 +148,7 @@ const Welcome = () => {
className="absolute max-lg:w-8 max-lg:h-8 top-1/2 -translate-y-1/2 -right-2 cursor-pointer"
variant={'secondary'}
size={'icon'}
aria-label="next images"
>
<ChevronRight className="size-6 max-lg:size-6" />
</Button>
@@ -154,6 +157,7 @@ const Welcome = () => {
className="absolute max-lg:w-8 max-lg:h-8 top-1/2 -translate-y-1/2 -left-2 cursor-pointer"
variant={'secondary'}
size={'icon'}
aria-label="prev images"
>
<ChevronLeft className="size-6 max-lg:size-6" />
</Button>