video-colring-pages.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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. <title>Video Story Coloring Pages - Art Number Coloring</title>
  7. <!-- 引入HLS.js库 -->
  8. <script src="https://cdn.jsdelivr.net/npm/hls.js@1.4.14/dist/hls.min.js"></script>
  9. <!-- SEO 元标签 -->
  10. <meta name="description" content="Explore our collection of video story coloring pages! Watch fun videos and color the memorable moments. Perfect for kids and adults alike.">
  11. <meta name="keywords" content="coloring pages, video stories, printable coloring, art activities, kids crafts">
  12. <meta name="robots" content="index, follow">
  13. <meta property="og:title" content="Video Story Coloring Pages - Art Number Coloring">
  14. <meta property="og:description" content="Watch fascinating videos and turn them into beautiful coloring pages. Each video captures moments that our artists transform into detailed coloring designs.">
  15. <meta property="og:image" content="https://picsum.photos/1200/630?random=100">
  16. <meta property="og:url" content="https://artnumbercoloring.com/video-stories">
  17. <meta property="og:type" content="website">
  18. <style>
  19. :root {
  20. --primary-color: #ff6b6b;
  21. --secondary-color: #4ecdc4;
  22. --accent-color: #ffd166;
  23. --text-color: #333;
  24. --light-text: #666;
  25. --background-color: #f9f9f9;
  26. }
  27. * {
  28. margin: 0;
  29. padding: 0;
  30. box-sizing: border-box;
  31. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  32. }
  33. body {
  34. background-color: var(--background-color);
  35. color: var(--text-color);
  36. line-height: 1.6;
  37. }
  38. .container {
  39. max-width: 1200px;
  40. margin: 0 auto;
  41. padding: 0 20px;
  42. }
  43. header {
  44. background-color: var(--primary-color);
  45. color: white;
  46. padding: 30px 0;
  47. text-align: center;
  48. position: relative;
  49. }
  50. .header-logo {
  51. font-size: 1.8rem;
  52. font-weight: 700;
  53. letter-spacing: 1px;
  54. }
  55. .breadcrumb {
  56. margin: 20px 0;
  57. font-size: 0.9rem;
  58. color: var(--light-text);
  59. }
  60. .breadcrumb a {
  61. color: var(--primary-color);
  62. text-decoration: none;
  63. }
  64. .breadcrumb a:hover {
  65. text-decoration: underline;
  66. }
  67. .page-title {
  68. color: var(--secondary-color);
  69. font-size: 2.2rem;
  70. margin: 40px 0 20px;
  71. text-align: center;
  72. }
  73. .page-description {
  74. color: var(--light-text);
  75. max-width: 800px;
  76. margin: 0 auto 50px;
  77. text-align: center;
  78. }
  79. /* 视频故事卡片样式 */
  80. .video-story-card {
  81. background-color: white;
  82. border-radius: 10px;
  83. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  84. margin-bottom: 30px;
  85. overflow: hidden;
  86. }
  87. .story-content {
  88. display: grid;
  89. grid-template-columns: 1fr;
  90. gap: 20px;
  91. }
  92. @media (min-width: 768px) {
  93. .story-content {
  94. grid-template-columns: 1fr 1.5fr;
  95. }
  96. }
  97. /* 视频区域 */
  98. .video-wrapper {
  99. position: relative;
  100. background-color: #000;
  101. overflow: hidden;
  102. aspect-ratio: 9/16; /* 竖版视频比例 */
  103. }
  104. .video-wrapper video {
  105. width: 100%;
  106. height: 100%;
  107. object-fit: cover;
  108. }
  109. .play-button {
  110. position: absolute;
  111. top: 50%;
  112. left: 50%;
  113. transform: translate(-50%, -50%);
  114. width: 60px;
  115. height: 60px;
  116. background-color: rgba(255, 107, 107, 0.8);
  117. border-radius: 50%;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. transition: all 0.3s ease;
  122. cursor: pointer;
  123. z-index: 10;
  124. }
  125. .play-button:hover {
  126. background-color: rgba(255, 107, 107, 1);
  127. transform: translate(-50%, -50%) scale(1.1);
  128. }
  129. .play-button::after {
  130. content: "";
  131. width: 0;
  132. height: 0;
  133. border-top: 12px solid transparent;
  134. border-bottom: 12px solid transparent;
  135. border-left: 20px solid white;
  136. margin-left: 5px;
  137. }
  138. /* 填色页预览区域 */
  139. .coloring-pages {
  140. padding: 20px;
  141. }
  142. .story-title {
  143. font-size: 1.5rem;
  144. font-weight: 700;
  145. color: var(--primary-color);
  146. margin-bottom: 15px;
  147. }
  148. .story-description {
  149. color: var(--light-text);
  150. margin-bottom: 20px;
  151. }
  152. .coloring-grid {
  153. display: grid;
  154. grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  155. gap: 15px;
  156. }
  157. .coloring-item {
  158. position: relative;
  159. border-radius: 8px;
  160. overflow: hidden;
  161. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  162. transition: transform 0.3s ease;
  163. cursor: pointer;
  164. }
  165. .coloring-item:hover {
  166. transform: translateY(-5px);
  167. }
  168. .coloring-item img {
  169. width: 100%;
  170. height: 100%;
  171. object-fit: cover;
  172. aspect-ratio: 1/1; /* 1:1 线稿缩略图 */
  173. }
  174. .coloring-overlay {
  175. position: absolute;
  176. bottom: 0;
  177. left: 0;
  178. right: 0;
  179. background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  180. padding: 10px;
  181. color: white;
  182. font-size: 0.9rem;
  183. font-weight: 600;
  184. }
  185. /* 分页控件 */
  186. .pagination {
  187. display: flex;
  188. justify-content: center;
  189. align-items: center;
  190. margin: 40px 0;
  191. }
  192. .pagination-item {
  193. width: 35px;
  194. height: 35px;
  195. border-radius: 50%;
  196. display: flex;
  197. justify-content: center;
  198. align-items: center;
  199. margin: 0 5px;
  200. text-decoration: none;
  201. color: var(--text-color);
  202. transition: all 0.3s ease;
  203. }
  204. .pagination-item.active {
  205. background-color: var(--primary-color);
  206. color: white;
  207. }
  208. .pagination-item:hover:not(.active) {
  209. background-color: #f0f0f0;
  210. }
  211. /* 响应式设计 */
  212. @media (max-width: 768px) {
  213. .page-title {
  214. font-size: 1.8rem;
  215. }
  216. .story-title {
  217. font-size: 1.3rem;
  218. }
  219. .coloring-grid {
  220. grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  221. gap: 10px;
  222. }
  223. }
  224. </style>
  225. </head>
  226. <body>
  227. <header>
  228. <div class="container">
  229. <div class="header-logo">Art Number Coloring</div>
  230. <p>Free Printable Coloring Pages and Birthday Cards</p>
  231. </div>
  232. </header>
  233. <div class="container">
  234. <div class="breadcrumb">
  235. <a href="/">Home</a> &gt; Video Story Coloring Pages
  236. </div>
  237. <h1 class="page-title">Video Story Coloring Pages</h1>
  238. <p class="page-description">Watch fascinating real-life stories and turn them into beautiful coloring pages. Each video captures moments that our artists transform into detailed coloring designs.</p>
  239. <!-- 视频故事卡片 -->
  240. <div class="video-story-card" data-video-id="video1">
  241. <div class="story-content">
  242. <!-- 视频区域 -->
  243. <div class="video-wrapper">
  244. <video poster="https://picsum.photos/450/800?random=1" muted playsinline>
  245. Your browser does not support the video tag.
  246. </video>
  247. <div class="play-button"></div>
  248. </div>
  249. <!-- 填色页预览区域 -->
  250. <div class="coloring-pages">
  251. <h3 class="story-title">Summer at the Beach</h3>
  252. <p class="story-description">Watch a beautiful summer day at the beach and color the memorable moments! Build sandcastles, play volleyball, and enjoy the sunset.</p>
  253. <div class="coloring-grid">
  254. <div class="coloring-item" onclick="window.location.href='#coloring1'">
  255. <img src="https://picsum.photos/400/400?random=11" alt="Beach sandcastle coloring page">
  256. <div class="coloring-overlay">Sandcastle</div>
  257. </div>
  258. <div class="coloring-item" onclick="window.location.href='#coloring2'">
  259. <img src="https://picsum.photos/400/400?random=11" alt="Beach sandcastle coloring page">
  260. <div class="coloring-overlay">Sandcastle</div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. <div class="video-story-card" data-video-id="video2">
  267. <div class="story-content">
  268. <!-- 视频区域 -->
  269. <div class="video-wrapper">
  270. <video poster="https://picsum.photos/450/800?random=2" muted playsinline>
  271. Your browser does not support the video tag.
  272. </video>
  273. <div class="play-button"></div>
  274. </div>
  275. <!-- 填色页预览区域 -->
  276. <div class="coloring-pages">
  277. <h3 class="story-title">A Day at the Farm</h3>
  278. <p class="story-description">Experience a day on the farm with our friendly animals. Feed the chickens, milk the cows, and harvest fresh vegetables.</p>
  279. <div class="coloring-grid">
  280. <div class="coloring-item" onclick="window.location.href='#coloring5'">
  281. <img src="https://picsum.photos/400/400?random=21" alt="Farm chickens coloring page">
  282. <div class="coloring-overlay">Chickens</div>
  283. </div>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. <div class="video-story-card" data-video-id="video3">
  289. <div class="story-content">
  290. <!-- 视频区域 -->
  291. <div class="video-wrapper">
  292. <video poster="https://picsum.photos/450/800?random=3" muted playsinline>
  293. Your browser does not support the video tag.
  294. </video>
  295. <div class="play-button"></div>
  296. </div>
  297. <!-- 填色页预览区域 -->
  298. <div class="coloring-pages">
  299. <h3 class="story-title">Under the Sea Adventure</h3>
  300. <p class="story-description">Dive into the ocean and meet colorful fish, playful dolphins, and majestic whales in this exciting underwater journey.</p>
  301. <div class="coloring-grid">
  302. <div class="coloring-item" onclick="window.location.href='#coloring9'">
  303. <img src="https://picsum.photos/400/400?random=31" alt="Underwater clownfish coloring page">
  304. <div class="coloring-overlay">Clownfish</div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. <!-- 分页控件 -->
  311. <div class="pagination">
  312. <a href="#" class="pagination-item"><</a>
  313. <a href="#" class="pagination-item active">1</a>
  314. <a href="#" class="pagination-item">2</a>
  315. <a href="#" class="pagination-item">3</a>
  316. <span class="pagination-item">...</span>
  317. <a href="#" class="pagination-item">10</a>
  318. <a href="#" class="pagination-item">></a>
  319. </div>
  320. </div>
  321. <footer>
  322. <div class="container footer-content">
  323. <p>Art Number Coloring - Free Printable Coloring Pages and Birthday Cards</p>
  324. <p>Bringing creativity to your fingertips, one coloring page at a time.</p>
  325. </div>
  326. </footer>
  327. <script>
  328. // 视频源数据 - 替换为实际的HLS视频URL
  329. const videoSources = {
  330. video1: 'https://example.com/video1.m3u8',
  331. video2: 'https://example.com/video2.m3u8',
  332. video3: 'https://example.com/video3.m3u8'
  333. };
  334. // 当前播放的视频和HLS实例
  335. let currentVideo = null;
  336. let currentHls = null;
  337. // 初始化所有视频播放器
  338. document.addEventListener('DOMContentLoaded', () => {
  339. const videoCards = document.querySelectorAll('.video-story-card');
  340. videoCards.forEach(card => {
  341. const videoId = card.getAttribute('data-video-id');
  342. const videoWrapper = card.querySelector('.video-wrapper');
  343. const video = videoWrapper.querySelector('video');
  344. const playButton = videoWrapper.querySelector('.play-button');
  345. // 初始化HLS播放器
  346. initHlsPlayer(video, videoSources[videoId]);
  347. // 点击视频区域播放/暂停
  348. videoWrapper.addEventListener('click', (e) => {
  349. // 如果点击的是视频控件,则不处理
  350. if (e.target.tagName === 'INPUT' || e.target.tagName === 'BUTTON') {
  351. return;
  352. }
  353. toggleVideoPlay(videoWrapper);
  354. });
  355. // 视频结束时显示播放按钮
  356. video.addEventListener('ended', () => {
  357. playButton.style.display = 'flex';
  358. currentVideo = null;
  359. });
  360. });
  361. });
  362. // 初始化HLS播放器
  363. function initHlsPlayer(videoElement, videoSrc) {
  364. if (Hls.isSupported()) {
  365. const hls = new Hls({
  366. maxBufferLength: 30,
  367. maxMaxBufferLength: 60
  368. });
  369. hls.loadSource(videoSrc);
  370. hls.attachMedia(videoElement);
  371. return hls;
  372. }
  373. // 浏览器原生支持HLS
  374. else if (videoElement.canPlayType('application/vnd.apple.mpegurl')) {
  375. videoElement.src = videoSrc;
  376. return null;
  377. }
  378. return null;
  379. }
  380. // 切换视频播放状态
  381. function toggleVideoPlay(videoWrapper) {
  382. const video = videoWrapper.querySelector('video');
  383. const playButton = videoWrapper.querySelector('.play-button');
  384. // 如果有其他视频正在播放,先停止
  385. if (currentVideo && currentVideo !== videoWrapper) {
  386. stopCurrentVideo();
  387. }
  388. if (video.paused) {
  389. video.play().then(() => {
  390. playButton.style.display = 'none';
  391. currentVideo = videoWrapper;
  392. }).catch(error => {
  393. console.error('Video play error:', error);
  394. playButton.style.display = 'flex';
  395. });
  396. } else {
  397. video.pause();
  398. playButton.style.display = 'flex';
  399. currentVideo = null;
  400. }
  401. }
  402. // 停止当前播放的视频
  403. function stopCurrentVideo() {
  404. if (currentVideo) {
  405. const video = currentVideo.querySelector('video');
  406. const playButton = currentVideo.querySelector('.play-button');
  407. video.pause();
  408. playButton.style.display = 'flex';
  409. }
  410. }
  411. </script>
  412. </body>
  413. </html>