mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-28 17:09:41 +05:00
Merge remote-tracking branch 'origin/feat_player'
This commit is contained in:
parent
bb437fe7ca
commit
25e31a7799
62 changed files with 1508 additions and 701 deletions
26
app/components/ReleaseSection/ReleaseSection.tsx
Normal file
26
app/components/ReleaseSection/ReleaseSection.tsx
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { ReleaseLink } from "../ReleaseLink/ReleaseLink";
|
||||
|
||||
export const ReleaseSection = (props: any) => {
|
||||
return (
|
||||
<section>
|
||||
{props.sectionTitle && (
|
||||
<div className="flex justify-between px-4 py-2 border-b-2 border-black">
|
||||
<h1 className="font-bold text-md sm:text-xl md:text-lg xl:text-xl">
|
||||
{props.sectionTitle}
|
||||
</h1>
|
||||
</div>
|
||||
)}
|
||||
<div className="m-4">
|
||||
<div className="grid justify-center sm:grid-cols-[repeat(auto-fit,minmax(400px,1fr))] grid-cols-[100%] gap-2 min-w-full">
|
||||
{props.content.map((release) => {
|
||||
return (
|
||||
<div key={release.id} className="w-full h-full aspect-video">
|
||||
<ReleaseLink {...release} />
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue