collect.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  8. <META HTTP-EQUIV="Expires" CONTENT="-1">
  9. <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  10. <title>ARK.Cards</title>
  11. <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
  12. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
  13. integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
  14. <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" />
  15. <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css" />
  16. <link rel="stylesheet" href="./style.css">
  17. </head>
  18. <div id="qr-reader" style="width:100%;display:none"></div>
  19. <body>
  20. <section id="sec01" class="sec01-collect container-fluid px-0 mx-0">
  21. <img class="img-fluid" src="./img/banner.png" alt="">
  22. <div style="position: relative;" class="card-img-overlay p-0 d-flex align-items-end">
  23. <h5 style="background: #fff; font-size: 16px; position: absolute; z-index: 20;"
  24. class="card-title py-3 px-5 text-center mb-0 fw-bold">我的收藏</h5>
  25. </div>
  26. </section>
  27. <form class="collect-send" action="">
  28. <section id="sec05-moblie" class="sec05 my-4">
  29. <div class="sec05-moblie container-fluid">
  30. <div class="sec05-moblie-header">
  31. <h1 class="secn-title ps-2">NFT收藏品</h1>
  32. </div>
  33. <div class="sec05-moblie-container row row-cols-1 row-cols-md-4 g-4">
  34. <!-- <div class="col">
  35. <div class="card h-100">
  36. <a target="_blank" href="">
  37. <img src="./img/sec05/sec05-1.png"class="card-img-top" alt="...">
  38. </a>
  39. <div class="card-body p-2">
  40. <a target="_blank" href="">
  41. <h5 class="card-title">Lorem ipsum.</h5>
  42. </a>
  43. <p class="card-text">
  44. Lorem ipsum dolor sit amet,
  45. </p>
  46. <p class="card-text row">
  47. <small class="text-muted col-6 px-1">
  48. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  49. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  50. </small>
  51. <small class="price col-6 px-0 text-center">
  52. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  53. </p>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col">
  58. <div class="card h-100">
  59. <a target="_blank" href="">
  60. <img src="./img/sec05/sec05-2.png"class="card-img-top" alt="...">
  61. </a>
  62. <div class="card-body p-2">
  63. <a target="_blank" href="">
  64. <h5 class="card-title">Lorem ipsum.</h5>
  65. </a>
  66. <p class="card-text">
  67. Lorem ipsum dolor sit amet,
  68. </p>
  69. <p class="card-text row">
  70. <small class="text-muted col-6 px-1">
  71. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  72. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  73. </small>
  74. <small class="price col-6 px-0 text-center">
  75. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  76. </p>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="col">
  81. <div class="card h-100">
  82. <a target="_blank" href="./artist-course.html">
  83. <img src="./img/sec05/sec05-3.png"class="card-img-top" alt="...">
  84. </a>
  85. <div class="card-body p-2">
  86. <a target="_blank" href="./artist-course.html">
  87. <h5 class="card-title">Lorem ipsum.</h5>
  88. </a>
  89. <p class="card-text">
  90. Lorem ipsum dolor sit amet,
  91. </p>
  92. <p class="card-text row">
  93. <small class="text-muted col-6 px-1">
  94. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  95. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  96. </small>
  97. <small class="price col-6 px-0 text-center">
  98. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  99. </p>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="col">
  104. <div class="card h-100">
  105. <a target="_blank" href="./artist-course.html">
  106. <img src="./img/sec05/sec05-4.png"class="card-img-top" alt="...">
  107. </a>
  108. <div class="card-body p-2">
  109. <a target="_blank" href="./artist-course.html">
  110. <h5 class="card-title">Lorem ipsum.</h5>
  111. </a>
  112. <p class="card-text">
  113. Lorem ipsum dolor sit amet,
  114. </p>
  115. <p class="card-text row">
  116. <small class="text-muted col-6 px-1">
  117. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  118. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  119. </small>
  120. <small class="price col-6 px-0 text-center">
  121. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  122. </p>
  123. </div>
  124. </div>
  125. </div> -->
  126. </div>
  127. </div>
  128. <!-- <div class="sec05-moblie container-fluid">
  129. <div class="sec05-moblie-header">
  130. <h1 class="secn-title ps-2">運動</h1>
  131. </div>
  132. <div class="sec05-moblie-container row row-cols-1 row-cols-md-4 g-4">
  133. <div class="col">
  134. <div class="card h-100">
  135. <a target="_blank" href="./artist-course.html">
  136. <img src="./img/sec05/5.png"class="card-img-top" alt="...">
  137. </a>
  138. <div class="card-body">
  139. <a target="_blank" href="./artist-course.html">
  140. <h5 class="card-title">Lorem ipsum.</h5>
  141. </a>
  142. <p class="card-text">
  143. Lorem ipsum dolor sit amet,
  144. </p>
  145. <p class="card-text row">
  146. <small class="text-muted col-6 px-1">
  147. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  148. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  149. </small>
  150. <small class="price col-6 px-0 text-center">
  151. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  152. </p>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="col">
  157. <div class="card h-100">
  158. <a target="_blank" href="./artist-course.html">
  159. <img src="./img/sec05/6.png"class="card-img-top" alt="...">
  160. </a>
  161. <div class="card-body">
  162. <a target="_blank" href="./artist-course.html">
  163. <h5 class="card-title">Lorem ipsum.</h5>
  164. </a>
  165. <p class="card-text">
  166. Lorem ipsum dolor sit amet,
  167. </p>
  168. <p class="card-text row">
  169. <small class="text-muted col-6 px-1">
  170. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  171. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  172. </small>
  173. <small class="price col-6 px-0 text-center">
  174. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  175. </p>
  176. </div>
  177. </div>
  178. </div>
  179. <div class="col">
  180. <div class="card h-100">
  181. <a target="_blank" href="./artist-course.html">
  182. <img src="./img/sec05/7.png"class="card-img-top" alt="...">
  183. </a>
  184. <div class="card-body">
  185. <a target="_blank" href="./artist-course.html">
  186. <h5 class="card-title">Lorem ipsum.</h5>
  187. </a>
  188. <p class="card-text">
  189. Lorem ipsum dolor sit amet,
  190. </p>
  191. <p class="card-text row">
  192. <small class="text-muted col-6 px-1">
  193. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  194. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  195. </small>
  196. <small class="price col-6 px-0 text-center">
  197. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  198. </p>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="col">
  203. <div class="card h-100">
  204. <a target="_blank" href="./artist-course.html">
  205. <img src="./img/sec05/8.png"class="card-img-top" alt="...">
  206. </a>
  207. <div class="card-body">
  208. <a target="_blank" href="./artist-course.html">
  209. <h5 class="card-title">Lorem ipsum.</h5>
  210. </a>
  211. <p class="card-text">
  212. Lorem ipsum dolor sit amet,
  213. </p>
  214. <p class="card-text row">
  215. <small class="text-muted col-6 px-1">
  216. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  217. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  218. </small>
  219. <small class="price col-6 px-0 text-center">
  220. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  221. </p>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="sec05-moblie container-fluid">
  228. <div class="sec05-moblie-header">
  229. <h1 class="secn-title ps-2">藝術</h1>
  230. </div>
  231. <div class="sec05-moblie-container row row-cols-1 row-cols-md-4 g-4">
  232. <div class="col">
  233. <div class="card h-100">
  234. <a target="_blank" href="./artist-course.html">
  235. <img src="./img/sec05/9.png" class="card-img-top" alt="...">
  236. </a>
  237. <div class="card-body">
  238. <a target="_blank" href="./artist-course.html">
  239. <h5 class="card-title">Lorem ipsum.</h5>
  240. </a>
  241. <p class="card-text">
  242. Lorem ipsum dolor sit amet,
  243. </p>
  244. <p class="card-text row">
  245. <small class="text-muted col-6 px-1">
  246. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  247. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  248. </small>
  249. <small class="price col-6 px-0 text-center">
  250. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  251. </p>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="col">
  256. <div class="card h-100">
  257. <a target="_blank" href="./artist-course.html">
  258. <img src="./img/sec05/10.png"class="card-img-top" alt="...">
  259. </a>
  260. <div class="card-body">
  261. <a target="_blank" href="./artist-course.html">
  262. <h5 class="card-title">Lorem ipsum.</h5>
  263. </a>
  264. <p class="card-text">
  265. Lorem ipsum dolor sit amet,
  266. </p>
  267. <p class="card-text row">
  268. <small class="text-muted col-6 px-1">
  269. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  270. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  271. </small>
  272. <small class="price col-6 px-0 text-center">
  273. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  274. </p>
  275. </div>
  276. </div>
  277. </div>
  278. <div class="col">
  279. <div class="card h-100">
  280. <a target="_blank" href="./artist-course.html">
  281. <img src="./img/sec05/11.png"class="card-img-top" alt="...">
  282. </a>
  283. <div class="card-body">
  284. <a target="_blank" href="./artist-course.html">
  285. <h5 class="card-title">Lorem ipsum.</h5>
  286. </a>
  287. <p class="card-text">
  288. Lorem ipsum dolor sit amet,
  289. </p>
  290. <p class="card-text row">
  291. <small class="text-muted col-6 px-1">
  292. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  293. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  294. </small>
  295. <small class="price col-6 px-0 text-center">
  296. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  297. </p>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="col">
  302. <div class="card h-100">
  303. <a target="_blank" href="./artist-course.html">
  304. <img src="./img/sec05/12.png"class="card-img-top" alt="...">
  305. </a>
  306. <div class="card-body">
  307. <a target="_blank" href="./artist-course.html">
  308. <h5 class="card-title">Lorem ipsum.</h5>
  309. </a>
  310. <p class="card-text">
  311. Lorem ipsum dolor sit amet,
  312. </p>
  313. <p class="card-text row">
  314. <small class="text-muted col-6 px-1">
  315. <img class="mb-1 mx-1 d-inline" style="width: 10px; object-fit: cover; "
  316. src="./img/sec05/Icon awesome-ethereum.png" alt=""><span>333</span>
  317. </small>
  318. <small class="price col-6 px-0 text-center">
  319. <img class="mb-1 mx-1 d-inline" style="width: 12px; object-fit: cover; " src="./img/sec05/like.png" alt=""><span>333</span></small>
  320. </p>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div> -->
  326. </section>
  327. <div style="background: #484848;position: fixed; bottom:0px; z-index: 20;" class="sendbox w-100 pt-2">
  328. <div class="p-2">
  329. <input id="address" style="border-radius: 10px; border:none;" class="p-2 w-100 mb-3" type="text" name="address" placeholder="請輸入您要發送的地址" required>
  330. <div class="text-end px-2">
  331. <p class="text-start text-white mb-2">※ 一次只能發送一則NFT收藏品</p>
  332. <p class="text-start text-white mb-2">※ 按下【確定發送】後,NFT擁有權將轉移至接收者</p>
  333. <button id="qrcodeButton"type="button" style="border:1px solid #fff; border-radius: 30px;" class="qrcode btn text-white px-3">掃描QRCode</button>
  334. <button type="button" style="border:1px solid #fff; border-radius: 30px;" class="close btn text-white px-3">取消</button>
  335. <input style="border-radius: 30px; background:#fff; border: none;" class="send-btn p-2 ms-1" type="submit" value="確定發送">
  336. <!-- <button sty type="button" style="border-radius: 30px; background:#fff;" class="btn ms-2">確定發送</button> -->
  337. </div>
  338. </div>
  339. </div>
  340. </form>
  341. <footer style="background: #484848;" class="py-4 w-100 px-0 mx-0">
  342. <p class="text-white text-center mb-0">Copyright 2021 版權所有 © Ark.Cards</p>
  343. </footer>
  344. <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
  345. <script>
  346. AOS.init();
  347. </script>
  348. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
  349. integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
  350. crossorigin="anonymous"></script>
  351. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
  352. integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
  353. crossorigin="anonymous"></script>
  354. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  355. <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  356. <script src="./goto.js"></script>
  357. <!-- <script src="./html5-qrcode.min.js"></script> -->
  358. <script charset="utf-8" src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script>
  359. <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  360. <script>
  361. $(document).ready(function () {
  362. liff.init({
  363. liffId: "1656404434-gJ0Nzy1Y"
  364. })
  365. .then(() => {
  366. var context = liff.getContext();
  367. console.log(context);
  368. var profile = liff.getProfile();
  369. console.log(profile);
  370. // login
  371. if (!liff.isLoggedIn()) {
  372. console.log("您未登入");
  373. console.log('context.userId = ' + context.userId); // test
  374. liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId }); // test
  375. //liff.login({ redirectUri: "https://liff.line.me/1656404434-gJ0Nzy1Y?"+context.userId }); // test
  376. } else {
  377. console.log("您已登入");
  378. }
  379. // 收藏頁面
  380. collection(context.userId);
  381. })
  382. .catch((err) => {
  383. console.log('初始化失敗: ' + err.code + ", " + err.message);
  384. });
  385. /*
  386. document.getElementById('qrcodeButton').addEventListener('click', function() {
  387. alert('啟動QRCode Scanner'); // test
  388. // scanCodeV2 call
  389. liff.scanCodeV2().then(result => {
  390. // e.g. result = { value: "Hello LIFF app!" }
  391. alert(JSON.stringify(result)); // test
  392. $('#address').val(result.value);
  393. }).catch(err => {
  394. alert(JSON.stringify(err)); // test
  395. console.log(JSON.stringify(err));
  396. });
  397. });
  398. */
  399. /*
  400. $(".qrcode").click(function () {
  401. alert('QRCode Scanner Starting V1'); // test
  402. if (liff.scanCode) {
  403. liff.scanCode().then(result => {
  404. alert(JSON.stringify(result)); // test
  405. $('#address').val(result.value);
  406. });
  407. }
  408. });
  409. */
  410. $(".qrcode").click(function () {
  411. // alert('掃描QRCode'); // test
  412. // scanCodeV2 call
  413. liff.scanCodeV2().then(result => {
  414. // e.g. result = { value: "Hello LIFF app!" }
  415. // alert(JSON.stringify(result)); // test
  416. $('#address').val(result.value);
  417. }).catch(err => {
  418. // alert(JSON.stringify(err)); // test
  419. console.log(JSON.stringify(err));
  420. });
  421. });
  422. });
  423. </script>
  424. </body>
  425. </html>