index.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>AI Spokesgirl Video Generator</title>
  8. <!-- Font Awesome -->
  9. <link
  10. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
  11. rel="stylesheet"
  12. />
  13. <!-- Google Fonts -->
  14. <link
  15. href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
  16. rel="stylesheet"
  17. />
  18. <!-- MDB -->
  19. <link
  20. href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.css"
  21. rel="stylesheet"
  22. />
  23. <link rel="stylesheet" type="text/css" href="reset.css">
  24. <link rel="stylesheet" type="text/css" href="main.css">
  25. <!-- MDB -->
  26. <script
  27. type="text/javascript"
  28. src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
  29. ></script>
  30. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  31. </head>
  32. <body class="color__grey">
  33. <!-- Navbar -->
  34. <nav class="navbar navbar-expand-lg navbar-light bg-white">
  35. <!-- Container wrapper -->
  36. <div class="container-fluid">
  37. <!-- Navbar brand -->
  38. <a class="navbar-brand" href="#">AI Spokesgirl Video Generator</a>
  39. <!-- Toggle button -->
  40. <button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
  41. data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
  42. aria-label="Toggle navigation">
  43. <i class="fas fa-bars text-light"></i>
  44. </button>
  45. <!-- Collapsible wrapper -->
  46. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  47. <!-- Left links -->
  48. <ul class="navbar-nav me-auto d-flex flex-row mt-3 mt-lg-0">
  49. <li class="nav-item text-center mx-2 mx-lg-1">
  50. <a class="nav-link active" aria-current="page" href="/">
  51. <div>
  52. <i class="fas fa-home fa-lg mb-1"></i>
  53. </div>
  54. Home
  55. </a>
  56. </li>
  57. <li class="nav-item text-center mx-2 mx-lg-1">
  58. <a class="nav-link active" aria-current="page" href="https://telegram.org/">
  59. <div>
  60. <i class="fab fa-telegram-plane fa-lg mb-1"></i>
  61. </div>
  62. Telegram
  63. </a>
  64. </li>
  65. </ul>
  66. <!-- Right links -->
  67. </div>
  68. <!-- Collapsible wrapper -->
  69. </div>
  70. <!-- Container wrapper -->
  71. </nav>
  72. <!-- Navbar -->
  73. <div class="container">
  74. <div class="row">
  75. <!-- <div class="col-1 col-lg-1"></div> -->
  76. <div class="col-12">
  77. <div class="card card__grback mb-5">
  78. <div class="card-body card__left">
  79. <!-- 根據搜尋內容顯示網站標題及網站內容簡介 -->
  80. <h5 class="card-title card__url" id="sitetitle"><i class="fas fa-book-open card__url__icon"></i>如何使用</h5>
  81. <div class="d-flex align-items-center justify-content-between">
  82. <div class="mr-4 animate_in">
  83. <div>
  84. <i class="fas fa-exclamation"></i>
  85. 連結Telegram 帳號
  86. </div>
  87. <a class="btn download" href="https://telegram.org/">下載Telegram</a>
  88. </div>
  89. <div class="card-text card__intro animate_in" id="descriptions">
  90. <div class="intro_text pl-4"><span class="intro_num">1</span> 選擇人物 </div>
  91. <div class="intro_text pl-3"><span class="intro_num">2</span> 選擇背景</div>
  92. <div class="intro_text pl-2"><span class="intro_num">3</span> 輸入腳本文字 </div>
  93. <div class="intro_text"><span class="intro_num intro_num_last">4</span> 完成</div>
  94. </div>
  95. <div class="d-flex align-items-center animate_in">
  96. <div style="width:7rem;height:12rem;">
  97. <img src="assets/Labinaagu.png" alt="" style="width:100%;height:100%;">
  98. </div>
  99. <div class="intro__last"><i class="fas fa-check-circle" style="font-size:1.4rem;color: green;display: block;margin-bottom: 1rem;"></i>等待影片連結傳送至手機</div>
  100. </div>
  101. <!-- <div><i class="fab fa-youtube youtube__icon"></i></div> -->
  102. </div>
  103. <!-- <a href="#" class="btn btn-primary" id="globalrank2"></a> -->
  104. </div>
  105. </div>
  106. <!-- Text input Block -->
  107. <div class="text_input animate_fade">
  108. <div class="step d-flex align-items-center">
  109. <h3 class='step__text'>Step 1</h3>
  110. <hr style="width:8rem;border-top:1.5px dotted grey;margin-right:.5rem;">
  111. <span>選擇人物</span>
  112. </div>
  113. <div class='characs d-flex w-100'>
  114. <div class="row justify-content-around">
  115. <div class="col-sm-12 col-md-4">
  116. <input type="radio" id="num1" name="characs" value="num1" checked>
  117. <label for="num1"><div class="card characs_fr"><img src="assets/girl1.png" alt=""></div></label>
  118. </div>
  119. <div class="col-sm-12 col-md-4">
  120. <input type="radio" id="num2" name="characs" value="num2">
  121. <label for="num2"><div class="card characs_fr"><img src="assets/girl2.png" alt=""></div></label>
  122. </div>
  123. <div class="col-sm-12 col-md-4">
  124. <input type="radio" id="num3" name="characs" value="num3">
  125. <label for="num3"><div class="card characs_fr"><img src="assets/girl3.png" alt=""></div></label>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="text_input animate_fade">
  131. <div class="step d-flex align-items-center">
  132. <h3 class='step__text'>Step 2</h3>
  133. <hr style="width:8rem;border-top:1.5px dotted grey;margin-right:.5rem;">
  134. <span>選擇背景</span>
  135. </div>
  136. <div class='characs d-flex w-100'>
  137. <div class="row justify-content-around">
  138. <div class="col-sm-12 col-md-3">
  139. <input type="radio" id="back1" name="back" value="back1" checked>
  140. <label for="back1"><div class="card back_fr"><img src="assets/patrick-perkins-3wylDrjxH-E-unsplash.jpg" alt=""></div></label>
  141. </div>
  142. <div class="col-sm-12 col-md-3">
  143. <input type="radio" id="back2" name="back" value="back2">
  144. <label for="back2"><div class="card back_fr"><img src="assets/alberto-castillo-q-mx4mSkK9zeo-unsplash.jpg" alt=""></div></label>
  145. </div>
  146. <div class="col-sm-12 col-md-3">
  147. <input type="radio" id="back3" name="back" value="back3">
  148. <label for="back3"><div class="card back_fr"><img src="assets/jarek-ceborski-jn7uVeCdf6U-unsplash.jpg" alt=""></div></label>
  149. </div>
  150. <div class="col-sm-12 col-md-3">
  151. <input type="radio" id="back4" name="back" value="back4">
  152. <label for="back4"><div class="card back_fr"><img src="assets/kelsey-dody-mt2QzllH814-unsplash.jpg" alt=""></div></label>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <div class="text_input animate_fade">
  158. <div class="step d-flex align-items-center">
  159. <h3 class='step__text'>Step 3</h3>
  160. <hr style="width:8rem;border-top:1.5px dotted grey;margin-right:.5rem;">
  161. <span>輸入您的專屬影片的腳本文字</span>
  162. </div>
  163. <form id="searchform" class="d-flex input-group search__form">
  164. <textarea form="searchform" class="search__bar" placeholder="輸入腳本文字" aria-label="Domain Name" id="search_query"></textarea>
  165. <!-- <button class="btn btn-primary search__btn" type="button" data-mdb-ripple-color="dark" id="search__btn">
  166. 完成
  167. </button> -->
  168. </form>
  169. </div>
  170. <div class="text_input text-center">
  171. <button type="submit" class="submit disabled">送出</button>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <footer class="footer text-center p-4 bg-white">
  177. <div class="text-muted"> © 2021 Copyright: Choozmo. AI Spokesgirl Video Generator</div>
  178. </footer>
  179. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@10.16.6/dist/sweetalert2.all.min.js"></script>
  180. <!-- <script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script> -->
  181. <script>
  182. const input = document.getElementById("search_query");
  183. const search__btn = document.getElementById("search__btn");
  184. const submit__btn = document.querySelector('.submit');
  185. const search__bar = document.querySelector('.search__bar');
  186. const text_input = document.querySelectorAll('.text_input');
  187. const animate_in = document.querySelectorAll('.animate_in');
  188. search__bar.addEventListener('mouseenter', function() {
  189. if(search__bar.value) {
  190. submit__btn.classList.remove('disabled');
  191. }
  192. });
  193. search__bar.addEventListener('mouseleave', function() {
  194. if(search__bar.value) {
  195. submit__btn.classList.remove('disabled');
  196. }
  197. });
  198. window.addEventListener("scroll", function(){
  199. for(let i = 0;i < text_input.length;i++){
  200. const scrollPos = window.innerHeight + window.scrollY;
  201. if(scrollPos >= text_input[i].offsetTop){
  202. text_input[i].classList.add('fade_up');
  203. }
  204. }
  205. });
  206. window.onload = function() {
  207. for(let i = 0;i < animate_in.length;i++) {
  208. animate_in[i].classList.add('fade_in');
  209. }
  210. }
  211. let option;
  212. submit__btn.addEventListener('click', function(){
  213. Swal.fire({
  214. icon: 'success',
  215. title: '已送出!正在製作影片',
  216. text: '等待Telegram訊息通知傳送影片連結,約2分鐘後收到訊息'
  217. });
  218. });
  219. </script>
  220. </body>
  221. </html>