result.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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">
  6. <meta name="robots" content="noindex">
  7. <title>{{if .Title}}{{.Title}}{{else if .Error}}Couldn't convert{{else if gt (len .Files) 1}}Your books are ready{{else}}Your book is ready{{end}} · ReKoPub</title>
  8. <meta name="color-scheme" content="light dark">
  9. <link rel="icon" href="/favicon.svg" type="image/svg+xml">
  10. <link rel="stylesheet" href="/style.css">
  11. </head>
  12. <body>
  13. <!-- Shown when the converter form is used without JavaScript. -->
  14. <header class="site-header">
  15. <div class="wrap header-inner">
  16. <a class="wordmark" href="/">reko<span>pub</span></a>
  17. </div>
  18. </header>
  19. <main class="wrap">
  20. <section class="about">
  21. {{- if .Error}}
  22. <h1>{{if .Title}}{{.Title}}{{else if .Paused}}Temporarily paused{{else}}Couldn't convert{{end}}</h1>
  23. <p class="convert-error">{{.Error}}</p>
  24. {{- else}}
  25. <h1>{{if gt (len .Files) 1}}Your books are ready{{else}}Your book is ready{{end}}</h1>
  26. <p class="small">Links work for {{.KeepHours}} hours.</p>
  27. <ul class="convert-files">
  28. {{- range .Files}}
  29. <li><a href="{{.URL}}" download>{{.Name}}</a> <span class="small">{{.Format}}, {{kb .Size}}</span></li>
  30. {{- end}}
  31. </ul>
  32. {{- if .Warning}}
  33. <p class="convert-error">{{.Warning}}</p>
  34. {{- end}}
  35. {{- end}}
  36. <p><a href="/#convert">Convert another article</a></p>
  37. </section>
  38. </main>
  39. </body>
  40. </html>