mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
refactor: set release poster to center on release page on mobile
BREAKING: disable all image rendering
This commit is contained in:
parent
b79c07f4c2
commit
d2b38dcbe2
3 changed files with 36 additions and 13 deletions
22
app/components/ReleasePoster/Poster.tsx
Normal file
22
app/components/ReleasePoster/Poster.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import Image from "next/image";
|
||||
|
||||
export const Poster = (props: {
|
||||
image: string;
|
||||
alt?: string;
|
||||
// title: { ru: string; original: string };
|
||||
// note: string | null;
|
||||
// description: string;
|
||||
type?: "image_only";
|
||||
className?: string;
|
||||
}) => {
|
||||
return (
|
||||
<Image
|
||||
className={`object-cover rounded-lg shadow-md ${props.className}`}
|
||||
// className="w-[285px] max-h-[385px] object-cover border border-gray-200 rounded-lg shadow-md dark:border-gray-700"
|
||||
src={props.image}
|
||||
alt={props.alt || ""}
|
||||
width={285}
|
||||
height={385}
|
||||
/>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue