mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 00:49:40 +05:00
refactor: Release page
factor it in separate components and update grid styling
This commit is contained in:
parent
c2c3a95e6c
commit
e548ce060d
9 changed files with 542 additions and 429 deletions
15
app/components/ReleaseInfo/ReleaseInfo.Screenshots.tsx
Normal file
15
app/components/ReleaseInfo/ReleaseInfo.Screenshots.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Card, Carousel } from "flowbite-react";
|
||||
|
||||
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} />
|
||||
))}
|
||||
</Carousel>
|
||||
</Card>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue