mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
bookshelf style
This commit is contained in:
@@ -666,10 +666,21 @@ a {
|
||||
.bookshelf {
|
||||
width: 360px;
|
||||
padding: 10px;
|
||||
border: solid 2px #553;
|
||||
background-image: url("https://wallpapercave.com/wp/wp4292426.jpg");
|
||||
}
|
||||
|
||||
.bookshelfHeader {
|
||||
color: lightgray;
|
||||
margin: .5em;
|
||||
border-bottom: solid black 3px;
|
||||
margin-right: 5em;
|
||||
}
|
||||
|
||||
.bookContainer {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
background-color: #a58a45;
|
||||
}
|
||||
|
||||
.book {
|
||||
@@ -686,7 +697,9 @@ a {
|
||||
|
||||
.book h4 {
|
||||
font-size: x-small;
|
||||
color: black;
|
||||
color: lightgray;
|
||||
margin-bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bookReview {
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
{% macro bookshelf(books) %}
|
||||
<a href="/books">
|
||||
<div class="bookshelf">
|
||||
{% for i in books.selection %} {% set book = books.books[i] %}
|
||||
<a href="/books#'{{i}}'">
|
||||
<div class="book">
|
||||
<img
|
||||
alt="{{ i }} cover"
|
||||
src="{{ url_for('static', filename=('photos/books/' + book.filename))}}"
|
||||
/>
|
||||
<h4>{{ i }}</h4>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<h5 class="bookshelfHeader">I read things:</h5>
|
||||
<div class="bookContainer">
|
||||
{% for i in books.selection %} {% set book = books.books[i] %}
|
||||
<a href="/books#'{{i}}'">
|
||||
<div class="book">
|
||||
<img
|
||||
alt="{{ i }} cover"
|
||||
src="{{ url_for('static', filename=('photos/books/' + book.filename))}}"
|
||||
/>
|
||||
<h4>{{ i }}</h4>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user