index.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .home-bg {
  27. min-height: 100vh;
  28. background: linear-gradient(180deg, #eaf6ff 0%, #f7f8fa 100%);
  29. position: relative;
  30. padding-bottom: 120rpx;
  31. }
  32. .top-bar {
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. position: relative;
  37. height: 120rpx;
  38. padding-top: 40rpx;
  39. }
  40. .title {
  41. font-size: 44rpx;
  42. font-weight: bold;
  43. color: #222;
  44. letter-spacing: 2rpx;
  45. text-align: center;
  46. flex: 1;
  47. font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  48. }
  49. .top-icons {
  50. position: absolute;
  51. right: 40rpx;
  52. top: 50%;
  53. transform: translateY(-50%);
  54. display: flex;
  55. gap: 32rpx;
  56. }
  57. .iconfont {
  58. font-size: 40rpx;
  59. color: #222;
  60. }
  61. .icon-search {
  62. margin-right: 8rpx;
  63. }
  64. .waterdrop {
  65. position: absolute;
  66. width: 32rpx;
  67. height: 32rpx;
  68. background: linear-gradient(180deg, #b3e0ff 0%, #eaf6ff 100%);
  69. border-radius: 50% 50% 60% 40%/60% 40% 50% 50%;
  70. opacity: 0.7;
  71. z-index: 1;
  72. }
  73. .waterdrop-left {
  74. left: 80rpx;
  75. top: 110rpx;
  76. }
  77. .waterdrop-right {
  78. right: 80rpx;
  79. top: 110rpx;
  80. }
  81. .header-content {
  82. display: flex;
  83. flex-direction: row;
  84. align-items: flex-start;
  85. justify-content: space-between;
  86. margin: 0 40rpx 0 40rpx;
  87. margin-top: 20rpx;
  88. }
  89. .date-motivation {
  90. display: flex;
  91. flex-direction: column;
  92. align-items: flex-start;
  93. margin-top: 20rpx;
  94. }
  95. .date {
  96. font-size: 48rpx;
  97. font-weight: 700;
  98. color: #222;
  99. margin-bottom: 8rpx;
  100. }
  101. .motivation {
  102. font-size: 28rpx;
  103. color: #4a90e2;
  104. font-weight: 500;
  105. }
  106. .illustration {
  107. width: 220rpx;
  108. height: 140rpx;
  109. margin-top: 0;
  110. }
  111. .book-img {
  112. width: 100%;
  113. height: 100%;
  114. }
  115. .my-course {
  116. background: #fff;
  117. border-radius: 24rpx;
  118. margin: 40rpx 24rpx 0 24rpx;
  119. box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
  120. padding: 32rpx 24rpx 40rpx 24rpx;
  121. position: relative;
  122. }
  123. .module-title {
  124. font-size: 32rpx;
  125. font-weight: 600;
  126. color: #222;
  127. margin-bottom: 24rpx;
  128. }
  129. .empty-course {
  130. display: flex;
  131. flex-direction: column;
  132. align-items: center;
  133. justify-content: center;
  134. padding: 40rpx 0 0 0;
  135. }
  136. .empty-img {
  137. width: 120rpx;
  138. height: 120rpx;
  139. margin-bottom: 24rpx;
  140. }
  141. .empty-tip {
  142. font-size: 28rpx;
  143. color: #888;
  144. text-align: center;
  145. margin-bottom: 32rpx;
  146. white-space: pre-line;
  147. }
  148. .more-btn {
  149. width: 320rpx;
  150. height: 72rpx;
  151. background: #fff;
  152. border: 2rpx solid #3498db;
  153. color: #3498db;
  154. border-radius: 36rpx;
  155. font-size: 30rpx;
  156. font-weight: 600;
  157. text-align: center;
  158. line-height: 72rpx;
  159. margin-top: 8rpx;
  160. }
  161. .find-course {
  162. text-align: center;
  163. color: #bbb;
  164. font-size: 26rpx;
  165. margin-top: 32rpx;
  166. }