album.ejs 742 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <%- include('head') %>
  5. <link rel="stylesheet" href="/stylesheets/album.css">
  6. </head>
  7. <body>
  8. <%- include('header') %>
  9. <div class="album-header">
  10. <h1 style="color: purple"><%= data.title %></h1>
  11. <img style="border-radius: 8px;" src="<%= data.cover %>" alt="<%= data.title %>">
  12. <div style="color: gray; font-size: 18px; padding: 10px"><%= data.slogon %></div>
  13. </div>
  14. <div class="content">
  15. <div class="image-grid">
  16. <% data.contents.forEach(item => { %>
  17. <a href="/<%= lang %>/detail/<%= item._id %>"><img src="<%= item.thumb %>" alt="<%= item.name %>" ></a>
  18. <% }); %>
  19. </div>
  20. </div>
  21. <div style="padding: 40px"></div>
  22. </body>
  23. </html>