appsection.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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>Art Number Coloring - App Tutorial Section</title>
  7. <style>
  8. :root {
  9. --primary-color: #ff6b6b;
  10. --secondary-color: #4ecdc4;
  11. --accent-color: #ffd166;
  12. --background-color: #f9f9f9;
  13. --text-color: #333;
  14. --light-text: #666;
  15. }
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  21. }
  22. .container {
  23. max-width: 1200px;
  24. margin: 0 auto;
  25. padding: 0 20px;
  26. }
  27. section {
  28. margin-bottom: 60px;
  29. background-color: white;
  30. border-radius: 10px;
  31. padding: 40px;
  32. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  33. }
  34. h2 {
  35. color: var(--primary-color);
  36. font-size: 2rem;
  37. margin-bottom: 30px;
  38. text-align: center;
  39. }
  40. .app-tutorial {
  41. display: grid;
  42. grid-template-columns: 1fr 1fr;
  43. gap: 40px;
  44. }
  45. .video-container {
  46. position: relative;
  47. background-color: #000;
  48. border-radius: 8px;
  49. overflow: hidden;
  50. cursor: pointer;
  51. aspect-ratio: 16/9;
  52. }
  53. .video-container video {
  54. width: 100%;
  55. height: 100%;
  56. object-fit: cover;
  57. display: block;
  58. }
  59. .play-button {
  60. position: absolute;
  61. top: 50%;
  62. left: 50%;
  63. transform: translate(-50%, -50%);
  64. width: 80px;
  65. height: 80px;
  66. background-color: rgba(255, 107, 107, 0.8);
  67. border-radius: 50%;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. transition: all 0.3s ease;
  72. }
  73. .play-button:hover {
  74. background-color: rgba(255, 107, 107, 1);
  75. transform: translate(-50%, -50%) scale(1.1);
  76. }
  77. .play-button::after {
  78. content: "";
  79. width: 0;
  80. height: 0;
  81. border-top: 15px solid transparent;
  82. border-bottom: 15px solid transparent;
  83. border-left: 25px solid white;
  84. margin-left: 5px;
  85. }
  86. .tutorial-steps {
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: center;
  90. }
  91. .step {
  92. margin-bottom: 30px;
  93. padding-left: 30px;
  94. position: relative;
  95. }
  96. .step-number {
  97. position: absolute;
  98. left: 0;
  99. top: 0;
  100. width: 30px;
  101. height: 30px;
  102. border-radius: 50%;
  103. background-color: var(--primary-color);
  104. color: white;
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. font-weight: bold;
  109. }
  110. .step-title {
  111. font-size: 1.2rem;
  112. font-weight: 600;
  113. color: var(--text-color);
  114. margin-bottom: 10px;
  115. }
  116. .step-desc {
  117. color: var(--light-text);
  118. line-height: 1.7;
  119. }
  120. .app-download {
  121. margin-top: 30px;
  122. display: flex;
  123. flex-wrap: wrap;
  124. gap: 15px;
  125. }
  126. .download-btn {
  127. display: flex;
  128. align-items: center;
  129. background-color: var(--text-color);
  130. color: white;
  131. border: none;
  132. padding: 12px 20px;
  133. border-radius: 5px;
  134. font-weight: 500;
  135. cursor: pointer;
  136. transition: background-color 0.3s ease;
  137. text-decoration: none;
  138. }
  139. .download-btn:hover {
  140. background-color: #222;
  141. }
  142. .download-btn i {
  143. font-size: 1.5rem;
  144. margin-right: 10px;
  145. }
  146. @media (max-width: 768px) {
  147. .app-tutorial {
  148. grid-template-columns: 1fr;
  149. }
  150. h2 {
  151. font-size: 1.6rem;
  152. }
  153. .play-button {
  154. width: 60px;
  155. height: 60px;
  156. }
  157. .play-button::after {
  158. border-top: 12px solid transparent;
  159. border-bottom: 12px solid transparent;
  160. border-left: 20px solid white;
  161. }
  162. }
  163. </style>
  164. </head>
  165. <body>
  166. <div class="container">
  167. <section>
  168. <h2>How to Use Our Coloring App</h2>
  169. <div class="app-tutorial">
  170. <div class="video-container" id="appVideo">
  171. <video poster="https://picsum.photos/800/450?random=10" muted loop>
  172. <source src="https://samplelib.com/lib/preview/mp4/sample-5s.mp4" type="video/mp4">
  173. Your browser does not support the video tag.
  174. </video>
  175. <div class="play-button"></div>
  176. </div>
  177. <div class="tutorial-steps">
  178. <div class="step">
  179. <div class="step-number">1</div>
  180. <div class="step-title">Download the App</div>
  181. <div class="step-desc">Visit your device's app store and search for "Art Number Coloring". Click download to
  182. install the app on your phone or tablet.</div>
  183. </div>
  184. <div class="step">
  185. <div class="step-number">2</div>
  186. <div class="step-title">Create an Account</div>
  187. <div class="step-desc">Open the app and create a free account using your email or social media login. This
  188. allows you to save your coloring progress.</div>
  189. </div>
  190. <div class="step">
  191. <div class="step-number">3</div>
  192. <div class="step-title">Browse Coloring Pages</div>
  193. <div class="step-desc">Explore our library of hundreds of coloring pages sorted by category, difficulty, or
  194. popularity. Find the perfect page for your mood.</div>
  195. </div>
  196. <div class="step">
  197. <div class="step-number">4</div>
  198. <div class="step-title">Start Coloring</div>
  199. <div class="step-desc">Select a coloring page and use our intuitive tools to color. Choose from a wide range
  200. of colors, brushes, and effects to create your masterpiece.</div>
  201. </div>
  202. <div class="step">
  203. <div class="step-number">5</div>
  204. <div class="step-title">Save and Share</div>
  205. <div class="step-desc">Save your colored page to your profile, share it with friends on social media, or
  206. print it out to display in your home.</div>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="app-download">
  211. <a href="#" class="download-btn">
  212. <i>📱</i>
  213. Download for iOS
  214. </a>
  215. <a href="#" class="download-btn">
  216. <i>📱</i>
  217. Download for Android
  218. </a>
  219. </div>
  220. </section>
  221. </div>
  222. <script>
  223. // 视频播放控制
  224. const videoContainer = document.getElementById('appVideo');
  225. const video = videoContainer.querySelector('video');
  226. const playButton = videoContainer.querySelector('.play-button');
  227. videoContainer.addEventListener('click', () => {
  228. if (video.paused) {
  229. video.play();
  230. playButton.style.display = 'none';
  231. } else {
  232. video.pause();
  233. playButton.style.display = 'flex';
  234. }
  235. });
  236. // 视频结束时显示播放按钮
  237. video.addEventListener('ended', () => {
  238. playButton.style.display = 'flex';
  239. });
  240. </script>
  241. </body>
  242. </html>