header.ejs 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <link rel="stylesheet" href="/stylesheets/header.css">
  2. <header class="header">
  3. <div class="dropdown">
  4. <svg class="dropbtn" style="margin-right: 5px;" width="24px" height="24px" viewBox="0 0 24 24" fill="none"
  5. xmlns="http://www.w3.org/2000/svg">
  6. <path opacity="0.5" d="M21 6L3 6" stroke="#1C274C" stroke-width="2.0" stroke-linecap="round" />
  7. <path opacity="0.5" d="M21 10L3 10" stroke="#1C274C" stroke-width="2.0" stroke-linecap="round" />
  8. <path opacity="0.5" d="M10 14H3" stroke="#1C274C" stroke-width="2.0" stroke-linecap="round" />
  9. <path opacity="0.5" d="M10 18H3" stroke="#1C274C" stroke-width="2.0" stroke-linecap="round" />
  10. <path d="M14 15L17.5 18L21 15" stroke="#1C274C" stroke-width="2.5" stroke-linecap="round"
  11. stroke-linejoin="round" />
  12. </svg>
  13. <div class="dropdown-home-content">
  14. <a href="/<%= lang %>" class="<%= uri == `/${lang}` ? 'selected' : '' %>"><%= translate.homePage[lang] %></a>
  15. <a href="/<%= lang %>/category" class="<%= uri.includes(`/${lang}/category`) ? 'selected' : '' %>"><%= translate.categoryPage[lang] %></a>
  16. <a href="/<%= lang %>/tag" class="<%= uri.includes(`/${lang}/tag`) ? 'selected' : '' %>"><%= translate.tagPage[lang] %></a>
  17. <a href="/<%= lang %>/albums" class="<%= uri.includes(`/${lang}/albums`) ? 'selected' : '' %>"><%= translate.album[lang] %></a>
  18. <a href="/<%= lang %>/special" class="<%= uri.includes(`/${lang}/special`) ? 'selected' : '' %>"><%= translate.special[lang] %></a>
  19. <a href="/<%= lang %>/designers" class="<%= uri.includes(`/${lang}/designers`) ? 'selected' : '' %>"><%= translate.designerColumn[lang] %></a>
  20. <div class="divider"></div>
  21. <a href="/<%= lang %>/my-works"><%= translate.my[lang] %></a>
  22. <div class="divider"></div>
  23. <a href="/<%= lang %>/info#app" class="<%= uri.includes(`/${lang}/info#app`) ? 'selected' : '' %>"><%= translate.app[lang] %></a>
  24. <a href="/<%= lang %>/info#about" class="<%= uri.includes(`/${lang}/info#about`) ? 'selected' : '' %>"><%= translate.about[lang] %></a>
  25. <a href="/<%= lang %>/info#contact" class="<%= uri.includes(`/${lang}/info#contact`) ? 'selected' : '' %>"><%= translate.contactUs[lang] %></a>
  26. <div class="divider"></div>
  27. <p class="copyright">Copyright &copy; 2025 Art Number Coloring All Rights Reserved</p>
  28. </div>
  29. </div>
  30. <a href="/<%= lang %>"><img src="/assets/svg/logo.svg" , alt="Art Number Coloring"></a>
  31. <div class="search-container">
  32. <form action="/<%= lang %>/search" method="GET" class="search-box">
  33. <input type="text" name="search" placeholder="Search...">
  34. <button type="submit">
  35. <svg fill="#000000" width="16px" height="16px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
  36. <path
  37. d="M12.027 9.92L16 13.95 14 16l-4.075-3.976A6.465 6.465 0 0 1 6.5 13C2.91 13 0 10.083 0 6.5 0 2.91 2.917 0 6.5 0 10.09 0 13 2.917 13 6.5a6.463 6.463 0 0 1-.973 3.42zM1.997 6.452c0 2.48 2.014 4.5 4.5 4.5 2.48 0 4.5-2.015 4.5-4.5 0-2.48-2.015-4.5-4.5-4.5-2.48 0-4.5 2.014-4.5 4.5z"
  38. fill-rule="evenodd" />
  39. </svg>
  40. </button>
  41. </form>
  42. </div>
  43. <div class="header-right">
  44. <div class="dropdown">
  45. <svg class="dropbtn" width="24px" height="24px" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"
  46. aria-labelledby="languageIconTitle" stroke="#000000" stroke-width="1.5" stroke-linecap="round"
  47. stroke-linejoin="round" fill="none" color="#000000">
  48. <title id="languageIconTitle">Language</title>
  49. <circle cx="12" cy="12" r="10" />
  50. <path stroke-linecap="round"
  51. d="M12,22 C14.6666667,19.5757576 16,16.2424242 16,12 C16,7.75757576 14.6666667,4.42424242 12,2 C9.33333333,4.42424242 8,7.75757576 8,12 C8,16.2424242 9.33333333,19.5757576 12,22 Z" />
  52. <path stroke-linecap="round" d="M2.5 9L21.5 9M2.5 15L21.5 15" />
  53. </svg>
  54. <div class="dropdown-content">
  55. <% languages.forEach(lg=> { %>
  56. <a href="/<%= lg.code %>" class="<%= lg.code == lang ? 'selected' : '' %>" style="font-size: 16px"><%= lg.title %></a>
  57. <% }); %>
  58. </div>
  59. </div>
  60. <!-- <a href="/<%= lang %>/app" class="header-right-btn"><%= translate.app[lang] %></a>
  61. <a href="/<%= lang %>/my-works" class="header-right-btn"><%= translate.my[lang] %></a> -->
  62. </div>
  63. </header>