mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Massive UI/UX Overhaul
This commit is contained in:
28
src/interface/templates/index.html
vendored
28
src/interface/templates/index.html
vendored
@@ -10,6 +10,7 @@
|
||||
<title>pyShelf E-Book Server</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Audiowide&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Gruppo&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Ubuntu+Mono&display=swap" rel="stylesheet">
|
||||
<script src="/static/js/jquery-3.4.1.min.js" type="text/javascript"></script>
|
||||
<script src="/static/js/pyshelf_ux.js" type="text/javascript"></script>
|
||||
<!-- Place this tag in your head or just before your close body tag. -->
|
||||
@@ -73,11 +74,30 @@
|
||||
<img alt="cover missing" src="data:image;base64,{{ book.cover | bin_2_img }}" class="book_thumb" />
|
||||
<ul class="book_details_list">
|
||||
<li class="book_title">{{ book.title }}</li>
|
||||
<li class="book_author">Author: {{ book.author }}</li>
|
||||
<li class="book_author">{{ book.author }}</li>
|
||||
{% if book.description|length >= 300 %}
|
||||
{% make_description_obj book.description as descr_obj %}
|
||||
<li class="book_description">{{ descr_obj }}</li>
|
||||
{% else %}
|
||||
<li class="book_description">{{ book.description }}</li>
|
||||
{% endif %}
|
||||
<li class="book_tags">Tags: {{ book.tags }}</li>
|
||||
<li class="book_controls">
|
||||
fav
|
||||
<a href="{% url 'download' pk=book.pk %}" class="book_link">download</a>
|
||||
share
|
||||
|
||||
<span class="favorite-button controls">
|
||||
<a href="{% url 'favorite' pk=book.pk %}" class="book_link"> <img src="/static/img/icons/ico-thumb-up.png" class="icon" />Like</a>
|
||||
</span>
|
||||
|
||||
|
||||
<span class="download-button controls">
|
||||
<a href="{% url 'download' pk=book.pk %}" class="book_link"><img src="/static/img/icons/ico-dlbook.png" class="icon" />Download </a>
|
||||
</span>
|
||||
|
||||
|
||||
<span class="share-button controls">
|
||||
<a href="{% url 'share' pk=book.pk %}" class="book_link"><img src="/static/img/icons/ico-detective.png" class="icon" />Share</a>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user