mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 00:49:40 +05:00
refactor: change Image Optimization to custom url
This commit is contained in:
parent
61e8b74d11
commit
ff11a90a5e
11 changed files with 100 additions and 28 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue