mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
frontend: fix height size.
This commit is contained in:
parent
2615c47f0c
commit
029ac55881
2 changed files with 21 additions and 16 deletions
|
@ -5,7 +5,7 @@ import Link from "next/link";
|
||||||
export const ReleaseCard = (props) => {
|
export const ReleaseCard = (props) => {
|
||||||
return (
|
return (
|
||||||
<Link href={`/release/${props.id}`} className="s3">
|
<Link href={`/release/${props.id}`} className="s3">
|
||||||
<article className="no-padding round fill" style={{"aspectRatio": "9/16"}}>
|
<article className="no-padding round fill" style={{width: 284, height: 508}}>
|
||||||
<img className="responsive large top-round" src={props.poster} />
|
<img className="responsive large top-round" src={props.poster} />
|
||||||
<div className="padding">
|
<div className="padding">
|
||||||
<h6>{`${props.title.substring(0, 36)}${[...props.title].length > 36 ? "..." : ""}`}</h6>
|
<h6>{`${props.title.substring(0, 36)}${[...props.title].length > 36 ? "..." : ""}`}</h6>
|
||||||
|
|
|
@ -92,22 +92,27 @@ export default function Home() {
|
||||||
<span>завершено</span>
|
<span>завершено</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{releases ? (
|
||||||
|
<>
|
||||||
|
<div className="grid">
|
||||||
|
<CardList data={releases} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="grid">
|
<nav className="large-margin center-align">
|
||||||
{releases ? <CardList data={releases} /> : <progress></progress>}
|
<button
|
||||||
</div>
|
className="large"
|
||||||
|
onClick={() => {
|
||||||
<nav className="large-margin center-align">
|
setPage(page + 1);
|
||||||
<button
|
}}
|
||||||
className="large"
|
>
|
||||||
onClick={() => {
|
<i>add</i>
|
||||||
setPage(page + 1);
|
<span>загрузить ещё</span>
|
||||||
}}
|
</button>
|
||||||
>
|
</nav>
|
||||||
<i>add</i>
|
</>
|
||||||
<span>загрузить ещё</span>
|
) : (
|
||||||
</button>
|
<progress className="s1"></progress>
|
||||||
</nav>
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue