index.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .index {
  2. font-family: PingFang SC;
  3. &-header {
  4. height: 219px;
  5. padding: 40px 15px 26px 15px;
  6. background: linear-gradient(179deg, #2D82FB 0%, #1635E1 100%);
  7. &-box {
  8. height: 100%;
  9. background-image: url(../../static/images/index-header-bg.png);
  10. background-size: 178px 182px;
  11. background-position: bottom right;
  12. background-repeat: no-repeat;
  13. &-1 {
  14. display: flex;
  15. justify-content: space-between;
  16. align-items: center;
  17. font-family: PingFangSC-Heavy, PingFang SC;
  18. font-size: 20px;
  19. color: #fff;
  20. font-weight: bold;
  21. }
  22. &-2 {
  23. margin-top: 24px;
  24. line-height: 42px;
  25. font-family: PingFangSC-Heavy, PingFang SC;
  26. font-size: 30px;
  27. color: #fff;
  28. font-weight: bold;
  29. }
  30. }
  31. }
  32. &-main {
  33. padding: 24px 15px;
  34. background-color: #EFEFEF;
  35. border-radius: 15px;
  36. margin-top: -20px;
  37. &-menu {
  38. &-title {
  39. font-size: 18px;
  40. font-family: PingFangSC-Regular, PingFang SC;
  41. }
  42. &-1 {
  43. display: flex;
  44. justify-content: space-between;
  45. .menu-item {
  46. width: 30%;
  47. height: 96px;
  48. text-align: center;
  49. background-color: #fff;
  50. border-radius: 8px;
  51. &-icon {
  52. width: 48px;
  53. margin: 13px auto 5px;
  54. }
  55. &-name {
  56. color: #787878;
  57. font-size: 13px;
  58. font-family: 'PingFangSC-Regular, PingFang SC';
  59. }
  60. }
  61. }
  62. &-2 {
  63. padding: 16px 15px 0;
  64. background-color: #fff;
  65. border-radius: 8px;
  66. margin-top: 15px;
  67. .menu {
  68. display: flex;
  69. flex-wrap: wrap;
  70. padding: 15px 0 0;
  71. &-item {
  72. width: 23%;
  73. text-align: center;
  74. margin: 0 1%;
  75. margin-bottom: 24px;
  76. &-icon {
  77. margin: 0 auto 9px;
  78. }
  79. &-name {
  80. font-size: 12px;
  81. color: #787878;
  82. font-family: PingFangSC-Regular, PingFang SC;
  83. // overflow: hidden;
  84. // white-space: nowrap;
  85. // text-overflow: ellipsis;
  86. // word-break: break-all;
  87. margin: 0 auto;
  88. width: 90%;
  89. }
  90. }
  91. &-item:nth-child(4n) {
  92. margin-right: 0;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }