<!DOCTYPE html>
<html lang="<%= lang %>">

<head>
  <%- include('common-meta') %>
    <link rel="stylesheet" href="/stylesheets/styles.css">
    <link rel="stylesheet" href="/stylesheets/header.css">
    <link rel="stylesheet" href="/stylesheets/designer.css">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag() { dataLayer.push(arguments); }
  gtag('js', new Date());

  gtag('config', 'G-JBGGVGLHTP');
</script>

<body>
  <%- include('header') %>

    <div style="display: flex; justify-content: center; align-items: center; margin-top: 20px;">
      <div class="card" style="width: 200px;">
        <a href="/<%= lang %>/artist/<%= user._id %>"><img src="<%= user.avatar %>" alt="<%= user.username %>"></a>
        <div class="info">
          <p><strong>
              <%= user.username %>
            </strong></p>
          <p>
            <%= translate.worksCount[lang] %>: <strong>
                <%= user.count %>
              </strong>
          </p>
        </div>
      </div>
    </div>

    <div class="content">
      <div class="image-grid">
        <% data.forEach(item=> { %>
          <div class="image-card">
            <a href="<%= item.uri %>"><img src="<%= item.thumb %>" alt="<%= item.title %>"></a>
            <div class="card-title"><%= item.title %></div>
          </div>
          <% }); %>
      </div>
    </div>

    <div style="padding: 40px"></div>

    <%- include('pagination') %>

</body>

</html>