mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 09:59:41 +05:00
feat: add Show Releases Pages. fix: hover handling on touchscreens
This commit is contained in:
parent
b0246aa4e5
commit
7f2b4f17a4
9 changed files with 168 additions and 43 deletions
28
app/components/ReleaseSection/ReleaseSection.jsx
Normal file
28
app/components/ReleaseSection/ReleaseSection.jsx
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
import { ReleaseLink } from "../ReleaseLink/ReleaseLink";
|
||||
|
||||
export const ReleaseSection = (props) => {
|
||||
return (
|
||||
<section>
|
||||
<div className="flex justify-between px-4 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-fill,400px)] grid-cols-[100%] gap-2">
|
||||
{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