video-colring-pages.html 16 KB

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