add library list card
This commit is contained in:
parent
2a308e1f37
commit
ef82f98711
|
@ -0,0 +1,29 @@
|
|||
.card {
|
||||
background-color: #fff;
|
||||
margin-bottom: 20px;
|
||||
padding: 5px;
|
||||
width: 200px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.imageContainer {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: 275px;
|
||||
width: 100%;
|
||||
border: 1px solid #5CAFF9;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.authors {
|
||||
font-size: 1.2rem;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
import React from "react";
|
||||
|
||||
import { SimpleBook } from "../lib/books";
|
||||
|
||||
import styles from "./LibraryListCard.module.css";
|
||||
|
||||
export function LibraryListCard(props: Props) {
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
<div className={styles.imageContainer}></div>
|
||||
<div className={styles.contentContainer}>
|
||||
<h3 className={styles.title}>{props.book.title}</h3>
|
||||
<p className={styles.authors}>{props.book.authors}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface Props {
|
||||
book: SimpleBook;
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "library",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"next": "12.0.1",
|
||||
|
|
Loading…
Reference in New Issue