71 lines
1.5 KiB
HTML
71 lines
1.5 KiB
HTML
<html>
|
|
<head>
|
|
<style>
|
|
.cover-image {
|
|
max-width: 200px;
|
|
max-height: 200px;
|
|
margin-bottom: 15px;
|
|
}
|
|
.book-item {
|
|
margin-bottom: 100px;
|
|
width: 80%;
|
|
margin-right: 20px;
|
|
box-shadow: 12px 14px yellow;
|
|
background-color: lightpink;
|
|
padding: 40px;
|
|
}
|
|
.main {
|
|
max-width: 600px;
|
|
margin: auto;
|
|
border: 1px solid purple;
|
|
padding: 15px;
|
|
box-shadow: 8px 12px blue;
|
|
background-color: white;
|
|
}
|
|
body {
|
|
font-family: "Roboto Mono,monospace";
|
|
background-color: mediumpurple;
|
|
}
|
|
.page-title {
|
|
width: 90%;
|
|
margin-bottom: 20px;
|
|
color: purple;
|
|
font-size: 32px;
|
|
background-color: white;
|
|
box-shadow: 8px 12px blue;
|
|
margin-bottom: 50px;
|
|
padding-bottom: 10px;
|
|
padding-left: 25px;
|
|
}
|
|
|
|
@media (min-width:900px) {
|
|
.book-item {
|
|
width: 80%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<div class="main">
|
|
<div class="page-title">
|
|
2023
|
|
</div>
|
|
{% for book in books %}
|
|
|
|
<div class="book-item">
|
|
<div>
|
|
<img src="static/{{book.cover_image_path}}" class="cover-image"/>
|
|
</div>
|
|
<div>
|
|
{{ book.title }} by {{ book.author }} {% if book.published_year %} ({{book.published_year}}) {% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
|
|
</body>
|
|
</html> |