dashboard.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /* components/dashboard/dashboard.wxss */
  2. .dashboard {
  3. width: 100%;
  4. height: 480rpx;
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. background-color: #FAFCFF;
  9. }
  10. .dashboard .content {
  11. width: 240rpx;
  12. height: 100%;
  13. margin-right: 60rpx;
  14. }
  15. .dashboard .content .count {
  16. width: 192rpx;
  17. height: auto;
  18. display: flex;
  19. flex-direction: column;
  20. align-items: flex-start;
  21. justify-content: center;
  22. background: rgba(255, 255, 255, 1);
  23. border-radius: 12rpx;
  24. padding: 0 24rpx;
  25. overflow: hidden;
  26. }
  27. .dashboard .content .count .number {
  28. font-size: 66rpx;
  29. font-weight: bold;
  30. color: rgba(66, 70, 86, 0.7);
  31. line-height: 96rpx;
  32. }
  33. .dashboard .content .count .number text {
  34. font-size: 40rpx;
  35. font-weight: bold;
  36. color: rgba(66, 70, 86, 0.7);
  37. line-height: 48rpx;
  38. letter-spacing: 10rpx;
  39. margin-top: 6rpx;
  40. }
  41. .dashboard .content .count .txt {
  42. font-size: 22rpx;
  43. font-weight: 400;
  44. color: rgba(66, 70, 86, 0.7);
  45. line-height: 32rpx;
  46. text-align: center;
  47. }
  48. .dashboard .content .item {
  49. width: 240rpx;
  50. height: 60rpx;
  51. border-radius: 12rpx;
  52. margin-top: 20rpx;
  53. display: flex;
  54. align-items: center;
  55. }
  56. .dashboard .content .item .icon {
  57. width: 20rpx;
  58. height: 20rpx;
  59. border-radius: 100%;
  60. margin: 0 20rpx 0 24rpx;
  61. }
  62. .dashboard .content .item .name {
  63. font-size: 22rpx;
  64. font-weight: 400;
  65. color: rgba(66, 70, 86, 1);
  66. }
  67. .dashboard .ruler {
  68. width: 130rpx;
  69. height: 100%;
  70. margin-left: 40rpx;
  71. }
  72. .dashboard .ruler .item {
  73. position: relative;
  74. }
  75. .dashboard .ruler .item .area {
  76. height: 100%;
  77. display: flex;
  78. align-items: center;
  79. }
  80. .dashboard .ruler .item .area .bg {
  81. height: 70%;
  82. width: 40rpx;
  83. border-radius: 4rpx;
  84. }
  85. .dashboard .ruler .item .area .scale {
  86. width: 24rpx;
  87. height: 80%;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. justify-content: space-around;
  92. margin-left: 16rpx;
  93. }
  94. .dashboard .ruler .item .area .scale .line {
  95. display: inline-block;
  96. width: 24rpx;
  97. height: 2rpx;
  98. background: rgba(221, 223, 225, 1);
  99. }
  100. .dashboard .ruler .long-scale {
  101. position: absolute;
  102. bottom: 0;
  103. left: 0;
  104. right: 0;
  105. }
  106. .dashboard .ruler .long-scale .line {
  107. position: absolute;
  108. left: 0;
  109. bottom: 0;
  110. display: inline-block;
  111. width: 80rpx;
  112. height: 2rpx;
  113. background: rgba(221, 223, 225, 1);
  114. }
  115. .dashboard .ruler .long-scale .number {
  116. display: inline-block;
  117. position: absolute;
  118. right: 0;
  119. bottom: -17rpx;
  120. font-size: 24rpx;
  121. font-weight: 400;
  122. color: rgba(104, 107, 120, 1);
  123. line-height: 34rpx;
  124. background-color: rgba(250, 252, 255, 1);
  125. padding-left: 10rpx;
  126. }
  127. .dashboard .ruler .long-scale.top {
  128. top: 0;
  129. bottom: unset;
  130. }
  131. .wave-wrap {
  132. width: 180rpx;
  133. height: 100%;
  134. border-radius: 90rpx;
  135. box-shadow: 10rpx 20rpx 20rpx 0rpx rgba(236, 238, 245, 1), -10rpx -20rpx 20rpx 0rpx rgba(255, 255, 255, 1), 8rpx 4rpx 30rpx 0rpx rgba(247, 249, 252, 1);
  136. overflow: hidden;
  137. position: relative;
  138. background: rgba(250,252,255,1);
  139. }
  140. .wave-wrap .wave-inner {
  141. width: 100%;
  142. height: 0;
  143. position: absolute;
  144. bottom: 0;
  145. background-color: rgb(118, 218, 255);
  146. background: linear-gradient(360deg, #59B7FF 0%, #0091FF 80%, #59B7FF 100%);
  147. }
  148. .wave-wrap .wave-inner .bubble {
  149. width: 100%;
  150. height: 100rpx;
  151. position: absolute;
  152. top: -5rpx;
  153. left: 0;
  154. animation-name: translate;
  155. animation-iteration-count: infinite;
  156. animation-timing-function: linear;
  157. animation-duration: 4s;
  158. }
  159. .wave-wrap .before,
  160. .wave-wrap .after {
  161. position: absolute;
  162. left: 50%;
  163. width: 540rpx;
  164. height: 576rpx;
  165. border-radius: 45%;
  166. background-color: rgba(250,252,255,1);
  167. animation-name: rotate;
  168. animation-iteration-count: infinite;
  169. animation-timing-function: linear;
  170. }
  171. .wave-wrap .before {
  172. bottom: 95%;
  173. animation-duration: 10s;
  174. }
  175. .wave-wrap .after {
  176. bottom: 92%;
  177. opacity: .5;
  178. border-radius: 48%;
  179. animation-duration: 10s;
  180. }
  181. @keyframes rotate {
  182. 0% {
  183. transform: translate(-50%, 0) rotateZ(0deg);
  184. }
  185. 25% {
  186. transform: translate(-50%, -0.5%) rotateZ(90deg);
  187. }
  188. 50% {
  189. transform: translate(-50%, 0%) rotateZ(180deg);
  190. }
  191. 75% {
  192. transform: translate(-50%, -0.5%) rotateZ(270deg);
  193. }
  194. 100% {
  195. transform: translate(-50%, 0%) rotateZ(360deg);
  196. }
  197. }
  198. @keyframes translate {
  199. 0% {
  200. top: -5rpx;
  201. opacity: 0;
  202. }
  203. 25% {
  204. top: -25rpx;
  205. opacity: 0.7;
  206. }
  207. 50% {
  208. top: -50rpx;
  209. opacity: 0.5;
  210. }
  211. 75% {
  212. top: -80rpx;
  213. opacity: 0;
  214. }
  215. 100% {
  216. top: -5rpx;
  217. opacity: 0;
  218. }
  219. }