index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. <template>
  2. <div class="content" :style="{ 'backgroundImage': `url(${this.back_img})` }" v-show="home_show">
  3. <div class="logo">
  4. <img src="/svg/icon-logo.svg" alt />
  5. </div>
  6. <!-- 红包 -->
  7. <div class="redPacket" :class="{ redPacket2: status != 'open', key_packet: status == 'open' }"
  8. v-show="status != 'error'">
  9. <div class="area" :class="{ key_area: status == 'open' }" v-show="status == 'open' || status == 'no-chrome'">
  10. <div class="title">
  11. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  12. <span>Giveaways from: {{ detail.postBizData.postUserInfo.nickName }}</span>
  13. </div>
  14. <div class="txt">Good Luck!</div>
  15. </div>
  16. <img src="/svg/back-top.svg" alt class="top" v-show="status == 'open' || status == 'no-chrome'"
  17. :class="{ key_top: status == 'open' }" />
  18. <img src="/svg/back-down.svg" alt class="down" v-show="status == 'open' || status == 'no-chrome'"
  19. :class="{ key_down: status == 'open' }" />
  20. <img src="/svg/icon-usd.svg" alt class="start" v-show="status == 'no-chrome'" />
  21. <img src="/git/icon-start.gif" alt class="start" v-show="status == 'open'" />
  22. <!-- 内容 -->
  23. <div class="head">
  24. <div class="head-title">
  25. <img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
  26. <span>Giveaways from: {{ detail.postBizData.postUserInfo.nickName }}</span>
  27. </div>
  28. <div class="head-txt" v-if="status == 'open' || status == 'opened'">Awesome! You Will Get</div>
  29. <!-- <div class="head-area" v-else-if="status == 'opened'">opened!</div> -->
  30. <div class="head-area" v-else-if="status == 'nothing'">Better luck next time!</div>
  31. <div class="head-area" v-else-if="status == 'expire'">
  32. <div>This Giveways</div>
  33. <div>expired on 03-14</div>
  34. </div>
  35. <div class="head-money" v-if="status == 'open' || status == 'opened'">
  36. <img src="/svg/icon-usd.svg" alt />
  37. <span class="money-txt">{{ receiveAmount / 100 }}</span>
  38. <div>
  39. <span>USD</span>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="luck-list-title">
  44. <div>{{ detail.postBizData.receiveCount || 0 }}/{{ detail.postBizData.totalCount || 0 }} People Got
  45. </div>
  46. <div>Total ${{ detail.postBizData.amountValue / 100 || '' }} {{
  47. detail.postBizData.amountCurrencyCode ||
  48. ''
  49. }}</div>
  50. </div>
  51. <div class="luck-list" @scroll="handleScroll" ref="list">
  52. <div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
  53. <img v-if="item.simpleUserInfoVO.avatarUrl" :src="item.simpleUserInfoVO.avatarUrl" alt />
  54. <img v-else src="/svg/icon-twitter.svg" alt />
  55. <div class="luck-content">
  56. <div class="luck-title">{{ item.simpleUserInfoVO.nickName || 'Twitter User' }}</div>
  57. <div class="luck-time" v-if="item.receiveTimestamp == -1">刚刚</div>
  58. <div class="luck-time">{{ formatTime(item.receiveTimestamp) }}</div>
  59. </div>
  60. <div class="luck-money">
  61. <img src="/svg/icon-usd.svg" alt />
  62. <div class="luck-money-txt">{{ item.amountValue / 100 }}</div>
  63. </div>
  64. <div class="luck-king" v-if="item.maxAmount">
  65. <img src="/svg/icon-king-hat.svg" alt />
  66. <span>Luckiest Draw</span>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 安装 -->
  72. <div class="install" v-if="status == 'open' || status == 'opened'" :class="{ key_install: status == 'open' }">
  73. <div class="title">Withdraw to Wallet</div>
  74. <div class="validity">
  75. <template v-if="validity_state">
  76. <span>Validity</span>
  77. <span style="color: red;">{{ validity }}</span>
  78. </template>
  79. <template v-else>
  80. <span style="color: red;">Giveaways Validity</span>
  81. </template>
  82. </div>
  83. <div class="flow">
  84. <div class="line"></div>
  85. <div class="area_num">
  86. <div class="num">1</div>
  87. <span>Install DeNet</span>
  88. </div>
  89. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  90. <div class="install_btn">Install</div>
  91. <div class="area_num">
  92. <div class="num" style="background: #E0E0E0;">2</div>
  93. <span>Complete Tasks by {{ detail.postBizData.postUserInfo.nickName }}</span>
  94. </div>
  95. <div class="tip">Follow、Like tweet、Retweet (Just 1-3 minutes)</div>
  96. </div>
  97. </div>
  98. <div class="install install-error" v-if="status == 'nothing' || status == 'expire'">
  99. <div class="title">Install DeNet</div>
  100. <div class="title">Don't miss the next Giveaway</div>
  101. <div class="tip">Used for Task Verification and Giveaways Withdrawal</div>
  102. <div class="install_btn">Install</div>
  103. </div>
  104. <div class="install install-error" v-if="status == 'no-chrome'">
  105. <div class="title">Open Giveaways</div>
  106. <div class="title">with chrome</div>
  107. <div class="tip">Only supports getting Giveaways through chrome</div>
  108. <div class="install_chrome">
  109. <img src="/svg/icon-chrome.svg" alt />
  110. Install Chrome
  111. </div>
  112. </div>
  113. <div v-if="status == 'error'"></div>
  114. </div>
  115. </template>
  116. <script>
  117. import axios from 'axios';
  118. import Cookies from 'js-cookie'
  119. import { isBrowser } from '../utils/help.js'
  120. var moment = require('moment');
  121. export default {
  122. name: "index",
  123. data() {
  124. return {
  125. appVersionCode: 1,
  126. mid: '',
  127. back_img: '/svg/back-denet.svg',
  128. area_show: true,
  129. home_show: false,
  130. validity: '',
  131. receiveAmount: 0,
  132. validity_state: true,
  133. detail: {
  134. postId: '',
  135. postBizData: {
  136. imagePath: '',
  137. postUserInfo: {
  138. }
  139. }
  140. },
  141. title: '',
  142. twitterTitle: 'deNet',
  143. jumpUrl: 'https://de-net-test.piaoquantv.com/',
  144. status: '',
  145. page_index: 1,
  146. page_size: 20,
  147. luck_list: [],
  148. luck_list_end: false,
  149. }
  150. },
  151. head() {
  152. return {
  153. type: '',
  154. title: this.title,
  155. appVersionCode: 1,
  156. meta: [
  157. {
  158. name: 'twitter:card',
  159. content: 'summary_large_image'
  160. },
  161. {
  162. name: 'twitter:url',
  163. content: this.jumpUrl + this.detail.postId
  164. },
  165. {
  166. name: 'twitter:title',
  167. content: this.twitterTitle
  168. },
  169. {
  170. name: 'twitter:image',
  171. content: this.detail.postBizData.imagePath || ''
  172. },
  173. {
  174. name: 'twitter:image:width',
  175. content: '1280'
  176. },
  177. {
  178. name: 'twitter:image:height',
  179. content: '720'
  180. },
  181. ]
  182. }
  183. },
  184. methods: {
  185. formatTime(time) {
  186. return moment(time).format('MM-DD hh:mm:ss')
  187. },
  188. guid() {
  189. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  190. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  191. return v.toString(16);
  192. });
  193. },
  194. handleScroll(e) {
  195. if (this.luck_list_end) {
  196. return
  197. }
  198. if ((this.$refs.list.clientHeight + this.$refs.list.scrollTop) / this.$refs.list.scrollHeight > .8) {
  199. this.luck_list_end = false
  200. this.page_index++
  201. this.getReceivedList()
  202. }
  203. },
  204. setCookieMid() {
  205. let _cookie_mid_arr = Cookies.get('mid') || []
  206. if (_cookie_mid_arr.length > 0) {
  207. this.mid = JSON.parse(_cookie_mid_arr)[0].mid
  208. } else {
  209. this.mid = this.guid()
  210. Cookies.set('mid', JSON.stringify([{ mid: this.mid }]), { expires: 1000 })
  211. }
  212. },
  213. async getRedPacket() {
  214. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/luckdrop/receiveLuckdrop', {
  215. baseInfo: {
  216. appVersionCode: this.appVersionCode,
  217. mid: this.mid
  218. },
  219. params: {
  220. postId: this.detail.postId || ''
  221. }
  222. })
  223. this.home_show = true
  224. switch (data.code.toString()) {
  225. case '0':
  226. if (data.data.newReceived) {
  227. this.status = 'open'
  228. this.receiveAmount = data.data.receiveAmount
  229. } else {
  230. this.status = 'opened'
  231. }
  232. this.getValidity(data.data.endTimestamp)
  233. this.receiveAmount = data.data.receiveAmount
  234. break;
  235. // 红包被领完了
  236. case '2008':
  237. this.status = 'nothing'
  238. break
  239. case '2029':
  240. // 推文未发布
  241. this.status = 'error'
  242. break
  243. default:
  244. console.log('getRedPacket', data)
  245. break;
  246. }
  247. // 领取列表分页
  248. this.getReceivedList()
  249. },
  250. async getReceivedList() {
  251. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/luckdrop/getReceivedList', {
  252. baseInfo: {
  253. appVersionCode: this.appVersionCode,
  254. mid: this.mid
  255. },
  256. params: {
  257. pageNum: this.page_index,
  258. pageSize: this.page_size,
  259. postId: this.detail.postId || ''
  260. }
  261. })
  262. if (data.code == 0) {
  263. if (data.data.length > 0) {
  264. this.luck_list = this.luck_list.concat(data.data)
  265. this.luck_list_end = false
  266. } else {
  267. this.luck_list_end = true
  268. }
  269. } else {
  270. console.log('getReceivedList', data)
  271. }
  272. },
  273. getValidity(end_time) {
  274. let _d1, _d2, _d3, _h, _m, _s
  275. let timer = setInterval(() => {
  276. let _time = new Date().getTime()
  277. _d3 = end_time - _time
  278. if (_d3 > 0) {
  279. _d1 = moment(end_time)
  280. _d2 = moment(_time)
  281. _h = moment.duration(_d1.diff(_d2)).hours()
  282. _m = moment.duration(_d1.diff(_d2)).minutes()
  283. _s = moment.duration(_d1.diff(_d2)).seconds()
  284. this.validity = `${_h}:${_m}:${_s}`
  285. } else {
  286. clearInterval(timer)
  287. }
  288. }, 1000)
  289. },
  290. setPickupInfo() {
  291. let pickupInfo = { srcContentId: this.detail.srcContentId,
  292. postNickName: this.detail.postBizData.postUserInfo.nickName };
  293. Cookies.set('pickup_info', JSON.stringify(pickupInfo), { expires: 100 });
  294. }
  295. },
  296. async asyncData(params) {
  297. let { route } = params;
  298. let { data } = await axios.post('https://denettestapi.piaoquantv.com/denet/post/getDetail', {
  299. baseInfo: {
  300. mid: function () {
  301. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  302. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  303. return v.toString(16);
  304. });
  305. }()
  306. },
  307. params: {
  308. postId: route.params.id || ''
  309. }
  310. })
  311. if (data.code == 0) {
  312. if (data.data && data.data.postBizData && typeof data.data.postBizData == 'string') {
  313. data.data.postBizData = JSON.parse(data.data.postBizData)
  314. }
  315. return {
  316. detail: data.data,
  317. }
  318. }
  319. },
  320. mounted() {
  321. //改变font-size
  322. (function (doc, win) {
  323. var docEI = doc.documentElement,
  324. resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',
  325. recalc = function () {
  326. var clientWidth = docEI.clientWidth;
  327. if (!clientWidth) return;
  328. //100是字体大小,1510是开发时浏览器窗口的宽度,等比计算
  329. docEI.style.fontSize = 10 * (clientWidth / 1510) + 'px';
  330. }
  331. if (!doc.addEventListener) return;
  332. win.addEventListener(resizeEvt, recalc, false);
  333. doc.addEventListener('DOMContentLoaded', recalc, false);
  334. })(document, window);
  335. if (isBrowser() == 'chrome') {
  336. // 领取任务红包
  337. this.setCookieMid()
  338. this.getRedPacket()
  339. this.setPickupInfo()
  340. } else {
  341. this.home_show = true
  342. this.status = 'no-chrome'
  343. }
  344. }
  345. }
  346. </script>
  347. <style lang="scss" >
  348. html,
  349. body,
  350. #__nuxt,
  351. #__layout {
  352. width: 100%;
  353. height: 100%;
  354. padding: 0;
  355. margin: 0;
  356. }
  357. .content {
  358. width: 100%;
  359. height: 100%;
  360. background-size: 100%;
  361. background-repeat: no-repeat;
  362. position: relative;
  363. font-family: "SF Pro Display";
  364. font-style: normal;
  365. font-weight: 600;
  366. .logo {
  367. position: absolute;
  368. left: 4rem;
  369. top: 1.5rem;
  370. img {
  371. width: 107px;
  372. height: 40px;
  373. }
  374. }
  375. .key_packet {
  376. animation: key_packet 3s;
  377. animation-delay: 6s;
  378. animation-fill-mode: forwards;
  379. }
  380. .redPacket {
  381. display: flex;
  382. justify-content: flex-start;
  383. flex-direction: column;
  384. position: absolute;
  385. top: 9rem;
  386. left: 50%;
  387. width: 37.5rem;
  388. margin-left: -18rem;
  389. height: 65rem;
  390. border-radius: 2rem;
  391. // background: red;
  392. overflow: hidden;
  393. box-shadow: 0 0 5px #888888;
  394. .start {
  395. position: absolute;
  396. width: 10rem;
  397. height: 10rem;
  398. bottom: 24rem;
  399. left: 50%;
  400. margin-left: -5rem;
  401. z-index: 13;
  402. }
  403. .key_top {
  404. animation: key_top 4s;
  405. animation-delay: 2s;
  406. animation-fill-mode: forwards;
  407. }
  408. .top {
  409. top: 0;
  410. position: absolute;
  411. width: 100%;
  412. z-index: 12;
  413. }
  414. .down {
  415. bottom: 0;
  416. position: absolute;
  417. height: 32.3rem;
  418. z-index: 11;
  419. }
  420. .key_down {
  421. animation: key_down 4s;
  422. animation-delay: 2s;
  423. animation-fill-mode: forwards;
  424. }
  425. .head {
  426. .head-title {
  427. height: 9.7rem;
  428. line-height: 9.7rem;
  429. background: #ef4545;
  430. text-align: center;
  431. border-radius: 0 586px 586px/0 0 104px 104px;
  432. overflow: hidden;
  433. box-shadow: 0 0 5px #888888;
  434. img {
  435. width: 3rem;
  436. height: 3rem;
  437. border-radius: 50%;
  438. border: 2px solid #fff4db;
  439. }
  440. span {
  441. font-size: 1.4rem;
  442. color: #fff2d3;
  443. }
  444. }
  445. .head-txt {
  446. margin-top: 4.7rem;
  447. font-size: 2rem;
  448. text-align: center;
  449. color: #ef4545;
  450. }
  451. .head-area {
  452. height: 10rem;
  453. line-height: 10rem;
  454. text-align: center;
  455. letter-spacing: 0.3px;
  456. font-size: 2rem;
  457. text-align: center;
  458. color: #ef4545;
  459. }
  460. .head-money {
  461. display: flex;
  462. align-items: center;
  463. justify-content: center;
  464. margin-bottom: 3.2rem;
  465. img {
  466. width: 4rem;
  467. height: 4rem;
  468. }
  469. span {
  470. font-size: 1.3rem;
  471. }
  472. .money-txt {
  473. font-weight: 700;
  474. font-size: 4.8rem;
  475. color: #000000;
  476. letter-spacing: 0.3px;
  477. }
  478. }
  479. }
  480. .luck-list-title {
  481. padding: 0 16px;
  482. background: #fff;
  483. color: #9b9b9b;
  484. display: flex;
  485. justify-content: space-between;
  486. }
  487. .luck-list {
  488. background: #fff;
  489. flex: 1;
  490. overflow: scroll;
  491. .luck-item {
  492. display: flex;
  493. padding: 12px 16px;
  494. border-top: 1px solid #d1d1d1;
  495. justify-content: space-between;
  496. position: relative;
  497. img:first-child {
  498. border-radius: 50%;
  499. }
  500. .luck-king {
  501. position: absolute;
  502. top: 36px;
  503. right: 16px;
  504. display: flex;
  505. align-items: center;
  506. img {
  507. width: 22px;
  508. height: 19px;
  509. margin: 0;
  510. }
  511. span {
  512. font-weight: 500;
  513. font-size: 12px;
  514. line-height: 14px;
  515. letter-spacing: 0.3px;
  516. color: #f5b945;
  517. }
  518. }
  519. img {
  520. width: 42px;
  521. height: 42px;
  522. margin-right: 12px;
  523. }
  524. .luck-content {
  525. flex: auto;
  526. .luck-title {
  527. font-weight: 500;
  528. font-size: 16px;
  529. letter-spacing: 0.3px;
  530. color: #444444;
  531. }
  532. .luck-time {
  533. font-weight: 400;
  534. font-size: 12px;
  535. line-height: 14px;
  536. color: #9b9b9b;
  537. }
  538. }
  539. .luck-money {
  540. display: flex;
  541. height: 17px;
  542. align-items: center;
  543. img {
  544. width: 14px;
  545. height: 14px;
  546. margin-right: 6px;
  547. }
  548. .luck-money-txt {
  549. font-weight: 500;
  550. font-size: 14px;
  551. /* identical to box height */
  552. text-align: right;
  553. letter-spacing: 0.3px;
  554. color: #444444;
  555. }
  556. }
  557. }
  558. }
  559. .area {
  560. position: absolute;
  561. z-index: 112;
  562. width: 100%;
  563. .title {
  564. z-index: 11;
  565. margin-top: 8.5rem;
  566. text-align: center;
  567. img {
  568. width: 3.6rem;
  569. height: 3.6rem;
  570. border: 2px solid #fff4db;
  571. border-radius: 50%;
  572. }
  573. span {
  574. letter-spacing: 0.3px;
  575. font-size: 1.6rem;
  576. color: #fff2d3;
  577. }
  578. }
  579. .txt {
  580. font-size: 4rem;
  581. text-align: center;
  582. letter-spacing: 0.03rem;
  583. color: #fff2d3;
  584. }
  585. }
  586. .key_area {
  587. animation: key_area 1s;
  588. animation-delay: 1s;
  589. animation-fill-mode: forwards;
  590. }
  591. }
  592. .redPacket2 {
  593. left: 30.6rem;
  594. margin-left: -18rem;
  595. }
  596. .key_install {
  597. opacity: 0;
  598. animation: key_install 2s;
  599. animation-delay: 6s;
  600. animation-fill-mode: forwards;
  601. }
  602. .install {
  603. position: absolute;
  604. top: 20rem;
  605. left: 78.5rem;
  606. .title {
  607. font-size: 4.8rem;
  608. color: #000000;
  609. letter-spacing: 0.3px;
  610. }
  611. .validity {
  612. padding-left: 1.5rem;
  613. margin-top: 2rem;
  614. background: rgba(166, 166, 166, 0.1);
  615. width: 40rem;
  616. height: 3.3rem;
  617. line-height: 3.3rem;
  618. span {
  619. color: #000000;
  620. font-size: 1.4rem;
  621. }
  622. }
  623. .flow {
  624. position: absolute;
  625. margin-top: 4.6rem;
  626. .line {
  627. position: absolute;
  628. height: 16rem;
  629. border: 1px solid #e0e0e0;
  630. top: 3rem;
  631. left: 1.2rem;
  632. }
  633. .area_num {
  634. display: flex;
  635. align-items: center;
  636. .num {
  637. width: 2.4rem;
  638. height: 2.4rem;
  639. background-color: rgba(56, 154, 255, 1);
  640. border-radius: 50%;
  641. color: #fff;
  642. text-align: center;
  643. line-height: 2.4rem;
  644. font-size: 1.4rem;
  645. }
  646. span {
  647. margin-left: 1.5rem;
  648. color: #000000;
  649. font-size: 1.8rem;
  650. }
  651. }
  652. .tip {
  653. margin-left: 4rem;
  654. margin-top: 0.7rem;
  655. font-size: 1.4rem;
  656. color: #a4a4a4;
  657. }
  658. .install_btn {
  659. margin-left: 4rem;
  660. margin-top: 2rem;
  661. margin-bottom: 6.7rem;
  662. width: 23rem;
  663. height: 5.8rem;
  664. background: #389aff;
  665. border-radius: 10rem;
  666. color: #fff;
  667. line-height: 5.8rem;
  668. text-align: center;
  669. font-size: 2rem;
  670. }
  671. }
  672. .tip {
  673. margin-top: 0.7rem;
  674. font-size: 1.4rem;
  675. color: #a4a4a4;
  676. }
  677. .install_btn {
  678. margin-top: 2rem;
  679. margin-bottom: 6.7rem;
  680. width: 23rem;
  681. height: 5.8rem;
  682. background: #389aff;
  683. border-radius: 10rem;
  684. color: #fff;
  685. line-height: 5.8rem;
  686. text-align: center;
  687. font-size: 2rem;
  688. }
  689. }
  690. .install-error {
  691. left: 78.5rem;
  692. .install_chrome {
  693. cursor: pointer;
  694. width: 24.3rem;
  695. height: 5.8rem;
  696. font-size: 2rem;
  697. font-weight: 500;
  698. letter-spacing: 0.3px;
  699. display: flex;
  700. align-items: center;
  701. border: 1px solid #e8e8e8;
  702. border-radius: 10rem;
  703. margin-top: 3.3rem;
  704. img {
  705. width: 3.2rem;
  706. height: 3.2rem;
  707. margin-left: 3.3rem;
  708. }
  709. span {
  710. margin-left: 1.2rem;
  711. }
  712. }
  713. }
  714. }
  715. @keyframes key_area {
  716. 0% {
  717. opacity: 1;
  718. }
  719. 100% {
  720. opacity: 0;
  721. }
  722. }
  723. @keyframes key_install {
  724. 0% {
  725. opacity: 0;
  726. }
  727. 100% {
  728. opacity: 1;
  729. }
  730. }
  731. @keyframes key_packet {
  732. 0% {}
  733. 100% {
  734. left: 30.6rem;
  735. margin-left: -18rem;
  736. }
  737. }
  738. @keyframes key_top {
  739. 0% {
  740. top: 0;
  741. }
  742. 50% {
  743. top: -30rem;
  744. }
  745. 100% {
  746. top: -36rem;
  747. }
  748. }
  749. @keyframes key_down {
  750. 0% {
  751. bottom: 0;
  752. }
  753. 50% {
  754. bottom: -28.3rem;
  755. }
  756. 100% {
  757. bottom: -32.3rem;
  758. }
  759. }
  760. </style>