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

<head>
  <%- include('common-meta') %>

    <link rel="stylesheet" href="/stylesheets/styles.css">
    <link rel="stylesheet" href="/stylesheets/header.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') %>
  <h1 style="display: flex; justify-content: center; padding: 10px; color: purple">
    <%= title %>
  </h1>
  <h2 style="display: flex; justify-content: center; padding: 0px 10px 10px 10px; color: #333">
    <%= description %>
  </h2>
  <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>

  <%- include('pagination') %>

</body>

</html>