template.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{{ title }}</title>
  5. <meta http-equiv="refresh" content="{{ refresh_interval }}">
  6. {% if not ssl %}<link rel="icon" type="image/png" href="down.png" />{% else %}<link rel="icon" type="image/png" href="up.png" />{% endif %}
  7. <style type="text/css">
  8. html, body {
  9. margin: 0;
  10. background-color: {% if not ssl %}#CD5C5C{% else %}#32CD32{% endif %};
  11. font-size: 15px;
  12. font-weight: 400;
  13. }
  14. .container {
  15. margin: 0 auto;
  16. width: 800px;
  17. }
  18. h1 {
  19. margin: 0;
  20. padding: 50px 0 12px 0;
  21. font-size: 35px;
  22. font-weight: 500;
  23. }
  24. .group {
  25. background-color: #FFFFFF;
  26. border: 2px solid rgba(0, 0, 0, 0.1);
  27. border-radius: 5px;
  28. margin: 16px 0;
  29. padding: 16px;
  30. }
  31. h2 {
  32. margin: 0;
  33. padding: 0 0 10px 0;
  34. font-size: 23px;
  35. font-weight: 500;
  36. }
  37. .items {
  38. list-style-type: "⬤";
  39. color: #4CAF50;
  40. font-size: 20px;
  41. margin: 0 5px 0 0;
  42. }
  43. .items span {
  44. padding-left:1em;
  45. color: black;
  46. }
  47. footer {
  48. margin-top: 20px;
  49. text-align: center;
  50. font-size: 12px;
  51. color: #AAAAAA;
  52. }
  53. </style>
  54. </head>
  55. <body>
  56. <div class="container">
  57. <h1>{{ title }}</h1>
  58. {% for group in groups %}<div class="group">
  59. <h2>{{ group.name }}</h2>
  60. <ul class="items">
  61. {% for item in group.items %}<li><span><strong>{{ item.name }}</strong> = {{ item.value }}</span></li>{% endfor %}
  62. </ul>
  63. </div>{% endfor %}
  64. </div>
  65. </body>
  66. </html>