navbar.eta 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <% const skFlag = `
  2. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
  3. <mask id="SVGuywqVbel">
  4. <circle cx="256" cy="256" r="256" fill="#fff" />
  5. </mask>
  6. <g mask="url(#SVGuywqVbel)">
  7. <path fill="#0052b4" d="m0 160l256-32l256 32v192l-256 32L0 352z" />
  8. <path fill="#eee" d="M0 0h512v160H0z" />
  9. <path fill="#d80027" d="M0 352h512v160H0z" />
  10. <path fill="#eee" d="M64 63v217c0 104 144 137 144 137s144-33 144-137V63z" />
  11. <path fill="#d80027" d="M96 95v185a83 78 0 0 0 9 34h206a83 77 0 0 0 9-34V95z" />
  12. <path fill="#eee" d="M288 224h-64v-32h32v-32h-32v-32h-32v32h-32v32h32v32h-64v32h64v32h32v-32h64z" />
  13. <path fill="#0052b4" d="M152 359a247 231 0 0 0 56 24c12-3 34-11 56-24a123 115 0 0 0 47-45a60 56 0 0 0-34-10l-14 2a60 56 0 0 0-110 0a60 56 0 0 0-14-2c-12 0-24 4-34 10a123 115 0 0 0 47 45" />
  14. </g>
  15. </svg>
  16. ` %>
  17. <% const homeIcon = `
  18. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  19. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  20. <path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" />
  21. <path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
  22. </g>
  23. </svg>
  24. ` %>
  25. <% const dashboardIcon = `
  26. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  27. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  28. <rect width="20" height="14" x="2" y="3" rx="2" />
  29. <path d="M8 21h8m-4-4v4" />
  30. </g>
  31. </svg>
  32. ` %>
  33. <% const stationsIcon = `
  34. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  35. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  36. <path d="M16.247 7.761a6 6 0 0 1 0 8.478m2.828-11.306a10 10 0 0 1 0 14.134m-14.15 0a10 10 0 0 1 0-14.134m2.828 11.306a6 6 0 0 1 0-8.478" />
  37. <circle cx="12" cy="12" r="2" />
  38. </g>
  39. </svg>
  40. ` %>
  41. <% const settingsIcon = `
  42. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  43. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  44. <path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" />
  45. <circle cx="12" cy="12" r="3" />
  46. </g>
  47. </svg>
  48. ` %>
  49. <% const logoutIcon = `
  50. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  51. <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
  52. </svg>
  53. ` %>
  54. <header>
  55. <div class="links">
  56. <a role="button" href="/panel"><%~ skFlag %></a>
  57. <a role="button" href="/en"><%~ homeIcon %></a>
  58. </div>
  59. <h2><%= process.env.APP_NAME %></h2>
  60. <div class="links">
  61. <a role="button" href="/en/panel"><%~ dashboardIcon %> dashboard</a>
  62. <a role="button" href="/en/panel/stations"><%~ stationsIcon %> stations</a>
  63. <a role="button" href="/en/panel/settings"><%~ settingsIcon %> settings</a>
  64. <a role="button" class="danger" href="/en/auth/logout"><%~ logoutIcon %> logout</a>
  65. </div>
  66. </header>