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.

257 lines
3.2 KiB

2 years ago
  1. svg {
  2. height: 100vh;
  3. width: 100%;
  4. position: relative;
  5. z-index: 100;
  6. }
  7. path {
  8. stroke: #8693AB;
  9. stroke-width: 0.3%;
  10. }
  11. #node1 {
  12. transform: translate(-0.7%, -4%);
  13. }
  14. #edge9 {
  15. transform: translate(8%, 4%);
  16. }
  17. #edge12 {
  18. stroke-dasharray: 100;
  19. animation: draw_multi 3s forwards !important;
  20. animation-delay: 0s;
  21. }
  22. #edge13 {
  23. stroke-dasharray: 100;
  24. animation: draw_multix 3s forwards;
  25. animation-delay: 0s;
  26. }
  27. .group1 .node , .group1 .edge{
  28. stroke-dasharray: 100;
  29. animation: draw 3s forwards;
  30. animation-delay: 0s;
  31. }
  32. .group2 .node, .group2 .edge{
  33. stroke-dasharray: 100;
  34. animation: draw_pink 3s forwards;
  35. animation-delay: 0s;
  36. }
  37. .group3 .node , .group3 .edge{
  38. stroke-dasharray: 100;
  39. animation: draw_green 3s forwards;
  40. animation-delay: 0s;
  41. }
  42. .group4 .node , .group4 .edge{
  43. stroke-dasharray: 100;
  44. animation: draw_purple 3s forwards;
  45. animation-delay: 0s;
  46. }
  47. .group5 .node , .group5 .edge{
  48. stroke-dasharray: 100;
  49. animation: draw_yellow 3s forwards;
  50. animation-delay: 0s;
  51. }
  52. .group6 .node , .group6 .edge{
  53. stroke-dasharray: 100;
  54. animation: draw_peach 3s forwards;
  55. animation-delay: 0s;
  56. }
  57. .group7 .node , .group7 .edge{
  58. stroke-dasharray: 100;
  59. animation: draw_red 3s forwards;
  60. animation-delay: 0s;
  61. }
  62. .group8 .node {
  63. stroke-dasharray: 100;
  64. animation: draw_rainbow 3s forwards;
  65. animation-timing-function: ease-in-out;
  66. animation-delay: 0s;
  67. }
  68. .node {
  69. cursor: pointer;
  70. }
  71. @keyframes draw {
  72. from {
  73. stroke-dashoffset: 100;
  74. stroke: #8693AB;
  75. }
  76. to {
  77. stroke-dashoffset: 0;
  78. stroke: hsl(207,47%,82%);
  79. }
  80. }
  81. @keyframes draw_pink {
  82. from {
  83. stroke-dashoffset: 100;
  84. stroke: #8693AB;
  85. }
  86. to {
  87. stroke-dashoffset: 0;
  88. stroke: hsl(286,100%,91%);
  89. }
  90. }
  91. @keyframes draw_green{
  92. from {
  93. stroke-dashoffset: 100;
  94. stroke: #8693AB;
  95. }
  96. to {
  97. stroke-dashoffset: 0;
  98. stroke: hsl(150,69%,75%);
  99. }
  100. }
  101. @keyframes draw_purple {
  102. from {
  103. stroke-dashoffset: 100;
  104. stroke: #8693AB;
  105. }
  106. to {
  107. stroke-dashoffset: 0;
  108. stroke: hsl(243,26%,75%);
  109. }
  110. }
  111. @keyframes draw_yellow{
  112. from {
  113. stroke-dashoffset: 100;
  114. stroke: #8693AB;
  115. }
  116. to {
  117. stroke-dashoffset: 0;
  118. stroke: hsl(60,96%,79%);
  119. }
  120. }
  121. @keyframes draw_peach {
  122. from {
  123. stroke-dashoffset: 100;
  124. stroke: #8693AB;
  125. }
  126. to {
  127. stroke-dashoffset: 0;
  128. stroke: hsl(40,100%,75%);
  129. }
  130. }
  131. @keyframes draw_red {
  132. from {
  133. stroke-dashoffset: 100;
  134. stroke: #8693AB;
  135. }
  136. to {
  137. stroke-dashoffset: 0;
  138. stroke: hsl(335,74%,80%);
  139. }
  140. }
  141. @keyframes draw_rainbow {
  142. from {
  143. stroke-dashoffset: 100;
  144. stroke: #8693AB;
  145. }
  146. to {
  147. stroke-dashoffset: 0;
  148. stroke: url(#myGradient);
  149. }
  150. }
  151. @keyframes draw_multi {
  152. from {
  153. stroke-dashoffset: 100;
  154. stroke: #8693AB;
  155. }
  156. 50% {
  157. stroke: hsl(243,26%,75%);
  158. }
  159. to {
  160. stroke-dashoffset: 0;
  161. stroke: hsl(207,47%,82%);
  162. }
  163. }
  164. @keyframes draw_multix {
  165. from {
  166. stroke-dashoffset: 100;
  167. stroke: #8693AB;
  168. }
  169. 50% {
  170. stroke: hsl(150,69%,75%);
  171. }
  172. to {
  173. stroke-dashoffset: 0;
  174. stroke: hsl(207,47%,82%);
  175. }
  176. }
  177. #banner {
  178. position: fixed;
  179. height: 100vh;
  180. width: 50vw;
  181. top: 0;
  182. background: black;
  183. opacity: 80%;
  184. display: flex;
  185. justify-content: center;
  186. align-items: center;
  187. }
  188. #banner_text {
  189. color: #ffd580;
  190. font-size: 5vh;
  191. margin: 0;
  192. position: relative;
  193. bottom: 20vh;
  194. right: 5vw;
  195. }
  196. @media ( min-width: 1024px ) {
  197. svg {
  198. left: 5vw;
  199. }
  200. }