designers.ejs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="<%= lang %>">
  3. <head>
  4. <%- include('common-meta') %>
  5. <link rel="stylesheet" href="/stylesheets/header.css">
  6. <link rel="stylesheet" href="/stylesheets/designer.css">
  7. </head>
  8. <!-- Google tag (gtag.js) -->
  9. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  10. <script>
  11. window.dataLayer = window.dataLayer || [];
  12. function gtag() { dataLayer.push(arguments); }
  13. gtag('js', new Date());
  14. gtag('config', 'G-JBGGVGLHTP');
  15. </script>
  16. <body>
  17. <%- include('header') %>
  18. <h1 style="display: flex; justify-content: center; padding: 10px; color: purple">
  19. <%= title %>
  20. </h1>
  21. <h2 style="display: flex; justify-content: center; padding: 0px 10px 10px 10px; color: #333">
  22. <%= description %>
  23. </h2>
  24. <div class="container">
  25. <% data.forEach(item=> { %>
  26. <div class="card">
  27. <a href="/<%= lang %>/artist/<%= item._id %>"><img src="<%= item.avatar %>" alt="<%= meta.designerTitle[lang] %>: <%= item.username %>"></a>
  28. <div class="info">
  29. <p><strong>
  30. <%= item.username %>
  31. </strong></p>
  32. <p>
  33. <%= translate.worksCount[lang] %>: <strong>
  34. <%= item.count %>
  35. </strong>
  36. </p>
  37. </div>
  38. </div>
  39. <% }); %>
  40. </div>
  41. </body>
  42. </html>