coloring-page-collection.ejs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="description" content="<%= data.seoDescription %>">
  7. <title><%= data.seoTitle %></title>
  8. <link rel="icon" href="/assets/icon/favicon.ico" type="image/x-icon">
  9. <link rel="stylesheet" href="/stylesheets/v2/styles.css">
  10. <style>
  11. h1 {
  12. text-align: start;
  13. }
  14. p {
  15. font-size: 1.1rem;
  16. }
  17. .breadcrumb {
  18. margin: 20px 0;
  19. font-size: 1.0rem;
  20. color: var(--light-text);
  21. }
  22. .breadcrumb a {
  23. color: var(--primary-color);
  24. text-decoration: none;
  25. }
  26. .breadcrumb a:hover {
  27. text-decoration: underline;
  28. }
  29. .poster-image {
  30. margin-bottom: 20px;
  31. }
  32. .poster-image img {
  33. width: 100%;
  34. height: 100%;
  35. object-fit: fill;
  36. border-radius: 8px;
  37. }
  38. .gallery-link {
  39. text-align: center;
  40. margin-top: 30px;
  41. font-size: 1.2rem;
  42. }
  43. .gallery-link a {
  44. color: var(--primary-color);
  45. text-decoration: none;
  46. font-weight: 600;
  47. display: inline-flex;
  48. align-items: center;
  49. }
  50. .gallery-link a:hover {
  51. text-decoration: underline;
  52. }
  53. .gallery-link svg {
  54. margin-left: 8px;
  55. width: 16px;
  56. height: 16px;
  57. }
  58. .how-to-title {
  59. color: var(--text-color);
  60. font-size: 1.8rem;
  61. margin-bottom: 30px;
  62. text-align: start;
  63. }
  64. .how-to-steps {
  65. display: grid;
  66. grid-template-columns: 1fr;
  67. gap: 30px;
  68. }
  69. .how-to-step {
  70. padding: 25px;
  71. border-radius: 10px;
  72. border: 1px solid #eee;
  73. transition: all 0.3s ease;
  74. }
  75. .how-to-step:hover {
  76. transform: translateY(-5px);
  77. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  78. }
  79. .step-header {
  80. display: flex;
  81. align-items: center;
  82. margin-bottom: 15px;
  83. }
  84. .step-number {
  85. width: 40px;
  86. height: 40px;
  87. background-color: var(--primary-color);
  88. color: white;
  89. border-radius: 50%;
  90. display: flex;
  91. align-items: center;
  92. justify-content: center;
  93. font-size: 1.2rem;
  94. font-weight: 700;
  95. margin-right: 15px;
  96. }
  97. .step-title {
  98. font-size: 1.3rem;
  99. font-weight: 600;
  100. color: var(--text-color);
  101. }
  102. ul {
  103. padding: 20px;
  104. }
  105. ul li {
  106. padding: 10px;
  107. }
  108. li a {
  109. font-size: 1.2rem;
  110. color: var(--secondary-color)
  111. }
  112. @media (max-width: 768px) {
  113. .gallery-link {
  114. font-size: 1rem;
  115. }
  116. .how-to-section {
  117. padding: 25px;
  118. }
  119. .how-to-title {
  120. font-size: 1.5rem;
  121. }
  122. .step-title {
  123. font-size: 1.2rem;
  124. }
  125. }
  126. </style>
  127. <script type="application/ld+json">
  128. {
  129. "@context": "https://schema.org",
  130. "@type": "CollectionPage",
  131. "name": "<%= data.seoTitle %>",
  132. "description": "<%= data.seoDescription %>",
  133. "url": "https://art.pcoloring.com/<%= data.uri %>",
  134. "mainEntity": {
  135. "@type": "ItemList",
  136. "itemListElement": [
  137. <% data.data.forEach((item, index)=> { %>
  138. {
  139. "@type": "ListItem",
  140. "position": <%= index+1 %>,
  141. "item": {
  142. "@type": "CreativeWork",
  143. "name": "<%= item.title %>",
  144. "url": "https://art.pcoloring.com<%= item.uri %>",
  145. "image": "https://d2mb6s2cy1zg97.cloudfront.net/thumbs/coloring-page/page/480/<%= item._id %>.webp",
  146. "author": {
  147. "@type": "Person",
  148. "name": "<%= item.user.username %>"
  149. }
  150. }
  151. },
  152. <% }); %>
  153. ]
  154. }
  155. }
  156. </script>
  157. <script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=685036ce6c1ae8001abaded7&product=sop' async='async'></script>
  158. </head>
  159. <!-- Google tag (gtag.js) -->
  160. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  161. <script>
  162. window.dataLayer = window.dataLayer || [];
  163. function gtag() { dataLayer.push(arguments); }
  164. gtag('js', new Date());
  165. gtag('config', 'G-JBGGVGLHTP');
  166. </script>
  167. <body>
  168. <%- include('header') %>
  169. <main class="container">
  170. <div class="breadcrumb">
  171. <a href="/">Home</a> &gt; <a href="/coloring-pages">Coloring Pages</a> &gt; <%= data.title%>
  172. </div>
  173. <section>
  174. <h1>
  175. <%= data.title%>
  176. </h1>
  177. <h4 style="margin-bottom: 40px;">By Art Number Coloring / <%=data.date%>
  178. </h4>
  179. <div class="poster-image">
  180. <img src="/assets/coloring-pages/<%=data.tag%>-3-1.webp" alt="<%= data.title%>">
  181. <!-- <picture>
  182. <source media="(min-width: 768px)" srcset="/assets/coloring-pages/<%=data.tag%>-3-1.webp">
  183. <source media="(max-width: 767px)" srcset="/assets/coloring-pages/<%=data.tag%>-16-9.webp">
  184. <img src="/assets/coloring-pages/<%=data.tag%>-16-9.webp" alt="<%= data.title%>">
  185. </picture> -->
  186. </div>
  187. <p><%-data.p1%></p>
  188. <p><%-data.p2%></p>
  189. </section>
  190. <section>
  191. <h2>
  192. <%= data.title %>
  193. </h2>
  194. <div class="coloring-grid">
  195. <% data.data.forEach(item=> { %>
  196. <div class="coloring-card">
  197. <div data-content-id="<%= item._id %>" class="coloring-image">
  198. <a href="<%= item.uri %>"><img src="<%= item.thumb %>" alt="<%= item.title %>"></a>
  199. </div>
  200. <div class="coloring-content">
  201. <div class="coloring-title"><%= item.title %></div>
  202. <div class="coloring-author">by <a href="/coloring-page-gallery?author=<%= item.user.username %>"><%= item.user.username %></a></div>
  203. <div class="coloring-meta">
  204. <div class="date"><%= item.publishTime %></div>
  205. <div class="views"><%= item.totalStartCount ? item.totalStartCount : 0 %></div>
  206. </div>
  207. <div class="coloring-tags">
  208. <% item.tags.forEach(tag=> { %>
  209. <a href="/coloring-page-gallery?category=<%= tag %>"><span class="tag" data-tag="<%= tag %>"><%= tag %></span></a>
  210. <% }); %>
  211. </div>
  212. </div>
  213. </div>
  214. <% }); %>
  215. </div>
  216. <div class="gallery-link">
  217. <a href="/coloring-page-gallery?category=<%= data.tag%>">
  218. Want more <%= data.titleLowercase %>? go <strong style="margin-left: 10px;"> Coloring Page Gallery</strong>.
  219. <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  220. <path d="M13 5L19 12L13 19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
  221. stroke-linejoin="round" />
  222. </svg>
  223. </a>
  224. </div>
  225. </section>
  226. <%- include(data.tips) %>
  227. <section>
  228. <h2>More Free Coloring Fun</h2>
  229. <p>
  230. <%=data.morefun.title %>
  231. </p>
  232. <ul>
  233. <% data.morefun.links.forEach(item=> { %>
  234. <li><a href="<%= item.link %>">
  235. <%= item.title %>
  236. </a></li>
  237. <% }); %>
  238. </ul>
  239. <p>Or visit gallery to explore more coloring pages </p>
  240. <ul>
  241. <li><a href="/coloring-page-gallery">Coloring Page Gallery</a></li>
  242. </ul>
  243. <h2>Color With Us</h2>
  244. <p>Don’t forget to follow us on social media where we post updates about our latest coloring pages!</p>
  245. </section>
  246. <%- include('comment') %>
  247. </main>
  248. <%- include('footer') %>
  249. <script src="/scripts/script.js"></script>
  250. <script src="/scripts/progress2.js"></script>
  251. </body>
  252. </html>