digital_art.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{ define "centered_image" }}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <div class="row container-fluid m-0 p-0">
  5. <div class="col container-fluid" style="background-color: black;"></div>
  6. {{ if eq .MediaType "video/webm" }}
  7. <video src="/api/v1/images/{{ .Ident }}" autoplay muted loop playsinline preload="metadata" aria-label="{{ .Title }}" class="img-fluid m-0 p-0 col-auto" style="background-color: black; max-height: 70vh;"></video>
  8. {{ else }}
  9. <img src="/api/v1/images/{{ .Ident }}" alt="{{ .Title }}" loading="lazy" class="img-fluid m-0 p-0 col-auto" style="background-color: black; max-height: 70vh;">
  10. {{ end }}
  11. <div class="col container-fluid" style="background-color: black;"></div>
  12. </div>
  13. {{ if ne .MediaType "video/webm" }}<a href="#">{{ end }}
  14. <div class="mask{{ if eq .MediaType "video/webm" }} video-highlight{{ end }}" style="background-color: hsla(0, 0%, 98%, 0.2)">
  15. <div class="row align-items-center" style="font-family: monospace; color: white; min-height: 100%;">
  16. <div class="col"></div>
  17. <div class="col-auto">
  18. <div class="row col-auto p-2 m-2" style="font-size: xx-large;">
  19. '{{ .Title }}'
  20. </div>
  21. <div class="row col-auto p-2 m-2" style="font-size: x-large;">
  22. {{ .Desc }}
  23. </div>
  24. </div>
  25. <div class="col"></div>
  26. </div>
  27. </div>
  28. {{ if ne .MediaType "video/webm" }}</a>{{ end }}
  29. </html>
  30. {{ end }}
  31. {{ define "digital_art" }}
  32. <!DOCTYPE html>
  33. <html lang="en">
  34. <html lang="en">
  35. <head>
  36. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  37. <meta name="viewport" content="width=device-width, initial-scale=1">
  38. <link rel="stylesheet" href="/api/v1/style/bootstrap.min.css">
  39. <link rel="stylesheet" href="/api/v1/style/mdb/mdb.min.css">
  40. <link rel="stylesheet" href="/api/v1/cdn/custom.css">
  41. </head>
  42. <body style="background-color: rgb(56, 56, 56);">
  43. <div id="main">
  44. <div class="container-fluid row">
  45. {{ range .images }}
  46. <div class="col-sm hover-overlay" data-mdb-ripple-init data-mdb-ripple-color="light">
  47. <div class="col-auto">
  48. <div class="row position-relative shadow-lg p-3 m-3 rounded justify-content-center media-card"
  49. style="width: 80vh; max-width: 95%; background-color: rgb(22, 22, 22);">
  50. {{ template "centered_image" . }}
  51. </div>
  52. </div>
  53. </div>
  54. {{ end }}
  55. </div>
  56. </div>
  57. </body>
  58. </html>
  59. {{ end }}