styles.module.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. $bg:"./../../assets/firstPay/pack.png";
  2. $btnbg:"./../../assets/firstPay/button.png";
  3. $pbg:"./../../assets/firstPay/percent.png";
  4. .container{
  5. display: flex;
  6. flex-direction: column;
  7. align-items: center;
  8. justify-content: center;
  9. width: 100%;
  10. height: 100%;
  11. padding: 1rem;
  12. pointer-events: none;
  13. position: relative;
  14. }
  15. .f_con{
  16. display: flex;
  17. flex-direction: column;
  18. width: 100%;
  19. max-width: 25.875rem;
  20. pointer-events: auto;
  21. align-items: center;
  22. position:relative;
  23. gap: 0.5rem;
  24. & .title{
  25. max-width: 90%;
  26. height: auto;
  27. }
  28. & .f_main{
  29. display: flex;
  30. flex-direction: column;
  31. align-items: center;
  32. justify-content: center;
  33. width: 80%;
  34. aspect-ratio: 583/442;
  35. height: auto;
  36. position: relative;
  37. & .bglight{
  38. width: 127%;
  39. position: absolute;
  40. z-index: 1;
  41. pointer-events: none;
  42. animation: bg_light_ani 20s linear infinite;
  43. transform: translateZ(0);
  44. }
  45. & .pack_con{
  46. display: flex;
  47. flex-direction: column;
  48. position: absolute;
  49. align-items: center;
  50. justify-content: flex-end;
  51. z-index: 2;
  52. width: 100%;
  53. aspect-ratio: 583/442;
  54. background: url($bg);
  55. background-size: 100% 100%;
  56. & .percent_con{
  57. display: flex;
  58. flex-direction: row;
  59. align-items: center;
  60. justify-content: center;
  61. position: absolute;
  62. z-index: 2;
  63. background: url($pbg);
  64. background-size: 100% 100%;
  65. width: 24%;
  66. aspect-ratio: 137/136;
  67. right: 16%;
  68. bottom: 15%;
  69. transform: rotate(-10deg);
  70. & .text{
  71. &::before{
  72. content: attr(data-title);
  73. position: absolute;
  74. background-image: linear-gradient(to right,#ffd63c,#ffd63c, #fdfdd1);
  75. background-clip: text;
  76. -webkit-background-clip: text;
  77. -webkit-text-fill-color: transparent;
  78. -webkit-text-stroke: 0px #483be3;
  79. font-weight: bold;
  80. font-size: 1rem;
  81. pointer-events: none;
  82. }
  83. font-weight: bold;
  84. font-size: 1rem;
  85. -webkit-text-stroke: 2px #483be3;
  86. filter: drop-shadow(0 1px 1px #3615a0);
  87. }
  88. }
  89. & .bonus_con{
  90. display: flex;
  91. flex-direction: row;
  92. align-items: center;
  93. justify-content: center;
  94. width: 100%;
  95. height: 21%;
  96. & .bonus{
  97. &::before{
  98. content: attr(data-title);
  99. position: absolute;
  100. background-image: linear-gradient(to bottom,#fffd5a 0%,#fffd5a 30%,#fffdea 60%,#ffb643 70%);
  101. background-clip: text;
  102. -webkit-background-clip: text;
  103. -webkit-text-fill-color: transparent;
  104. -webkit-text-stroke: 0px #483be3;
  105. font-weight: bold;
  106. font-size: 1.8rem;
  107. pointer-events: none;
  108. }
  109. font-weight: bold;
  110. font-size: 1.8rem;
  111. filter: drop-shadow(0 3px 1px #120519);
  112. }
  113. }
  114. }
  115. }
  116. & .f_btnpay{
  117. display: flex;
  118. flex-direction: row;
  119. align-items: center;
  120. justify-content: center;
  121. margin-top: 0.8rem;
  122. width: 48%;
  123. aspect-ratio: 347/91;
  124. background: url($btnbg);
  125. background-size: 100% 100%;
  126. font-weight: bold;
  127. font-size: 1.1rem;
  128. gap: 0.5rem;
  129. & .label{
  130. margin-top: -0.3rem;
  131. color: #fff;
  132. -webkit-text-stroke: 4px #1c4014;
  133. &::before{
  134. content: attr(data-title);
  135. position: absolute;
  136. background-image: linear-gradient(to bottom,#fff,#fff);
  137. background-clip: text;
  138. -webkit-background-clip: text;
  139. -webkit-text-fill-color: transparent;
  140. -webkit-text-stroke: 0px #1c4014;
  141. font-weight: bold;
  142. font-size: 1.1rem;
  143. }
  144. }
  145. & .pay_num{
  146. margin-top: -0.3rem;
  147. font-size: 1.2rem;
  148. color: #f4eb00;
  149. -webkit-text-stroke: 4px #830662;
  150. &::before{
  151. content: attr(data-title);
  152. position: absolute;
  153. background-image: linear-gradient(to bottom,#f4eb00,#f4eb00);
  154. background-clip: text;
  155. -webkit-background-clip: text;
  156. -webkit-text-fill-color: transparent;
  157. -webkit-text-stroke: 0px #830662;
  158. font-weight: bold;
  159. font-size: 1.2rem;
  160. }
  161. }
  162. }
  163. }
  164. @keyframes bg_light_ani {
  165. 0%{
  166. transform: rotate(0deg);
  167. }
  168. 100%{
  169. transform: rotate(1turn);
  170. }
  171. }