new name
This commit is contained in:
parent
5e9f49311e
commit
352d4e0a7a
22 changed files with 69 additions and 22 deletions
27
rusty-library/templates/base.html
Normal file
27
rusty-library/templates/base.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="stylesheet" href="/static/pico.min.css" />
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
<title>Rusty Library</title>
|
||||
</head>
|
||||
<body>
|
||||
<main class="container">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><strong>Library</strong></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/">Recent</a></li>
|
||||
<li><a href="/authors">Authors</a></li>
|
||||
<li><a href="/books">Books</a></li>
|
||||
<li><a href="/series">Series</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
25
rusty-library/templates/book_card.html
Normal file
25
rusty-library/templates/book_card.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<article class="book-card">
|
||||
<header class="grid-item">
|
||||
<hgroup>
|
||||
<h5>{{ book.title }}</h5>
|
||||
<p>{{ book.author }}</p>
|
||||
</hgroup>
|
||||
</header>
|
||||
<img class="cover" src="/cover/{{ book.id }}" alt="book cover">
|
||||
<footer>
|
||||
<form>
|
||||
<fieldset role="group">
|
||||
<details class="dropdown">
|
||||
<summary role="button" class="outline">
|
||||
Download
|
||||
</summary>
|
||||
<ul>
|
||||
{% for format, _ in book.formats %}
|
||||
<li><a href="/book/{{ book.id }}/{{ format }}">{{ format }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
</fieldset>
|
||||
</form>
|
||||
</footer>
|
||||
</article>
|
9
rusty-library/templates/recents.html
Normal file
9
rusty-library/templates/recents.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% extends "base" %}
|
||||
{% block content %}
|
||||
<h1>Recent Books</h1>
|
||||
<div class="grid-container">
|
||||
{% for book in books %}
|
||||
{% include "book_card" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue