feat: titles page
This commit is contained in:
parent
6836cfa057
commit
b976c35b8e
44 changed files with 1539 additions and 107 deletions
22
modules/frontend/src/components/cards/TitleCardSquare.tsx
Normal file
22
modules/frontend/src/components/cards/TitleCardSquare.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// TitleCardSquare.tsx
|
||||
import type { Title } from "../../api/models/Title";
|
||||
|
||||
export function TitleCardSquare({ title }: { title: Title }) {
|
||||
return (
|
||||
<div style={{
|
||||
width: 160,
|
||||
border: "1px solid #ddd",
|
||||
padding: 8,
|
||||
borderRadius: 8,
|
||||
textAlign: "center"
|
||||
}}>
|
||||
{title.posterUrl && (
|
||||
<img src={title.posterUrl} width={140} />
|
||||
)}
|
||||
<div>
|
||||
<h4>{title.name}</h4>
|
||||
<small>{title.year} • {title.rating}</small>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue