TopTitle.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="pageTop wow fadeInDown">
  3. <div class="pageTopbg"></div>
  4. <div class="title">
  5. <span>{{ name }}</span>
  6. </div>
  7. </div>
  8. </template>
  9. <script name="TopTitle" setup>
  10. const props = defineProps({
  11. name: {
  12. name: String,
  13. default: '',
  14. },
  15. });
  16. </script>
  17. <style lang="less" scoped>
  18. .pageTop {
  19. position: absolute;
  20. width: 100%;
  21. height: 260px;
  22. flex-shrink: 0;
  23. display: flex;
  24. justify-content: center;
  25. align-items: flex-start;
  26. flex-wrap: nowrap;
  27. flex-direction: row;
  28. align-content: flex-start;
  29. pointer-events: none;
  30. background: url('../../../assets/images/topbg-2521ad78.png') center top no-repeat;
  31. .title {
  32. position: relative;
  33. width: 40%;
  34. display: flex;
  35. flex-shrink: 0;
  36. justify-content: center;
  37. align-items: flex-start;
  38. flex-wrap: nowrap;
  39. flex-direction: row;
  40. align-content: flex-start;
  41. span {
  42. font-size: 42px;
  43. font-weight: 900;
  44. color: #FFFFFF;
  45. margin-top: 15px;
  46. letter-spacing: 2px;
  47. background: linear-gradient(0deg, rgba(10, 177, 255, 1) 0%, rgba(255, 255, 255, 1) 50.2685546875%, rgba(255, 255, 255, 1) 83.7890625%, rgba(10, 177, 255, 1) 100%);
  48. -webkit-background-clip: text;
  49. -webkit-text-fill-color: transparent;
  50. }
  51. }
  52. }
  53. </style>