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 {
|
.bookshelf {
|
||||||
width: 360px;
|
width: 360px;
|
||||||
padding: 10px;
|
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;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
background-color: #a58a45;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.book {
|
.book {
|
||||||
@@ -686,7 +697,9 @@ a {
|
|||||||
|
|
||||||
.book h4 {
|
.book h4 {
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
color: black;
|
color: lightgray;
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bookReview {
|
.bookReview {
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
{% macro bookshelf(books) %}
|
{% macro bookshelf(books) %}
|
||||||
<a href="/books">
|
<a href="/books">
|
||||||
<div class="bookshelf">
|
<div class="bookshelf">
|
||||||
{% for i in books.selection %} {% set book = books.books[i] %}
|
<h5 class="bookshelfHeader">I read things:</h5>
|
||||||
<a href="/books#'{{i}}'">
|
<div class="bookContainer">
|
||||||
<div class="book">
|
{% for i in books.selection %} {% set book = books.books[i] %}
|
||||||
<img
|
<a href="/books#'{{i}}'">
|
||||||
alt="{{ i }} cover"
|
<div class="book">
|
||||||
src="{{ url_for('static', filename=('photos/books/' + book.filename))}}"
|
<img
|
||||||
/>
|
alt="{{ i }} cover"
|
||||||
<h4>{{ i }}</h4>
|
src="{{ url_for('static', filename=('photos/books/' + book.filename))}}"
|
||||||
</div>
|
/>
|
||||||
</a>
|
<h4>{{ i }}</h4>
|
||||||
{% endfor %}
|
</div>
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user