mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-01 02:19: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,5 +1,6 @@
|
|||
import { Card, Button } from "flowbite-react";
|
||||
import { useState } from "react";
|
||||
import Image from "next/image";
|
||||
|
||||
export const ReleaseInfoBasics = (props: {
|
||||
image: string;
|
||||
|
@ -12,11 +13,13 @@ export const ReleaseInfoBasics = (props: {
|
|||
return (
|
||||
<Card className="h-full">
|
||||
<div className="flex flex-col w-full h-full gap-4 lg:flex-row">
|
||||
<img
|
||||
<Image
|
||||
className="w-[285px] max-h-[385px] object-cover border border-gray-200 rounded-lg shadow-md dark:border-gray-700"
|
||||
src={props.image}
|
||||
alt=""
|
||||
></img>
|
||||
width={285}
|
||||
height={385}
|
||||
/>
|
||||
<div className="flex flex-col max-w-2xl gap-2 text-sm md:text-base">
|
||||
<div className="flex flex-col gap-1">
|
||||
<p className="text-xl font-bold text-black md:text-2xl dark:text-white">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue