index.vue 18 KB

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