mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-10 23:09:42 +05:00
refactor: update card style for mobile
This commit is contained in:
parent
d3f966e62c
commit
cd4ada5657
7 changed files with 137 additions and 12 deletions
|
@ -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} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue