label.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <section class="Label-container">
  3. <div class="label-item wow animate__animated animate__fadeInDown">
  4. <img :src="labelProps.imgUrl" alt="">
  5. <section class="label">
  6. {{labelProps.label}}
  7. </section>
  8. <section class="first-desc">
  9. {{labelProps.firstText}}
  10. </section>
  11. <section class="secoend-desc">
  12. {{labelProps.secoendText}}
  13. </section>
  14. </div>
  15. </section>
  16. </template>
  17. <script>
  18. if (process.browser) {
  19. var {WOW} = require('wowjs')
  20. }
  21. export default {
  22. name: 'LabelPage',
  23. props: {
  24. labelProps: {
  25. type: Object,
  26. required: true
  27. }
  28. },
  29. mounted () {
  30. if (process.browser) {
  31. new WOW({
  32. offset: 0,
  33. live: true
  34. }).init()
  35. }
  36. }
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .Label-container {
  41. margin-top: 106px;
  42. display: flex;
  43. justify-content: center;
  44. .label-item {
  45. position: relative;
  46. color: #262626;
  47. font-size: 24px;
  48. font-family:PingFangSC-Semibold,PingFang SC;
  49. font-weight:400;
  50. img {
  51. width: 298px;
  52. height: 56px;
  53. position: absolute;
  54. transform: translateX(-36%);
  55. }
  56. .label {
  57. font-size: 58px;
  58. letter-spacing: 1.5px;
  59. margin-top: 10px;
  60. font-weight:600;
  61. }
  62. .first-desc {
  63. margin-top: 40px;
  64. margin-bottom: 18px;
  65. text-align: center;
  66. }
  67. .secoend-desc {
  68. text-align: center;
  69. }
  70. }
  71. }
  72. </style>