mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-02 19:09:41 +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,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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue