share copy.ejs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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 http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>Art Color</title>
  8. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?lang=en" hrefLang="en" />
  9. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?lang=zh" hrefLang="zh" />
  10. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?lang=es" hrefLang="es" />
  11. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?lang=pt" hrefLang="pt" />
  12. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?lang=ja" hrefLang="ja" />
  13. <link rel="alternate" href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2" hrefLang="x-default" />
  14. <meta name="description" content="Color and Relax!">
  15. <meta name="keywords" content="color, paint, app, ios, android, game">
  16. <meta property="og:site_name" content="art.pcoloring.com">
  17. <meta property="og:title" content="Art Color">
  18. <meta property="og:description" content="Color and Relax!">
  19. <meta property="og:image"
  20. content="http://color.jccytech.cn/thumbs/coloring-page/done/480/67f33f5d8f7086254fee7dd2.webp">
  21. <meta property="og:type" content="website">
  22. <!-- <meta property="fb:page_id" content="565152927316964"> -->
  23. <!-- MARK: Universal Link / Android App Link 的核心配置 -->
  24. <!-- 这些 meta 标签的值应该是完整的 HTTPS 链接,Facebook 会识别并尝试拉起 App -->
  25. <meta property="og:url" content="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2" />
  26. <!-- **Universal Link 路径** -->
  27. <meta property="al:ios:url" content="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2" />
  28. <!-- **Universal Link 路径** -->
  29. <meta property="al:ios:app_store_id" content="1575480118" /> <!-- **iOS App Store ID** -->
  30. <meta property="al:ios:app_name" content="Art Color" /> <!-- **iOS 应用名称** -->
  31. <meta property="al:android:package" content="com.pcoloring.art.puzzle.color.by.number" /> <!-- **Android 包名** -->
  32. <meta property="al:android:url" content="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2" />
  33. <!-- ** Universal Link 路径** -->
  34. <meta property="al:android:app_name" content="Art Color" /> <!-- **Android 应用名称** -->
  35. <meta name="apple-itunes-app" content="app-id=1575480118">
  36. <link rel="icon" href="/assets/icon/favicon.ico" type="image/x-icon">
  37. <link rel="apple-touch-icon" sizes="180x180" href="/assets/icon/icon.png">
  38. <script type="module" crossorigin src="/assets/share-DDyw1eeR.js"></script>
  39. <link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
  40. <link rel="modulepreload" crossorigin href="/assets/WorkLayer-RuTV64WF.js">
  41. <style>
  42. :root {
  43. --primary-color: #ff6b6b;
  44. --secondary-color: #4ecdc4;
  45. --accent-color: #ffd166;
  46. --background-color: #f9f9f9;
  47. --text-color: #333;
  48. --light-text: #666;
  49. --border-color: #e0e0e0;
  50. }
  51. body {
  52. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  53. display: flex;
  54. flex-direction: column;
  55. /* 垂直方向排列子元素 */
  56. height: 100vh;
  57. /* 严格限制高度为视口高度,确保不超出 */
  58. margin: 0;
  59. padding: 20px;
  60. /* 页面内边距 */
  61. box-sizing: border-box;
  62. /* 盒模型为边框盒 */
  63. background-color: var(--background-color);
  64. color: var(--text-color);
  65. line-height: 1.6;
  66. align-items: center;
  67. /* 水平居中所有flex子项 */
  68. }
  69. /* 头部容器 */
  70. .header-container {
  71. width: 100%;
  72. /* 占据全部宽度 */
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. justify-content: center;
  77. padding-bottom: 15px;
  78. /* 与下方内容留出间距,略微缩小 */
  79. flex-shrink: 0;
  80. /* 不会收缩 */
  81. }
  82. .app-icon {
  83. display: flex;
  84. justify-content: center;
  85. align-items: center;
  86. margin: 0 auto;
  87. overflow: hidden;
  88. }
  89. .app-icon img {
  90. width: 90px;
  91. /* 图标调小 */
  92. height: 90px;
  93. /* 图标调小 */
  94. border: 3px solid #eeeeee;
  95. border-radius: 10px;
  96. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  97. object-fit: contain;
  98. }
  99. .app-title {
  100. font-size: 1.8rem;
  101. /* 标题调小 */
  102. font-weight: 700;
  103. margin-bottom: 15px;
  104. /* 调整为与图标的间距,略微缩小 */
  105. text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  106. text-align: center;
  107. /* 确保标题在移动端也居中 */
  108. }
  109. /* 图片和 Canvas 容器,占据剩余所有空间 */
  110. .image-canvas-container {
  111. position: relative;
  112. width: 100%;
  113. /* 占据所有可用宽度 */
  114. max-width: 600px;
  115. /* 限制最大宽度,保持美观 */
  116. flex-grow: 1;
  117. /* 占据所有剩余垂直空间 */
  118. min-height: 0;
  119. /* 允许flex-grow在必要时收缩 */
  120. display: flex;
  121. /* 内部使用flex布局来居中图片和canvas */
  122. justify-content: center;
  123. align-items: center;
  124. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  125. /* 添加阴影效果 */
  126. border-radius: 12px;
  127. /* 圆角 */
  128. overflow: hidden;
  129. /* 隐藏超出容器的内容 */
  130. margin-bottom: 15px;
  131. /* 与下方按钮留出间距,略微缩小 */
  132. /* aspect-ratio: 1 / 1; /* 移除1:1比例,让高度自适应剩余空间 */
  133. }
  134. /* 图片样式:使其响应式并填充容器 */
  135. .image-canvas-container img {
  136. position: absolute;
  137. /* 绝对定位,与canvas重叠 */
  138. display: block;
  139. /* 移除图片底部空白 */
  140. width: 100%;
  141. /* 宽度填充父容器 */
  142. height: 100%;
  143. /* 高度填充父容器 */
  144. object-fit: contain;
  145. /* 保持图片比例,适应容器 */
  146. border-radius: 12px;
  147. /* 与容器相同的圆角 */
  148. z-index: 100;
  149. /* 确保图片在canvas之上 */
  150. }
  151. /* Canvas 样式:绝对定位,与图片完全重叠 */
  152. .image-canvas-container canvas {
  153. position: absolute;
  154. top: 0;
  155. left: 0;
  156. width: 100%;
  157. height: 100%;
  158. border-radius: 12px;
  159. /* 与容器相同的圆角 */
  160. z-index: 50;
  161. /* 在图片之下 */
  162. }
  163. .btn {
  164. display: inline-block;
  165. min-width: 180px;
  166. background-color: var(--primary-color);
  167. color: white;
  168. border: none;
  169. padding: 10px 20px;
  170. border-radius: 20px;
  171. font-size: 1.1rem;
  172. font-weight: 500;
  173. cursor: pointer;
  174. transition: background-color 0.3s ease;
  175. text-decoration: none;
  176. text-align: center;
  177. margin-right: 10px;
  178. margin-bottom: 10px;
  179. }
  180. .btn:hover {
  181. background-color: #ff4d4d;
  182. }
  183. .btn-secondary {
  184. background-color: var(--secondary-color);
  185. }
  186. .btn-secondary:hover {
  187. background-color: #37b0a8;
  188. }
  189. .play-button {
  190. position: absolute;
  191. display: block;
  192. top: 50%;
  193. left: 50%;
  194. transform: translate(-50%, -50%);
  195. width: 80px;
  196. height: 80px;
  197. background-color: rgba(255, 107, 107, 0.8);
  198. border-radius: 50%;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. transition: all 0.3s ease;
  203. z-index: 110;
  204. /* 确保播放按钮在图片之上 */
  205. }
  206. .play-button:hover {
  207. background-color: rgba(255, 107, 107, 1);
  208. transform: translate(-50%, -50%) scale(1.1);
  209. }
  210. .play-button::after {
  211. content: "";
  212. width: 0;
  213. height: 0;
  214. border-top: 15px solid transparent;
  215. border-bottom: 15px solid transparent;
  216. border-left: 25px solid white;
  217. margin-left: 5px;
  218. }
  219. /* 按钮容器在底部 */
  220. .buttons {
  221. width: 100%;
  222. /* 占据全部宽度 */
  223. max-width: 550px;
  224. /* 限制最大宽度 */
  225. display: flex;
  226. flex-wrap: wrap;
  227. flex-direction: column;
  228. /* 按钮垂直排列 */
  229. justify-content: center;
  230. align-items: center;
  231. margin-top: 15px;
  232. /* 与上方内容留出间距,略微缩小 */
  233. flex-shrink: 0;
  234. /* 不会收缩 */
  235. }
  236. /* MARK: 微信引导层样式 */
  237. .wechat-guide-overlay {
  238. position: fixed;
  239. top: 0;
  240. left: 0;
  241. width: 100%;
  242. height: 100%;
  243. background-color: rgba(0, 0, 0, 0.75);
  244. /* 半透明黑色背景 */
  245. z-index: 9999;
  246. /* 确保在最上层 */
  247. display: none;
  248. /* 默认隐藏 */
  249. justify-content: center;
  250. align-items: center;
  251. color: white;
  252. font-size: 1.5rem;
  253. text-align: center;
  254. padding: 20px;
  255. box-sizing: border-box;
  256. flex-direction: column;
  257. }
  258. .wechat-guide-overlay.active {
  259. display: flex;
  260. /* 显示引导层 */
  261. }
  262. .wechat-guide-arrow {
  263. position: absolute;
  264. top: 10px;
  265. /* 箭头位置靠近右上角 */
  266. right: 20px;
  267. width: 80px;
  268. height: 80px;
  269. background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" transform="rotate(90 12 12)"/></svg>') no-repeat center center;
  270. background-size: contain;
  271. transform: rotate(90deg);
  272. /* 旋转箭头指向右下 */
  273. }
  274. .wechat-guide-text {
  275. margin-top: 100px;
  276. /* 留出箭头空间 */
  277. line-height: 1.8;
  278. }
  279. .wechat-guide-text strong {
  280. color: var(--accent-color);
  281. /* 突出显示关键文字 */
  282. }
  283. @media (max-width: 768px) {
  284. body {
  285. padding: 10px;
  286. /* 移动端减小内边距 */
  287. }
  288. .app-title {
  289. font-size: 1.5rem;
  290. /* 移动端标题进一步调小 */
  291. margin-bottom: 10px;
  292. /* 移动端调整间距 */
  293. }
  294. .app-icon img {
  295. width: 70px;
  296. /* 移动端图标进一步调小 */
  297. height: 70px;
  298. }
  299. .buttons {
  300. margin-top: 15px;
  301. /* 移动端调整间距 */
  302. }
  303. .btn {
  304. min-width: 150px;
  305. /* 移动端按钮小一点 */
  306. font-size: 1rem;
  307. margin-right: 0;
  308. /* 垂直排列时不需要右边距 */
  309. }
  310. }
  311. </style>
  312. </head>
  313. <!-- Google tag (gtag.js) -->
  314. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  315. <script>
  316. window.dataLayer = window.dataLayer || [];
  317. function gtag() { dataLayer.push(arguments); }
  318. gtag('js', new Date());
  319. gtag('config', 'G-JBGGVGLHTP');
  320. </script>
  321. <body>
  322. <div class="header-container">
  323. <div class="app-icon">
  324. <img src="/assets/icon/logo_640x640.webp" alt="Art Color App Logo">
  325. </div>
  326. <h1 class="app-title">🎨 Art Color - Color by Number 🎨</h1>
  327. </div>
  328. <div class="image-canvas-container">
  329. <img id="poster-img" src="http://color.jccytech.cn/thumbs/coloring-page/done/480/67f33f5d8f7086254fee7dd2.webp"
  330. alt="Art Color" />
  331. <canvas id="canvas"></canvas>
  332. <div id="play-button" class="play-button"></div>
  333. </div>
  334. <div class="buttons">
  335. <a href="https://pcoloring.com/anc/" class="btn btn-secondary">
  336. Download App
  337. </a>
  338. <a href="https://art.pcoloring.com/share/67f33f5d8f7086254fee7dd2?pullapp=1" class="btn btn-primary">
  339. Claim Bonus
  340. </a>
  341. </div>
  342. <!-- MARK: 微信引导层 -->
  343. <div id="wechat-guide-overlay" class="wechat-guide-overlay">
  344. <div class="wechat-guide-arrow" onclick="closeOverlay()"></div>
  345. <p class="wechat-guide-text">
  346. 请点击右上角 <strong>"..."</strong> 菜单<br>
  347. 选择 <strong>"在浏览器中打开"</strong><br>
  348. 即可跳转到 App 或下载页面
  349. </p>
  350. </div>
  351. <script>
  352. const wechatGuideOverlay = document.getElementById('wechat-guide-overlay');
  353. // MARK: 微信环境检测
  354. function isWeChatBrowser() {
  355. const ua = window.navigator.userAgent.toLowerCase();
  356. return ua.includes('micromessenger');
  357. }
  358. function closeOverlay() {
  359. wechatGuideOverlay.classList.remove('active');
  360. }
  361. if (isWeChatBrowser()) {
  362. wechatGuideOverlay.classList.add('active');
  363. console.log("检测到微信浏览器,显示引导层。");
  364. } else {
  365. wechatGuideOverlay.classList.remove('active'); // 确保隐藏
  366. }
  367. </script>
  368. </body>
  369. </html>