cover.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <!-- 封面页 -->
  3. <div class="cover">
  4. <v-head></v-head>
  5. <!-- 邀请人 -->
  6. <div class="invite">
  7. <img :src="require('@/assets/svg/icon-warning.svg')" alt="" />
  8. <span>@Younan666 invite you to</span>
  9. </div>
  10. <div class="treasure">
  11. <span>Treasure</span>
  12. <span>$100</span>
  13. </div>
  14. <div class="gain">
  15. <span>Your Gain Up to</span>
  16. <span>$</span>
  17. <span>1</span>
  18. </div>
  19. <div class="coin">
  20. <img :src="require('@/assets/svg/icon-warning.svg')" alt="" />
  21. <span>SHIB equivalent (Crypto)</span>
  22. </div>
  23. <div class="box">
  24. <img :src="require('@/assets/img/icon-treasure-box.png')" alt="" />
  25. </div>
  26. <div class="mark">
  27. <img :src="require('@/assets/svg/icon-three-line.svg')" alt="" />
  28. <span>to Hunt Treasure</span>
  29. </div>
  30. <div class="btn-submit" @click="clickStart">
  31. <img :src="require('@/assets/svg/icon-btn-box.svg')" alt="" />
  32. <span>START</span>
  33. </div>
  34. </div>
  35. </template>
  36. <script setup>
  37. import { inject } from 'vue'
  38. import VHead from '@/view/iframe/treasure-hunt/head.vue'
  39. let state = inject('state')
  40. const clickStart = () => {
  41. state.page = '邀请页'
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .cover {
  46. width: 375px;
  47. height: 500px;
  48. background: linear-gradient(179.96deg, #25180D 38.82%, #5E4025 55.4%, #876635 61.6%, #24180C 71.59%);
  49. border-radius: 20px;
  50. .head {
  51. padding: 10px;
  52. display: flex;
  53. align-items: center;
  54. img {
  55. width: 16px;
  56. height: 16px;
  57. border-radius: 100px;
  58. }
  59. span {
  60. color: #B69882;
  61. font-weight: 400;
  62. margin-left: 5px;
  63. font-size: 11px;
  64. flex-grow: 0;
  65. }
  66. }
  67. .invite {
  68. background: rgba(255, 255, 255, 0.1);
  69. height: 28px;
  70. display: flex;
  71. align-items: center;
  72. margin: 0 auto;
  73. margin-top: 20px;
  74. margin-bottom: 10px;
  75. border-radius: 100px;
  76. width: fit-content;
  77. padding-right: 11px;
  78. img {
  79. width: 18px;
  80. height: 18px;
  81. border-radius: 100px;
  82. margin-left: 11px;
  83. margin-right: 6px;
  84. }
  85. span {
  86. color: #BE9F89;
  87. }
  88. }
  89. .treasure {
  90. text-align: center;
  91. span {
  92. font-size: 34px;
  93. font-weight: 900;
  94. line-height: 40px;
  95. }
  96. span:first-child {
  97. color: #FFC83A;
  98. margin-right: 10px;
  99. }
  100. span:last-child {
  101. color: #FFFFFF;
  102. }
  103. }
  104. .gain {
  105. width: 100%;
  106. background: #332319;
  107. height: 37px;
  108. margin-top: 10px;
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. span {
  113. color: #fff;
  114. font-weight: 500;
  115. font-size: 16px;
  116. line-height: 16px;
  117. }
  118. span:first-child {
  119. font-size: 15px;
  120. line-height: 15px;
  121. margin-right: 10px;
  122. }
  123. span:last-child {
  124. margin-left: 2px;
  125. font-weight: 800;
  126. font-size: 24px;
  127. line-height: 24px;
  128. }
  129. }
  130. .coin {
  131. display: flex;
  132. align-items: center;
  133. justify-content: center;
  134. margin-top: 10px;
  135. img {
  136. width: 17px;
  137. height: 17px;
  138. }
  139. span {
  140. margin-left: 4px;
  141. font-weight: 400;
  142. font-size: 11px;
  143. line-height: 15px;
  144. color: #FFFFFF;
  145. opacity: 0.7;
  146. }
  147. }
  148. .box {
  149. text-align: center;
  150. img {
  151. width: 160px;
  152. height: 160px;
  153. }
  154. }
  155. .mark {
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. margin-top: 24px;
  160. span {
  161. font-weight: 500;
  162. font-size: 12px;
  163. line-height: 17px;
  164. color: #65C1FF;
  165. }
  166. }
  167. .btn-submit {
  168. background: #1D9BF0;
  169. border-radius: 100px;
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. height: 53px;
  174. width: 343px;
  175. margin: 0 auto;
  176. cursor: pointer;
  177. margin-top: 16px;
  178. user-select: none;
  179. span {
  180. font-weight: 800;
  181. color: #FFFFFF;
  182. font-size: 20px;
  183. line-height: 24px;
  184. margin-left: 6px;
  185. }
  186. }
  187. }
  188. </style>