navbar.eta 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <% const usFlag = `
  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="#eee" d="M256 0h256v64l-32 32l32 32v64l-32 32l32 32v64l-32 32l32 32v64l-256 32L0 448v-64l32-32l-32-32v-64z" />
  8. <path fill="#d80027" d="M224 64h288v64H224Zm0 128h288v64H256ZM0 320h512v64H0Zm0 128h512v64H0Z" />
  9. <path fill="#0052b4" d="M0 0h256v256H0Z" />
  10. <path fill="#eee" d="m187 243l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67zm162-81l57-41h-70l57 41l-22-67zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Zm162-82l57-41h-70l57 41l-22-67Zm-81 0l57-41H93l57 41l-22-67zm-81 0l57-41H12l57 41l-22-67Z" />
  11. </g>
  12. </svg>
  13. ` %>
  14. <% const homeIcon = `
  15. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  16. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  17. <path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" />
  18. <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" />
  19. </g>
  20. </svg>
  21. ` %>
  22. <% const dashboardIcon = `
  23. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  24. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  25. <rect width="20" height="14" x="2" y="3" rx="2" />
  26. <path d="M8 21h8m-4-4v4" />
  27. </g>
  28. </svg>
  29. ` %>
  30. <% const stationsIcon = `
  31. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  32. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  33. <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" />
  34. <circle cx="12" cy="12" r="2" />
  35. </g>
  36. </svg>
  37. ` %>
  38. <% const settingsIcon = `
  39. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  40. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  41. <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" />
  42. <circle cx="12" cy="12" r="3" />
  43. </g>
  44. </svg>
  45. ` %>
  46. <% const logoutIcon = `
  47. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  48. <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" />
  49. </svg>
  50. ` %>
  51. <header>
  52. <div class="links">
  53. <a role="button" href="/en/panel"><%~ usFlag %></a>
  54. <a role="button" href="/"><%~ homeIcon %></a>
  55. </div>
  56. <h2><%= process.env.APP_NAME %></h2>
  57. <div class="links">
  58. <a role="button" href="/panel"><%~ dashboardIcon %> dashboard</a>
  59. <a role="button" href="/panel/stations"><%~ stationsIcon %> stanice</a>
  60. <a role="button" href="/panel/settings"><%~ settingsIcon %> nastavenia</a>
  61. <a role="button" href="/auth/logout"><%~ logoutIcon %> odhlásiť sa</a>
  62. </div>
  63. </header>