home.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{ define "home.html" }}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="/api/v1/style/bootstrap.min.css">
  8. <link rel="stylesheet" href="/api/v1/style/mdb/mdb.min.css">
  9. <link rel="stylesheet" href="/api/v1/style/custom.css">
  10. </head>
  11. <body style="background-color: rgb(56, 56, 56);">
  12. {{ template "navigation.html" .navigation }}
  13. <div class="container-fluid row">
  14. {{ range .listings }}
  15. <div class="col-sm hover-overlay" data-mdb-ripple-init data-mdb-ripple-color="light">
  16. <div class="col-auto">
  17. {{ template "listing.html" . }}
  18. </div>
  19. </div>
  20. {{ end }}
  21. </div>
  22. <div id="mySidenav" class="sidenav">
  23. <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  24. <a href="#">About</a>
  25. <a href="#">Services</a>
  26. <a href="#">Clients</a>
  27. <a href="#">Contact</a>
  28. </div>
  29. <!-- Use any element to open the sidenav -->
  30. <span onclick="openNav()">open</span>
  31. <!-- Add all page content inside this div if you want the side nav to push page content to the right (not used if you only want the sidenav to sit on top of the page -->
  32. <div id="main">
  33. ...
  34. </div>
  35. <script type="text/javascript" src="/api/v1/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
  36. <script src="/api/v1/js/slide.js"></script>
  37. <script src="/api/v1/htmx/htmx.min.js"></script>
  38. <script src="/api/v1/htmx/json-enc.js"></script>
  39. </body>
  40. </html>
  41. {{ end }}