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.

309 lines
16KB

  1. export const ICON = {
  2. sensorOff: `<div style="display: flex;
  3. flex-direction: column;
  4. align-items: center">
  5. <div style="display: flex; flex-direction: row; gap: 5px">
  6. <div class="tooltip">
  7. <img style="width: 30px; height: 30px;" src="assets/images/sensor-off.png">
  8. <div class="tooltiptext">
  9. <div style="display: flex;
  10. flex-direction: row;
  11. justify-content: space-between;">
  12. <div style="color: #F33152;
  13. padding: 5px 13px;
  14. background-color: rgba(243, 49, 82, 0.1);
  15. border-radius: 20px;
  16. text-align: center;
  17. width: 120px;">Hệ thống báo động 2</div>
  18. <a href="/overview/camera-stream">
  19. <svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
  20. <g stroke="currentColor" stroke-width="2">
  21. <path d="M16 16V8a1 1 0 00-1-1H5a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1z"/>
  22. <path stroke-linejoin="round" d="M20 7l-4 3v4l4 3V7z"/>
  23. </g>
  24. </svg>
  25. </a>
  26. </div>
  27. <div><strong>Địa điểm:</strong> 120 Xa Lộ Hà Nội, Thành Phố, Thủ Đức, Thành phố Hồ Chí Minh</div>
  28. <div><strong>Tọa độ:</strong> 10.8661° N, 106.8029° E</div>
  29. <div><strong>Thời gian:</strong> 01:54, 16/05/2022</div>
  30. <a href="/overview/overall-ground" target="_blank">Xem chi tiết</a>
  31. </div>
  32. </div>
  33. <a href="/overview/camera-stream" target="_blank">
  34. <img style="width: 30px; height: 30px;" src="assets/images/camera.png">
  35. </a>
  36. </div>
  37. </div>
  38. <style>
  39. .tooltip {
  40. position: relative;
  41. display: inline-block;
  42. }
  43. .tooltip .tooltiptext {
  44. visibility: hidden;
  45. width: 300px;
  46. padding: 10px;
  47. background-color: #fff;
  48. color: black;
  49. border-radius: 6px;
  50. position: absolute;
  51. z-index: 1;
  52. bottom: 100%;
  53. left: 50%;
  54. margin-left: -60px;
  55. }
  56. .tooltip:hover .tooltiptext {
  57. visibility: visible;
  58. }
  59. </style>`,
  60. sensorOn: `<div style="display: flex;
  61. flex-direction: column;
  62. align-items: center">
  63. <div style="display: flex; flex-direction: row; gap: 5px">
  64. <div class="tooltip">
  65. <img style="width: 30px; height: 30px;" src="assets/images/sensor-on.png">
  66. <div class="tooltiptext">
  67. <div style="display: flex;
  68. flex-direction: row;
  69. justify-content: space-between;">
  70. <div style="color: #F33152;
  71. padding: 5px 13px;
  72. background-color: rgba(243, 49, 82, 0.1);
  73. border-radius: 20px;
  74. text-align: center;
  75. width: 120px;">Hệ thống báo động 2</div>
  76. <a href="/overview/camera-stream">
  77. <svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
  78. <g stroke="currentColor" stroke-width="2">
  79. <path d="M16 16V8a1 1 0 00-1-1H5a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1z"/>
  80. <path stroke-linejoin="round" d="M20 7l-4 3v4l4 3V7z"/>
  81. </g>
  82. </svg>
  83. </a>
  84. </div>
  85. <div><strong>Địa điểm:</strong> 120 Xa Lộ Hà Nội, Thành Phố, Thủ Đức, Thành phố Hồ Chí Minh</div>
  86. <div><strong>Tọa độ:</strong> 10.8661° N, 106.8029° E</div>
  87. <div><strong>Thời gian:</strong> 01:54, 16/05/2022</div>
  88. <a href="/overview/overall-ground" target="_blank">Xem chi tiết</a>
  89. </div>
  90. </div>
  91. <a href="/overview/camera-stream" target="_blank">
  92. <img style="width: 30px; height: 30px;" src="assets/images/camera.png">
  93. </a>
  94. </div>
  95. <!-- <div style="font-size: 11px"><b>ALARM: SMOKE ALERT</b></div>-->
  96. </div>
  97. <style>
  98. .tooltip {
  99. position: relative;
  100. display: inline-block;
  101. }
  102. .tooltip .tooltiptext {
  103. visibility: hidden;
  104. width: 300px;
  105. padding: 10px;
  106. background-color: #fff;
  107. color: black;
  108. border-radius: 6px;
  109. position: absolute;
  110. z-index: 1;
  111. bottom: 100%;
  112. left: 50%;
  113. margin-left: -60px;
  114. }
  115. .tooltip:hover .tooltiptext {
  116. visibility: visible;
  117. }
  118. </style>`,
  119. sensorActive: `<div>
  120. <div style="width: 30px; height: 30px; position: absolute; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: linear-gradient(#ff0000, #C70039);">
  121. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite;"></div>
  122. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite; animation-delay: 1s;"></div>
  123. <img src="assets/images/sensor-on.png" style="width: 30px; height: 30px; z-index: 9;">
  124. </div>
  125. <img style="width: 30px; height: 30px;margin-left: 40px;" src="assets/images/camera.png">
  126. <style>
  127. @keyframes sensor-on {
  128. 100% {
  129. transform: scale(2);
  130. opacity: 0;
  131. }
  132. }
  133. </style>
  134. </div>`,
  135. fireContent: `<div style="display: flex;
  136. flex-direction: row;
  137. justify-content: space-between;">
  138. <div style="color: #F33152;
  139. padding: 5px 13px;
  140. background-color: rgba(243, 49, 82, 0.1);
  141. border-radius: 20px;
  142. text-align: center;
  143. width: 100px;">Sự cố cháy</div>
  144. <a href="/overview/camera-stream" target="_blank">
  145. <svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
  146. <g stroke="currentColor" stroke-width="2">
  147. <path d="M16 16V8a1 1 0 00-1-1H5a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1z"/>
  148. <path stroke-linejoin="round" d="M20 7l-4 3v4l4 3V7z"/>
  149. </g>
  150. </svg>
  151. </a>
  152. </div>
  153. <div><strong>Địa điểm:</strong> 120 Xa Lộ Hà Nội, Thành Phố, Thủ Đức, Thành phố Hồ Chí Minh</div>
  154. <div><strong>Tọa độ:</strong> 10.8661° N, 106.8029° E</div>
  155. <div><strong>Thời gian:</strong> 01:54, 16/05/2022</div>
  156. <a href="/overview/overall-ground" target="_blank">Xem chi tiết</a>`,
  157. sensorActiveSmoke: `
  158. <div style="display: flex;
  159. flex-direction: column;
  160. align-items: center">
  161. <div style="display: flex; flex-direction: row; gap: 39px;width: 100%; justify-content: center;">
  162. <div class="tooltip">
  163. <div style="width: 30px; height: 30px; position: absolute; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: linear-gradient(#ff0000, #C70039);">
  164. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite;"></div>
  165. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite; animation-delay: 1s;"></div>
  166. <img src="assets/images/sensor-on.png" style="width: 30px; height: 30px; z-index: 9;">
  167. </div>
  168. <div class="tooltiptext">
  169. <div style="display: flex;
  170. flex-direction: row;
  171. justify-content: space-between;">
  172. <div style="color: #F33152;
  173. padding: 5px 13px;
  174. background-color: rgba(243, 49, 82, 0.1);
  175. border-radius: 20px;
  176. text-align: center;
  177. width: 120px;">Hệ thống báo động 1</div>
  178. <a href="/overview/camera-stream" target="_blank">
  179. <svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
  180. <g stroke="currentColor" stroke-width="2">
  181. <path d="M16 16V8a1 1 0 00-1-1H5a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1z"/>
  182. <path stroke-linejoin="round" d="M20 7l-4 3v4l4 3V7z"/>
  183. </g>
  184. </svg>
  185. </a>
  186. </div>
  187. <div><strong>Địa điểm:</strong> 120 Xa Lộ Hà Nội, Thành Phố, Thủ Đức, Thành phố Hồ Chí Minh</div>
  188. <div><strong>Tọa độ:</strong> 10.8661° N, 106.8029° E</div>
  189. <div><strong>Thời gian:</strong> 01:54, 16/05/2022</div>
  190. <a href="/overview/overall-ground" target="_blank">Xem chi tiết</a>
  191. </div>
  192. </div>
  193. <a href="/overview/camera-stream" target="_blank">
  194. <img style="width: 30px; height: 30px;" src="assets/images/camera.png">
  195. </a>
  196. </div>
  197. <div style="background: #F11E1E; color: #FFF; padding: 2px 3px; font-size: 11px"><b>ALARM: SMOKE ALERT</b></div>
  198. </div>
  199. <style>
  200. .tooltip {
  201. position: relative;
  202. display: inline-block;
  203. }
  204. .tooltip .tooltiptext {
  205. visibility: hidden;
  206. width: 300px;
  207. padding: 10px;
  208. background-color: #fff;
  209. color: black;
  210. border-radius: 6px;
  211. position: absolute;
  212. z-index: 1;
  213. bottom: 100%;
  214. left: 50%;
  215. margin-left: -60px;
  216. }
  217. .tooltip:hover .tooltiptext {
  218. visibility: visible;
  219. }
  220. @keyframes sensor-on {
  221. 100% {
  222. transform: scale(2);
  223. opacity: 0;
  224. }
  225. }
  226. </style>`,
  227. sensorActiveVib: `
  228. <div style="display: flex;
  229. flex-direction: column;
  230. align-items: center">
  231. <div style="display: flex; flex-direction: row; gap: 39px;width: 100%; justify-content: center;">
  232. <div class="tooltip">
  233. <div style="width: 30px; height: 30px; position: absolute; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: linear-gradient(#ff0000, #C70039);">
  234. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite;"></div>
  235. <div style="position: absolute !important; width: 100%; height: 100%; background: #ff0000; border-radius: 50%; z-index: 1; animation: sensor-on 2s ease-out infinite; animation-delay: 1s;"></div>
  236. <img src="assets/images/sensor-on.png" style="width: 30px; height: 30px; z-index: 9;">
  237. </div>
  238. <div class="tooltiptext">
  239. <div style="display: flex;
  240. flex-direction: row;
  241. justify-content: space-between;">
  242. <div style="color: #F33152;
  243. padding: 5px 13px;
  244. background-color: rgba(243, 49, 82, 0.1);
  245. border-radius: 20px;
  246. text-align: center;
  247. width: 120px;">Hệ thống báo động 2</div>
  248. <a href="/overview/camera-stream" target="_blank">
  249. <svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
  250. <g stroke="currentColor" stroke-width="2">
  251. <path d="M16 16V8a1 1 0 00-1-1H5a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1z"/>
  252. <path stroke-linejoin="round" d="M20 7l-4 3v4l4 3V7z"/>
  253. </g>
  254. </svg>
  255. </a>
  256. </div>
  257. <div><strong>Địa điểm:</strong> 120 Xa Lộ Hà Nội, Thành Phố, Thủ Đức, Thành phố Hồ Chí Minh</div>
  258. <div><strong>Tọa độ:</strong> 10.8661° N, 106.8029° E</div>
  259. <div><strong>Thời gian:</strong> 01:54, 16/05/2022</div>
  260. <a href="/overview/overall-ground" target="_blank">Xem chi tiết</a>
  261. </div>
  262. </div>
  263. <a href="/overview/camera-stream" target="_blank">
  264. <img style="width: 30px; height: 30px;" src="assets/images/camera.png">
  265. </a>
  266. </div>
  267. <div style="background: #F11E1E; color: #FFF; padding: 2px 3px; font-size: 11px"><b>ALARM: VIBRATION ALERT</b></div>
  268. </div>
  269. <style>
  270. .tooltip {
  271. position: relative;
  272. display: inline-block;
  273. }
  274. .tooltip .tooltiptext {
  275. visibility: hidden;
  276. width: 300px;
  277. padding: 10px;
  278. background-color: #fff;
  279. color: black;
  280. border-radius: 6px;
  281. position: absolute;
  282. z-index: 1;
  283. bottom: 100%;
  284. left: 50%;
  285. margin-left: -60px;
  286. }
  287. .tooltip:hover .tooltiptext {
  288. visibility: visible;
  289. }
  290. @keyframes sensor-on {
  291. 100% {
  292. transform: scale(2);
  293. opacity: 0;
  294. }
  295. }
  296. </style>`,
  297. }