coloring-page-collection.ejs 7.8 KB

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