top-title.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="top-title">
  3. <view class="title-before">
  4. <view class="b1"></view>
  5. <view class="b2"></view>
  6. <view class="b3"></view>
  7. <view class="b4"></view>
  8. </view>
  9. <view class="title">{{title}}</view>
  10. <view class="title-after">
  11. <view class="a1"></view>
  12. <view class="a2"></view>
  13. <view class="a3"></view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name:"top-title",
  20. data() {
  21. return {
  22. };
  23. },
  24. props: {
  25. title: {
  26. type: String,
  27. default: ''
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss">
  33. .top-title {
  34. display: flex;
  35. .title-before {
  36. display: inline-block;
  37. .b1 {
  38. width: 4rpx;
  39. height: 4rpx;
  40. background: #FD424B;
  41. border-radius: 50%;
  42. margin-bottom: 6rpx;
  43. margin-left: 22rpx;
  44. }
  45. .b2 {
  46. width: 28rpx;
  47. height: 4rpx;
  48. background: #FFE9EA;
  49. border-radius: 2rpx;
  50. margin-bottom: 6rpx;
  51. margin-left: 18rpx;
  52. }
  53. .b3 {
  54. width: 48rpx;
  55. height: 4rpx;
  56. background: #FFE9EA;
  57. border-radius: 2rpx;
  58. margin-bottom: 6rpx;
  59. }
  60. .b4 {
  61. width: 5rpx;
  62. height: 5rpx;
  63. background: #FD424B;
  64. border-radius: 50%;
  65. margin-bottom: 6rpx;
  66. margin-left: 13rpx;
  67. }
  68. }
  69. .title {
  70. display: inline-block;
  71. font-size: 36rpx;
  72. font-family: PingFang SC;
  73. font-weight: bold;
  74. color: #108EEF;
  75. // line-height: 20px;
  76. background: linear-gradient(0deg, #FF7077 0%, #FD424B 100%);
  77. -webkit-background-clip: text;
  78. -webkit-text-fill-color: transparent;
  79. }
  80. .title-after {
  81. display: inline-block;
  82. .a1 {
  83. width: 8rpx;
  84. height: 8rpx;
  85. background: #FD424B;
  86. border-radius: 50%;
  87. margin-bottom: 6rpx;
  88. margin-top: 16rpx;
  89. margin-left: 25rpx;
  90. }
  91. .a2 {
  92. width: 28rpx;
  93. height: 4rpx;
  94. background: #FD424B;
  95. opacity: 0.1;
  96. border-radius: 2rpx;
  97. margin-bottom: 6rpx;
  98. }
  99. .a3 {
  100. width: 28rpx;
  101. height: 4rpx;
  102. background: #FD424B;
  103. opacity: 0.45;
  104. border-radius: 2rpx;
  105. margin-left: 11rpx;
  106. }
  107. }
  108. }
  109. </style>