| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Art Color - App Tutorial Section</title>
- <style>
- :root {
- --primary-color: #ff6b6b;
- --secondary-color: #4ecdc4;
- --accent-color: #ffd166;
- --background-color: #f9f9f9;
- --text-color: #333;
- --light-text: #666;
- }
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 0 20px;
- }
- section {
- margin-bottom: 60px;
- background-color: white;
- border-radius: 10px;
- padding: 40px;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
- }
- h2 {
- color: var(--primary-color);
- font-size: 2rem;
- margin-bottom: 30px;
- text-align: center;
- }
- .app-tutorial {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 40px;
- }
- .video-container {
- position: relative;
- background-color: #000;
- border-radius: 8px;
- overflow: hidden;
- cursor: pointer;
- aspect-ratio: 16/9;
- }
- .video-container video {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- }
- .play-button {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 80px;
- height: 80px;
- background-color: rgba(255, 107, 107, 0.8);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.3s ease;
- }
- .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: 15px solid transparent;
- border-bottom: 15px solid transparent;
- border-left: 25px solid white;
- margin-left: 5px;
- }
- .tutorial-steps {
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .step {
- margin-bottom: 30px;
- padding-left: 30px;
- position: relative;
- }
- .step-number {
- position: absolute;
- left: 0;
- top: 0;
- width: 30px;
- height: 30px;
- border-radius: 50%;
- background-color: var(--primary-color);
- color: white;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: bold;
- }
- .step-title {
- font-size: 1.2rem;
- font-weight: 600;
- color: var(--text-color);
- margin-bottom: 10px;
- }
- .step-desc {
- color: var(--light-text);
- line-height: 1.7;
- }
- .app-download {
- margin-top: 30px;
- display: flex;
- flex-wrap: wrap;
- gap: 15px;
- }
- .download-btn {
- display: flex;
- align-items: center;
- background-color: var(--text-color);
- color: white;
- border: none;
- padding: 12px 20px;
- border-radius: 5px;
- font-weight: 500;
- cursor: pointer;
- transition: background-color 0.3s ease;
- text-decoration: none;
- }
- .download-btn:hover {
- background-color: #222;
- }
- .download-btn i {
- font-size: 1.5rem;
- margin-right: 10px;
- }
- @media (max-width: 768px) {
- .app-tutorial {
- grid-template-columns: 1fr;
- }
- h2 {
- font-size: 1.6rem;
- }
- .play-button {
- width: 60px;
- height: 60px;
- }
- .play-button::after {
- border-top: 12px solid transparent;
- border-bottom: 12px solid transparent;
- border-left: 20px solid white;
- }
- }
- </style>
- </head>
- <body>
- <div class="container">
- <section>
- <h2>How to Use Our Coloring App</h2>
- <div class="app-tutorial">
- <div class="video-container" id="appVideo">
- <video poster="https://picsum.photos/800/450?random=10" muted loop>
- <source src="https://samplelib.com/lib/preview/mp4/sample-5s.mp4" type="video/mp4">
- Your browser does not support the video tag.
- </video>
- <div class="play-button"></div>
- </div>
- <div class="tutorial-steps">
- <div class="step">
- <div class="step-number">1</div>
- <div class="step-title">Download the App</div>
- <div class="step-desc">Visit your device's app store and search for "Art Color". Click download to
- install the app on your phone or tablet.</div>
- </div>
- <div class="step">
- <div class="step-number">2</div>
- <div class="step-title">Create an Account</div>
- <div class="step-desc">Open the app and create a free account using your email or social media login. This
- allows you to save your coloring progress.</div>
- </div>
- <div class="step">
- <div class="step-number">3</div>
- <div class="step-title">Browse Coloring Pages</div>
- <div class="step-desc">Explore our library of hundreds of coloring pages sorted by category, difficulty, or
- popularity. Find the perfect page for your mood.</div>
- </div>
- <div class="step">
- <div class="step-number">4</div>
- <div class="step-title">Start Coloring</div>
- <div class="step-desc">Select a coloring page and use our intuitive tools to color. Choose from a wide range
- of colors, brushes, and effects to create your masterpiece.</div>
- </div>
- <div class="step">
- <div class="step-number">5</div>
- <div class="step-title">Save and Share</div>
- <div class="step-desc">Save your colored page to your profile, share it with friends on social media, or
- print it out to display in your home.</div>
- </div>
- </div>
- </div>
- <div class="app-download">
- <a href="#" class="download-btn">
- <i>📱</i>
- Download for iOS
- </a>
- <a href="#" class="download-btn">
- <i>📱</i>
- Download for Android
- </a>
- </div>
- </section>
- </div>
- <script>
- // 视频播放控制
- const videoContainer = document.getElementById('appVideo');
- const video = videoContainer.querySelector('video');
- const playButton = videoContainer.querySelector('.play-button');
- videoContainer.addEventListener('click', () => {
- if (video.paused) {
- video.play();
- playButton.style.display = 'none';
- } else {
- video.pause();
- playButton.style.display = 'flex';
- }
- });
- // 视频结束时显示播放按钮
- video.addEventListener('ended', () => {
- playButton.style.display = 'flex';
- });
- </script>
- </body>
- </html>
|