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,6 +1,7 @@
import { Card, Button, Avatar } from "flowbite-react";
import { unixToDate } from "#/api/utils";
import Link from "next/link";
import Image from "next/image";
export const CollectionInfoBasics = (props: {
image: string;
@ -36,7 +37,12 @@ export const CollectionInfoBasics = (props: {
</Link>
</div>
<div className="min-w-full aspect-video">
<img src={props.image} className="w-full rounded-lg" />
<Image
src={props.image}
width={725}
height={400}
className="w-full rounded-lg"
/>
</div>
<div className="flex flex-col gap-1">
<p className="text-xl font-bold">{props.title}</p>