bookserie.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{{.Data.Title}} — a·muse</title>
  7. <link rel="stylesheet" href="/static/style/style.css" />
  8. <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
  9. <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
  10. </head>
  11. <body>
  12. <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre bg-primary">
  13. <a href="/" class="decoration-none">
  14. <h1 class="inline valign-mid text-white sans margin-lr-1">a·muse</h1>
  15. </a>
  16. <form action="/items/" method="get" class="flex inline margin-lr-1 border-bottom-white">
  17. <input type="search" name="q" class="phone-max-width-8 border-none bg-none sans text-white" placeholder="{{.Strings.Global.search}}" />
  18. </form>
  19. <div class="margin-lr-1 text-white">
  20. {{ if .State.User.IsEmpty }}
  21. <a href="/login" class="decoration-none sans">{{.Strings.Global.log_in}}</a>
  22. <a href="/signup" class="decoration-none sans">{{.Strings.Global.sign_up}}</a>
  23. {{ else }}
  24. <nav class="text">
  25. <label for="hamburger" class="cursor-hand">
  26. <img src="/users/{{.State.User.Username}}/avatar?size=small" class="border-radius-25 width-1_5"/>
  27. </label>
  28. <input type="checkbox" id="hamburger" class="display-none" />
  29. <ul class="absolute right top-1 padding-lr-1 padding-tb-_5 bg align-right list-style-none sans">
  30. <!--<li><a href="/users/{{.State.User.Username}}" class="decoration-none text-accent">{{.Strings.Global.account}}</a><span class="material-icon padding-lr-_5">&#xe851;</span></li>-->
  31. <li><a href="/users/{{.State.User.Username}}/watchlist" class="decoration-none text-accent">{{.Strings.Global.watchlist}}</a><span class="material-icon padding-lr-_5">&#xe04a;</span></li>
  32. <li><a href="/users/{{.State.User.Username}}/tvqueue" class="decoration-none text-accent">{{.Strings.Global.tv_queue}}</a><span class="material-icon padding-lr-_5">&#xe1b2;</span></li>
  33. <li><a href="/users/{{.State.User.Username}}/readlist" class="decoration-none text-accent">{{.Strings.Global.readlist}}</a><span class="material-icon padding-lr-_5">&#xe431;</span></li>
  34. <li><a href="/users/{{.State.User.Username}}/experiences" class="decoration-none text-accent">{{.Strings.Global.experiences}}</a><span class="material-icon padding-lr-_5">&#xe042;</span></li>
  35. <li class="bg-error">
  36. <form action="/users/{{.State.User.Username}}/sessions/{{.State.User.Session}}" method="POST" class="inline">
  37. <input type="hidden" value="DELETE" name="method" />
  38. <input type="submit" value="{{.Strings.Global.log_out}}" class="border-none bg-none font-normal text-accent padding-lr-0 cursor-hand font-1" />
  39. </form><span class="material-icon padding-lr-_5 text-white">&#xe7ff;</span>
  40. </li>
  41. </ul>
  42. </nav>
  43. {{ end }}
  44. </div>
  45. </header>
  46. <div class="absolute top behind w12">
  47. <img src="/static/img/book_backdrop.webp" class="w12 cover height-30" /> <!-- Photo by [Janko Ferlic](https://www.pexels.com/@thepoorphotographer) from [Pexels](https://www.pexels.com/photo/blur-book-stack-books-bookshelves-590493/) -->
  48. <div class="on-desktop relative bottom-4 sans inline-block w12 padding-l-16 font-3 bg-gradient">
  49. <span class="text-white">{{.Data.Title}}</span>
  50. </div>
  51. </div>
  52. <main class="margin-top-20 margin-lr-5 flex flex-row flex-wrap flex-justify-space flex-align-start margin-bottom-2">
  53. <div class="desktop-w3 phone-w12 margin-bottom-2">
  54. {{if .Data.Cover}}
  55. <img src="{{.Data.Cover}}" class="min-height-231px block width-154px">
  56. {{else}}
  57. <img src="/static/img/bookserie_empty.webp" class="min-height-231px block width-154px" />
  58. {{end}}
  59. <div class="on-phone">
  60. <span class="sans font-3">{{.Data.Title}}</span>
  61. </div>
  62. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe7fd;</span> {{$.Strings.BookSerie.author}}</p>
  63. <p class="margin-lr-1 sans margin-tb-_5">{{range .Data.Authors}} {{.}}<br/> {{end}}</p>
  64. {{if .Data.Genres}}
  65. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe43a;</span> {{$.Strings.BookSerie.genre}}</p>
  66. <p class="margin-lr-1 sans margin-tb-_5">{{range .Data.Genres}} {{.}}<br/> {{end}}</p>
  67. {{end}}
  68. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe157;</span> {{$.Strings.BookSerie.source}}</p>
  69. <p class="margin-lr-1 sans margin-tb-_5">{{range .Data.Source}}<a href="{{.Url}}">{{.Name}}</a><br/>{{end}}</p>
  70. </div>
  71. <div class="desktop-w6 phone-w12 margin-top-10 padding-lr-2 margin-bottom-2">
  72. <p>{{.Data.Description}}</p>
  73. <hr class="material-icon text-grey hr-book"/>
  74. {{if .Data.SortedParts}}
  75. <p class="sans font-2">{{.Strings.BookSerie.in_this_collection}}:</p>
  76. <div class="flex flex-row flex-wrap flex-justify-space flex-align-start">
  77. {{range .Data.SortedParts}}
  78. <a href="{{.Uri}}" class="decoration-none margin-tb-1 margin-lr-1 force-width-16 no-outline">
  79. <div class="flex">
  80. <div>
  81. {{if .Cover}}
  82. <img src="{{.Cover}}" class="min-height-139px width-92px" />
  83. {{else}}
  84. <img src="/static/img/book_empty.webp" class="min-height-139px width-92px" />
  85. {{end}}
  86. </div>
  87. <div class="margin-lr-1">
  88. <span class="sans font-_875 text-grey">{{.Ordinal}}</span>
  89. <p class="sans">{{.Title}}</p>
  90. </div>
  91. </div>
  92. </a>
  93. {{end}}
  94. </div>
  95. {{end}}
  96. </div>
  97. <div class="desktop-w3 phone-w12 margin-top-10 flex phone-flex-flow">
  98. </div>
  99. </main>
  100. </body>
  101. </html>