refactor: update card style for mobile

This commit is contained in:
Kentai Radiquum 2024-11-20 21:24:48 +05:00
parent d3f966e62c
commit cd4ada5657
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
7 changed files with 137 additions and 12 deletions

View file

@ -1,11 +1,17 @@
import { ReleaseLink169 } from "./ReleaseLink.16_9";
import { ReleaseLink169 } from "./ReleaseLink.16_9FullImage";
import { ReleaseLink169Poster } from "./ReleaseLink.16_9Poster";
import { ReleaseLinkPoster } from "./ReleaseLink.Poster";
export const ReleaseLink = (props: {type?: "16_9"|"poster"}) => {
const type = props.type || "16_9";
if (type == "16_9") {
return <ReleaseLink169 {...props} />;
return (
<>
<div className="hidden lg:block"><ReleaseLink169 {...props} /></div>
<div className="block lg:hidden"><ReleaseLink169Poster {...props} /></div>
</>
)
}
if (type == "poster") {
return <ReleaseLinkPoster {...props} />;