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.

173 lines
4.1 KiB

2 years ago
  1. {% extends "base.html" %}
  2. {% block title %}{{ title }}{%endblock%}
  3. {% block content %}
  4. <style>
  5. #bg {
  6. background-image: linear-gradient(to left, rgba(255,255,255,0), rgba(1,1,1,1));
  7. }
  8. .timeline {
  9. position: relative;
  10. top: 20vh;
  11. margin: 0 auto;
  12. }
  13. .timeline::after {
  14. info: '';
  15. position: absolute;
  16. width: 6vw;
  17. background-color: white;
  18. top: 0;
  19. bottom: 0;
  20. left: 50%;
  21. margin-left: -3px;
  22. }
  23. .content_box {
  24. padding: 1vw 3vw;
  25. position: relative;
  26. background-color: inherit;
  27. width: 50%;
  28. }
  29. /* The circles on the timeline */
  30. .content_box::after {
  31. content: '';
  32. position: absolute;
  33. width: 25px;
  34. height: 25px;
  35. right: -17px;
  36. background-color: white;
  37. border: 4px solid #FF9F55;
  38. top: 15px;
  39. border-radius: 50%;
  40. z-index: 1;
  41. }
  42. /* Place the container to the left */
  43. .left {
  44. left: 0;
  45. }
  46. /* Place the container to the right */
  47. .right {
  48. left: 50%;
  49. }
  50. .left::before {
  51. content: " ";
  52. height: 0;
  53. position: absolute;
  54. top: 2vh;
  55. width: 0;
  56. z-index: 1;
  57. right: 2vw;
  58. border: medium solid white;
  59. border-width: .75vw 0 .75vw .75vw;
  60. border-color: transparent transparent transparent white;
  61. }
  62. /* Add arrows to the right container (pointing left) */
  63. .right::before {
  64. content: " ";
  65. height: 0;
  66. position: absolute;
  67. top: 22px;
  68. width: 0;
  69. z-index: 1;
  70. left: 30px;
  71. border: medium solid white;
  72. border-width: 10px 10px 10px 0;
  73. border-color: transparent white transparent transparent;
  74. }
  75. /* Fix the circle for containers on the right side */
  76. .right::after {
  77. left: -16px;
  78. }
  79. .info {
  80. padding: 2vh 3vw;
  81. background-color: white;
  82. position: relative;
  83. border-radius: .5vw;
  84. }
  85. /* Media queries - Responsive timeline on screens less than 600px wide */
  86. @media screen and (max-width: 600px) {
  87. /* Place the timelime to the left */
  88. .timeline::after {
  89. left: 31px;
  90. }
  91. /* Full-width containers */
  92. .content_box{
  93. width: 100%;
  94. padding-left: 70px;
  95. padding-right: 25px;
  96. }
  97. /* Make sure that all arrows are pointing leftwards */
  98. .content_box::before {
  99. left: 60px;
  100. border: medium solid white;
  101. border-width: 10px 10px 10px 0;
  102. border-color: transparent white transparent transparent;
  103. }
  104. /* Make sure all circles are at the same spot */
  105. .left::after, .right::after {
  106. left: 15px;
  107. }
  108. /* Make all right containers behave like the left ones */
  109. .right {
  110. left: 0%;
  111. }
  112. }
  113. </style>
  114. </head>
  115. <div id="bg">
  116. <div class="timeline">
  117. <div class="content_box left">
  118. <div class="info">
  119. <h2>03/2020</h2>
  120. <p>{{ content }} </p>
  121. </div>
  122. </div>
  123. <div class="content_box right">
  124. <div class="info">
  125. <h2>2016</h2>
  126. <p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim per, habeo iusto primis ea eam.</p>
  127. </div>
  128. </div>
  129. <div class="content_box left">
  130. <div class="info">
  131. <h2>2015</h2>
  132. <p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim per, habeo iusto primis ea eam.</p>
  133. </div>
  134. </div>
  135. <div class="content_box right">
  136. <div class="info">
  137. <h2>2012</h2>
  138. <p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim per, habeo iusto primis ea eam.</p>
  139. </div>
  140. </div>
  141. <div class="content_box left">
  142. <div class="info">
  143. <h2>2011</h2>
  144. <p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim per, habeo iusto primis ea eam.</p>
  145. </div>
  146. </div>
  147. <div class="content_box right">
  148. <div class="info">
  149. <h2>2007</h2>
  150. <p>Lorem ipsum dolor sit amet, quo ei simul congue exerci, ad nec admodum perfecto mnesarchum, vim ea mazim fierent detracto. Ea quis iuvaret expetendis his, te elit voluptua dignissim per, habeo iusto primis ea eam.</p>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. {% endblock %}