Source: scripts/templates/header.template.js

  1. /**
  2. * Returns an HTML template for the header component.
  3. *
  4. * @returns {string} The HTML template.
  5. */
  6. function getHeaderTemplate() {
  7. return /*html*/ `
  8. <h2 class="inter-extralight heading-text">Kanban Project Management Tool</h2>
  9. <img class="header-respo-logo" src="./assets/svg/logo.svg" alt="Join Logo">
  10. <div class="header-right">
  11. ${
  12. currentUser.isLoggedIn
  13. ? /*html*/ `
  14. <a href="./help.html"><img class="qeustion-mark" src="./assets/svg/help.svg" /></a>
  15. <button id="profile-menu-toggler" onclick="openProfileMenu()" type="button" class="btn btn-profile">
  16. <span class="inter-medium">${getInitialsFromContact(currentUser).toUpperCase()}</span>
  17. </button>
  18. `
  19. : ""
  20. }
  21. <div id="profile-menu" class="profile-menu d_none">
  22. <button onclick="window.location.href='./help.html'" class="inter-extralight">Help</button>
  23. <button onclick="window.location.href='./legal-notice.html'" class="inter-extralight">Legal Notice</button>
  24. <button onclick="window.location.href='./policy.html'" class="inter-extralight">Privacy Policy</button>
  25. <button onclick="logout()" class="inter-extralight">Log Out</button>
  26. </div>
  27. </div>
  28. `;
  29. }