bookshelf-generator/templates/cookbooks.html

111 lines
2.7 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;
padding-bottom: 30px;
padding-top: 20px;
}
.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%;
}
}
.page-footer {
text-align: center;
margin-bottom: 15px;
}
.page-footer a {
color: black;
line-height: 32px;
border-bottom: 1px solid purple;
text-decoration: none;
padding-bottom: 7px;
}
.page-footer a:hover {
background-color: yellow;
}
.home-button {
display:none;
width: 28px;
margin: auto;
margin-bottom: auto;
margin-bottom: 25px;
color: black;
text-decoration: none;
/*border: 1px solid black;*/
padding: 3px;
line-height: 14px;
font-size: 32px;
}
.home-button:hover {
background-color:white;
cursor: pointer;
}
</style>
</head>
<body>
<a href="../" class="home-button">
<!-- &#x1F7BB;-->
&#8592;
</a>
<div class="main">
<div class="page-title">
Cookbooks
</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 class="page-footer">
source: <a href="https://bookwyrm.social/list/2609/s/cookbooks">https://bookwyrm.social/list/2609/s/cookbooks</a>
</div>
</div>
</body>
</html>