| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Video Story Coloring Pages - Art Color</title>
- <!-- 引入HLS.js库 -->
- <script src="https://cdn.jsdelivr.net/npm/hls.js@1.4.14/dist/hls.min.js"></script>
- <!-- SEO 元标签 -->
- <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.">
- <meta name="keywords" content="coloring pages, video stories, printable coloring, art activities, kids crafts">
- <meta name="robots" content="index, follow">
- <meta property="og:title" content="Video Story Coloring Pages - Art Color">
- <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.">
- <meta property="og:image" content="https://picsum.photos/1200/630?random=100">
- <meta property="og:url" content="https://artnumbercoloring.com/video-stories">
- <meta property="og:type" content="website">
- <style>
- :root {
- --primary-color: #ff6b6b;
- --secondary-color: #4ecdc4;
- --accent-color: #ffd166;
- --text-color: #333;
- --light-text: #666;
- --background-color: #f9f9f9;
- }
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- }
- body {
- background-color: var(--background-color);
- color: var(--text-color);
- line-height: 1.6;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0 20px;
- }
- header {
- background-color: var(--primary-color);
- color: white;
- padding: 30px 0;
- text-align: center;
- position: relative;
- }
- .header-logo {
- font-size: 1.8rem;
- font-weight: 700;
- letter-spacing: 1px;
- }
- .breadcrumb {
- margin: 20px 0;
- font-size: 0.9rem;
- color: var(--light-text);
- }
- .breadcrumb a {
- color: var(--primary-color);
- text-decoration: none;
- }
- .breadcrumb a:hover {
- text-decoration: underline;
- }
- .page-title {
- color: var(--secondary-color);
- font-size: 2.2rem;
- margin: 40px 0 20px;
- text-align: center;
- }
- .page-description {
- color: var(--light-text);
- max-width: 800px;
- margin: 0 auto 50px;
- text-align: center;
- }
- /* 视频故事卡片样式 */
- .video-story-card {
- background-color: white;
- border-radius: 10px;
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
- margin-bottom: 30px;
- overflow: hidden;
- }
- .story-content {
- display: grid;
- grid-template-columns: 1fr;
- gap: 20px;
- }
- @media (min-width: 768px) {
- .story-content {
- grid-template-columns: 1fr 1.5fr;
- }
- }
- /* 视频区域 */
- .video-wrapper {
- position: relative;
- background-color: #000;
- overflow: hidden;
- aspect-ratio: 9/16;
- /* 竖版视频比例 */
- }
- .video-wrapper video {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .play-button {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 60px;
- height: 60px;
- background-color: rgba(255, 107, 107, 0.8);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.3s ease;
- cursor: pointer;
- z-index: 10;
- }
- .play-button:hover {
- background-color: rgba(255, 107, 107, 1);
- transform: translate(-50%, -50%) scale(1.1);
- }
- .play-button::after {
- content: "";
- width: 0;
- height: 0;
- border-top: 12px solid transparent;
- border-bottom: 12px solid transparent;
- border-left: 20px solid white;
- margin-left: 5px;
- }
- /* 填色页预览区域 */
- .coloring-pages {
- padding: 20px;
- }
- .story-title {
- font-size: 1.5rem;
- font-weight: 700;
- color: var(--primary-color);
- margin-bottom: 15px;
- }
- .story-description {
- color: var(--light-text);
- margin-bottom: 20px;
- }
- .coloring-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
- gap: 15px;
- }
- .coloring-item {
- position: relative;
- border-radius: 8px;
- overflow: hidden;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- transition: transform 0.3s ease;
- cursor: pointer;
- }
- .coloring-item:hover {
- transform: translateY(-5px);
- }
- .coloring-item img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- aspect-ratio: 1/1;
- /* 1:1 线稿缩略图 */
- }
- .coloring-overlay {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
- padding: 10px;
- color: white;
- font-size: 0.9rem;
- font-weight: 600;
- }
- /* 分页控件 */
- .pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 40px 0;
- }
- .pagination-item {
- width: 35px;
- height: 35px;
- border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 0 5px;
- text-decoration: none;
- color: var(--text-color);
- transition: all 0.3s ease;
- }
- .pagination-item.active {
- background-color: var(--primary-color);
- color: white;
- }
- .pagination-item:hover:not(.active) {
- background-color: #f0f0f0;
- }
- /* 响应式设计 */
- @media (max-width: 768px) {
- .page-title {
- font-size: 1.8rem;
- }
- .story-title {
- font-size: 1.3rem;
- }
- .coloring-grid {
- grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
- gap: 10px;
- }
- }
- </style>
- </head>
- <body>
- <header>
- <div class="container">
- <div class="header-logo">Art Color</div>
- <p>Free Printable Coloring Pages and Birthday Cards</p>
- </div>
- </header>
- <div class="container">
- <div class="breadcrumb">
- <a href="/">Home</a> > Video Story Coloring Pages
- </div>
- <h1 class="page-title">Video Story Coloring Pages</h1>
- <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>
- <!-- 视频故事卡片 -->
- <div class="video-story-card" data-video-id="video1">
- <div class="story-content">
- <!-- 视频区域 -->
- <div class="video-wrapper">
- <video poster="https://picsum.photos/450/800?random=1" muted playsinline>
- Your browser does not support the video tag.
- </video>
- <div class="play-button"></div>
- </div>
- <!-- 填色页预览区域 -->
- <div class="coloring-pages">
- <h3 class="story-title">Summer at the Beach</h3>
- <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>
- <div class="coloring-grid">
- <div class="coloring-item" onclick="window.location.href='#coloring1'">
- <img src="https://picsum.photos/400/400?random=11" alt="Beach sandcastle coloring page">
- <div class="coloring-overlay">Sandcastle</div>
- </div>
- <div class="coloring-item" onclick="window.location.href='#coloring2'">
- <img src="https://picsum.photos/400/400?random=11" alt="Beach sandcastle coloring page">
- <div class="coloring-overlay">Sandcastle</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="video-story-card" data-video-id="video2">
- <div class="story-content">
- <!-- 视频区域 -->
- <div class="video-wrapper">
- <video poster="https://picsum.photos/450/800?random=2" muted playsinline>
- Your browser does not support the video tag.
- </video>
- <div class="play-button"></div>
- </div>
- <!-- 填色页预览区域 -->
- <div class="coloring-pages">
- <h3 class="story-title">A Day at the Farm</h3>
- <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>
- <div class="coloring-grid">
- <div class="coloring-item" onclick="window.location.href='#coloring5'">
- <img src="https://picsum.photos/400/400?random=21" alt="Farm chickens coloring page">
- <div class="coloring-overlay">Chickens</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="video-story-card" data-video-id="video3">
- <div class="story-content">
- <!-- 视频区域 -->
- <div class="video-wrapper">
- <video poster="https://picsum.photos/450/800?random=3" muted playsinline>
- Your browser does not support the video tag.
- </video>
- <div class="play-button"></div>
- </div>
- <!-- 填色页预览区域 -->
- <div class="coloring-pages">
- <h3 class="story-title">Under the Sea Adventure</h3>
- <p class="story-description">Dive into the ocean and meet colorful fish, playful dolphins, and
- majestic whales in this exciting underwater journey.</p>
- <div class="coloring-grid">
- <div class="coloring-item" onclick="window.location.href='#coloring9'">
- <img src="https://picsum.photos/400/400?random=31" alt="Underwater clownfish coloring page">
- <div class="coloring-overlay">Clownfish</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 分页控件 -->
- <div class="pagination">
- <a href="#" class="pagination-item">
- << /a>
- <a href="#" class="pagination-item active">1</a>
- <a href="#" class="pagination-item">2</a>
- <a href="#" class="pagination-item">3</a>
- <span class="pagination-item">...</span>
- <a href="#" class="pagination-item">10</a>
- <a href="#" class="pagination-item">></a>
- </div>
- </div>
- <footer>
- <div class="container footer-content">
- <p>Art Color - Free Printable Coloring Pages and Birthday Cards</p>
- <p>Bringing creativity to your fingertips, one coloring page at a time.</p>
- </div>
- </footer>
- <script>
- // 视频源数据 - 替换为实际的HLS视频URL
- const videoSources = {
- video1: 'https://example.com/video1.m3u8',
- video2: 'https://example.com/video2.m3u8',
- video3: 'https://example.com/video3.m3u8'
- };
- // 当前播放的视频和HLS实例
- let currentVideo = null;
- let currentHls = null;
- // 初始化所有视频播放器
- document.addEventListener('DOMContentLoaded', () => {
- const videoCards = document.querySelectorAll('.video-story-card');
- videoCards.forEach(card => {
- const videoId = card.getAttribute('data-video-id');
- const videoWrapper = card.querySelector('.video-wrapper');
- const video = videoWrapper.querySelector('video');
- const playButton = videoWrapper.querySelector('.play-button');
- // 初始化HLS播放器
- initHlsPlayer(video, videoSources[videoId]);
- // 点击视频区域播放/暂停
- videoWrapper.addEventListener('click', (e) => {
- // 如果点击的是视频控件,则不处理
- if (e.target.tagName === 'INPUT' || e.target.tagName === 'BUTTON') {
- return;
- }
- toggleVideoPlay(videoWrapper);
- });
- // 视频结束时显示播放按钮
- video.addEventListener('ended', () => {
- playButton.style.display = 'flex';
- currentVideo = null;
- });
- });
- });
- // 初始化HLS播放器
- function initHlsPlayer(videoElement, videoSrc) {
- if (Hls.isSupported()) {
- const hls = new Hls({
- maxBufferLength: 30,
- maxMaxBufferLength: 60
- });
- hls.loadSource(videoSrc);
- hls.attachMedia(videoElement);
- return hls;
- }
- // 浏览器原生支持HLS
- else if (videoElement.canPlayType('application/vnd.apple.mpegurl')) {
- videoElement.src = videoSrc;
- return null;
- }
- return null;
- }
- // 切换视频播放状态
- function toggleVideoPlay(videoWrapper) {
- const video = videoWrapper.querySelector('video');
- const playButton = videoWrapper.querySelector('.play-button');
- // 如果有其他视频正在播放,先停止
- if (currentVideo && currentVideo !== videoWrapper) {
- stopCurrentVideo();
- }
- if (video.paused) {
- video.play().then(() => {
- playButton.style.display = 'none';
- currentVideo = videoWrapper;
- }).catch(error => {
- console.error('Video play error:', error);
- playButton.style.display = 'flex';
- });
- } else {
- video.pause();
- playButton.style.display = 'flex';
- currentVideo = null;
- }
- }
- // 停止当前播放的视频
- function stopCurrentVideo() {
- if (currentVideo) {
- const video = currentVideo.querySelector('video');
- const playButton = currentVideo.querySelector('.play-button');
- video.pause();
- playButton.style.display = 'flex';
- }
- }
- </script>
- </body>
- </html>
|