server actix for cannabinieri website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
8.6 KiB

2 years ago
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <!--nodes in svg as links-->
  4. <!--animation with CSS-->
  5. <!--nodes load template based on GET request on click-->
  6. <!--content(info) is loaded into placeholder in template-->
  7. <div id="mobile">
  8. <svg id="a" width="320" height="568" version="1.1" viewBox="0 0 80 175" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  9. <defs>
  10. <pattern id="spiderpi" height="100%" width="100%">
  11. <image href="/assets/img/spider_out.webp" width="44" height="30"></image>
  12. </pattern>
  13. </defs>
  14. <defs>
  15. <pattern id="permapp" height="100%" width="100%">
  16. <image href="/assets/img/sample-permapp-screen.webp" width="30" height="30"></image>
  17. </pattern>
  18. </defs>
  19. <defs>
  20. <pattern id="cyber" height="100%" width="100%">
  21. <image href="/assets/img/3d_greenhouse.webp" width="55" height="35"></image>
  22. </pattern>
  23. </defs>
  24. <defs>
  25. <pattern id="kaos" height="100%" width="100%">
  26. <image href="/assets/img/cube_space.webp " width="25" height="25"></image>
  27. </pattern>
  28. </defs>
  29. <defs>
  30. <pattern id="hemp" height="100%" width="100%">
  31. <image href="/assets/img/hemp.webp" width="30" height="45"></image>
  32. </pattern>
  33. </defs>
  34. <defs>
  35. <pattern id="machina" height="100%" width="100%">
  36. <image href="/assets/img/boat_construction.webp" width="24" height="31"></image>
  37. </pattern>
  38. </defs>
  39. <g id="position" transform="translate(-36.486 -121.6)" stroke="#000">
  40. <g id="connect" transform="matrix(1.2003 0 0 1.2003 26.945 106.96)">
  41. <g class="group_1">
  42. <path id="edge_1" class="edges" d="m33.037 28.44c23.239 25.242 23.239 25.228 23.239 25.228" stroke-width="2.6458"/>
  43. <path id="edge_2" class="edges" d="m21.599 60.776c11.451-32.343 11.438-32.337 11.438-32.337" stroke-width="2.6458"/>
  44. <!-- on click open info template -->
  45. <a href="/robot">
  46. <ellipse id="circle_one" class="nodes" cx="35" cy="27" rx="13.5" ry="13.5" style="paint-order: fill stroke markers" fill="url(#spiderpi)"/>
  47. </a>
  48. </g>
  49. <g class="group_2">
  50. <path id="edge_3" class="edges" d="m24.862 67.439c31.427-13.767 31.414-13.772 31.414-13.772" stroke-width="2.6458"/>
  51. <path id="edge_6" class="edges" d="m18.277 93.674c38.021-40.006 37.999-40.007 37.999-40.007" stroke-width=".52917"/>
  52. <path id="edge_4" class="edges" d="m69.403 85.356c-13.122-31.702-13.127-31.689-13.127-31.689" stroke-width="3.4396"/>
  53. <path id="edge_5" class="edges" d="m50.728 121.44c2.3527-71.49 2.3361-71.474 2.3361-71.474" stroke-width=".48836px"/>
  54. <a href="/app">
  55. <circle id="circle_2" class="nodes" cx="60" cy="52" r="13" style="paint-order:fill stroke markers" fill="url(#permapp)"/>
  56. </a>
  57. </g>
  58. <g class="group_3">
  59. <path id="edge_7" class="edges" d="m30.477 64.503c29.347 29.791 29.347 29.774 29.347 29.774" stroke-width=".52917"/>
  60. <path id="edge_8" class="edges" d="m23.453 62.106c28.366 67.295 28.374 67.263 28.374 67.263" stroke-width=".55417px"/>
  61. <a href="/virtual">
  62. <circle id="circle_3" class="nodes" cx="20" cy="60" r="13" style="paint-order: fill stroke markers" fill="url(#cyber)"/>
  63. </a>
  64. </g>
  65. <g class="group_4">
  66. <path id="edge_9" class="edges" d="m26.119 94.06c34.309 0.3248 34.299 0.31493 34.299 0.31493" stroke-width="2.6458"/>
  67. <a href="/network">
  68. <circle id="circle_4" class="nodes" cx="65.545" cy="91.148" r="12" style="paint-order: fill stroke markers" fill="url(#kaos)"/>
  69. </a>
  70. </g>
  71. <g class="group_5">
  72. <path id="edge_10" class="edges" d="m23.407 96.406c23.239 25.242 23.239 25.228 23.239 25.228" stroke-width="2.9104"/>
  73. <a href="/cannabinieri">
  74. <circle id="circle_5" class="nodes" cx="20.734" cy="95.501" r="12.5" style="paint-order: fill stroke markers" fill="url(#hemp)"/>
  75. </a>
  76. </g>
  77. <a href="/greenhome">
  78. <circle id="circle_6" class="nodes" cx="50" cy="120" r="12.5" style="paint-order: fill stroke markers" fill="url(#machina)"/>
  79. </a>
  80. </g>
  81. <g fill="#333" stroke-linecap="round" stroke-linejoin="bevel" stroke-opacity=".99634" stroke-width=".12003">
  82. </g>
  83. </g>
  84. </svg>
  85. {% block child %} {% endblock %}
  86. </div>
  87. <!--Tablet & Desktop -->
  88. <div id="tablet">
  89. <svg id="a" width="768" height="1024" version="1.1" viewBox="0 0 80 175" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  90. <defs>
  91. <pattern id="tekla" height="100%" width="100%">
  92. <image href="/assets/img/spider_out.webp" width="44" height="30"></image>
  93. </pattern>
  94. </defs>
  95. <defs>
  96. <pattern id="rootwork" height="100%" width="100%">
  97. <image href="/assets/img/sample-permapp-screen.webp" width="30" height="30"></image>
  98. </pattern>
  99. </defs>
  100. <defs>
  101. <pattern id="cyberb" height="100%" width="100%">
  102. <image href="/assets/img/3d_greenhouse.webp" width="55" height="35"></image>
  103. </pattern>
  104. </defs>
  105. <defs>
  106. <pattern id="kaosk" height="100%" width="100%">
  107. <image href="/assets/img/cube_space.webp " width="25" height="25"></image>
  108. </pattern>
  109. </defs>
  110. <defs>
  111. <pattern id="hempium" height="100%" width="100%">
  112. <image href="/assets/img/hemp.webp" width="30" height="45"></image>
  113. </pattern>
  114. </defs>
  115. <defs>
  116. <pattern id="machinalala" height="100%" width="100%">
  117. <image href="/assets/img/boat_construction.webp" width="24" height="31"></image>
  118. </pattern>
  119. </defs>
  120. <g id="position" transform="translate(-36.486 -121.6)" stroke="#000">
  121. <g id="connect" transform="matrix(1.2003 0 0 1.2003 26.945 106.96)">
  122. <g class="group_1">
  123. <path id="edge_1" class="edges" d="m-10 20 l90 15 " stroke-width="2.6458"/>
  124. <path id="edge_2" class="edges" d="m-10 60.776c11.451-32.343 11.438-32.337 11.438-32.337" stroke-width="2.6458"/>
  125. <path id="edge_11" class="edges" d="m-5 30 l80 55"/>
  126. <a href="/robot">
  127. <ellipse id="circle_one" class="nodes" cx="0" cy="27" rx="13.5" ry="13.5" style="paint-order: fill stroke markers" fill="url(#tekla)" fill-opacity="1"/>
  128. </a>
  129. </g>
  130. <g class="group_2">
  131. <path id="edge_3" class="edges" d="m-10 70 l80 -30" stroke-width="2.6458"/>
  132. <path id="edge_6" class="edges" d="m75 40 l -60 65" stroke-width=".52917"/>
  133. <path id="edge_4" class="edges" d="m70 85 l5 -50" stroke-width="3.4396"/>
  134. <path id="edge_5" class="edges" d="m90 100 l -10 -60" stroke-width=".48836px"/>
  135. <a href="/app">
  136. <circle id="circle_2" class="nodes" cx="80" cy="35" r="13" style="paint-order:fill stroke markers" fill="url(#rootwork)"/>
  137. </a>
  138. </g>
  139. <g class="group_3">
  140. <path id="edge_10" class="edges" d="m20 95.5 l-35 -25"/>
  141. <path id="edge_7" class="edges" d="m1 75 l70 3" stroke-width=".52917"/>
  142. <path id="edge_8" class="edges" d="m-1 77.5 l90 30"/>
  143. <a href="/virtual">
  144. <circle id="circle_3" class="nodes" cx="-10" cy="70" r="13" style="paint-order: fill stroke markers" fill="url(#cyberb)"/>
  145. </a>
  146. </g>
  147. <g class="group_4">
  148. <path id="edge_9" class="edges" d="m75 87.5 l10 10"/>
  149. <a href="/network">
  150. <circle id="circle_4" class="nodes" cx="70" cy="80" r="12" style="paint-order: fill stroke markers" fill="url(#kaosk)"/>
  151. </a>
  152. </g>
  153. <g class="group_5">
  154. <a href="/cannabinieri">
  155. <circle id="circle_5" class="nodes" cx="20.734" cy="102.5" r="12.5" style="paint-order: fill stroke markers" fill="url(#hempium)"/>
  156. </a>
  157. </g>
  158. <a href="/greenhome">
  159. <circle id="circle_6" class="nodes" cx="90" cy="105" r="12" style="paint-order: fill stroke markers" fill="url(#machinalala)"/>
  160. </a>
  161. </g>
  162. <g fill="#333" stroke-linecap="round" stroke-linejoin="bevel" stroke-opacity=".99634" stroke-width=".12003">
  163. </g>
  164. </g>
  165. </svg>
  166. {% block child %} {% endblock %}
  167. </div>
  168. {% endblock %}