index.vue 18 KB

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