refactor: change Image Optimization to custom url

This commit is contained in:
Kentai Radiquum 2024-08-23 04:51:47 +05:00
parent 61e8b74d11
commit ff11a90a5e
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
11 changed files with 100 additions and 28 deletions

View file

@ -1,13 +1,19 @@
import { Card, Carousel } from "flowbite-react";
import Image from "next/image";
export const ReleaseInfoScreenshots = (props: {
images: string[];
}) => {
export const ReleaseInfoScreenshots = (props: { images: string[] }) => {
return (
<Card>
<Carousel className="aspect-[16/10]">
{props.images.map((image: string, index: number) => (
<img key={index} className="object-cover" src={image} />
<Image
key={index}
className="object-cover"
src={image}
width={400}
height={300}
alt=""
/>
))}
</Carousel>
</Card>