mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Refactored for better packaging
This commit is contained in:
39
src/interface/templates/index.html
Executable file
39
src/interface/templates/index.html
Executable file
@@ -0,0 +1,39 @@
|
||||
{% load filters %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link type="text/css" rel="stylesheet" href="/static/css/main.css" />
|
||||
<title>pyShelf E-Book Server</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Audiowide&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="app_header" >
|
||||
<h1 class="app_hdr shadow">pyShelf</h1>
|
||||
<h2 class="app_subhdr shadow">Open Source E-book Server</h2>
|
||||
</div>
|
||||
<div class="app_body" >
|
||||
<div class="nav_top">
|
||||
<!--Navigation and page controls will go here-->
|
||||
</div>
|
||||
<div class="shelf">
|
||||
<div class="shelf_contents" >
|
||||
<ul id="book_shelf">
|
||||
{% for book in Books %}
|
||||
<a href="{% url 'download' pk=book.pk %}" class="book_link"><li class="shelf_item"><img alt="{{ book.title }}" src="data:image;base64,{{ book.cover | bin_2_img }}" class="book_thumb"/> </li></a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app_footer" >
|
||||
<div class="python_logo" >
|
||||
<img src="/static/img/py.png" id="python_logo" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user