home.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{ define "home.html" }}
  2. <!DOCTYPE html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" href="/static/bootstrap-5.0.2-dist/css/bootstrap.min.css">
  6. </head>
  7. <body style="background-color: black;">
  8. <div class="container-fluid sticky-top pb-0">
  9. <div class="row align-items-center justify-content-center h-100 shadow-lg p-0 mb-0 rounded">
  10. <div class="col-sm-8 p-3">
  11. <div style="color: rgba(35, 207, 0, 0.87); font-size: xx-large; font-family: monospace;">
  12. <a href="/home" style="color: rgba(35, 207, 0, 0.87)">// Kyoketsu</a>
  13. </div>
  14. </div>
  15. <div class="col-sm-8 p-3">
  16. <form method="post"
  17. hx-target="#response-div"
  18. hx-post="/refresh"
  19. hx-ext="json-enc">
  20. <input type="text" name="ip_address" placeholder="192.168.50.1/24" required>
  21. <button type="submit">send</button>
  22. </form>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="container-fluid row">
  27. <div class="col"></div>
  28. <div class="col-auto p-3 m-3 position-absolute top-50 start-50 translate-middle" style="max-width: 80vw;">
  29. <img src="/static/img/chiralworkslogo-dark.png" style="max-height: 120vh;"/>
  30. </div>
  31. <div class="col"></div>
  32. </div>
  33. <div class="row container-fluid">
  34. <div class="col border border-white text-white"><p class="font-monospace fs-3">FQDN</p></div>
  35. <div class="col border border-white text-white"><p class="font-monospace fs-3">IPv4 Address</p></div>
  36. <div class="col border border-white text-white"><p class="font-monospace fs-3">Ping Response?</p></div>
  37. <div class="col border border-white text-white"><p class="font-monospace fs-3">Listening Ports</p></div>
  38. </div>
  39. <div id="response-div"></div>
  40. {{ range . }}
  41. {{ template "ip_table.html" . }}
  42. {{ end }}
  43. <script src="/static/htmx.min.js"></script>
  44. <script src="/static/json-enc.js"></script>
  45. </body>
  46. </html>
  47. {{ end }}