apps/library/templates/quotes.html 1.5 K raw
1
<!doctype html>
2
<html lang="en">
3
  <head>
4
    <meta charset="UTF-8" />
5
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
    <meta name="theme-color" content="#121113" />
7
    <link rel="stylesheet" href="/assets/darkmatter.css" />
8
    <link rel="stylesheet" href="/static/styles.css" />
9
    <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" />
10
    <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png" />
11
    <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png" />
12
    <link rel="manifest" href="/static/site.webmanifest" />
13
    <title>Library | Quotes</title>
14
  </head>
15
  <body>
16
    <div class="header">
17
      <a href="/" class="logo"><h1>LIBRARY</h1></a>
18
      <nav class="links">
19
        <a href="/" class="active">library</a>
20
      </nav>
21
    </div>
22
23
    {{if not .Groups}}
24
    <p class="no-books">No quotes yet.</p>
25
    {{else}}
26
    {{range .Groups}}
27
    <section class="quote-group">
28
      <div class="quote-group-head">
29
        <h2 class="book-title"><a href="/book/{{.BookID}}">{{.BookTitle}}</a></h2>
30
        <p class="book-authors">{{.BookAuthors}}</p>
31
      </div>
32
      <div class="quotes-list">
33
        {{range .Quotes}}
34
        <a class="quote-item" href="/quotes/{{.ID}}">
35
          <blockquote class="quote-text">{{.Quote}}</blockquote>
36
          {{if .Page}}<p class="quote-page">p. {{.Page}}</p>{{end}}
37
        </a>
38
        {{end}}
39
      </div>
40
    </section>
41
    {{end}}
42
    {{end}}
43
    <script src="/pwa.js" defer></script>
44
  </body>
45
</html>