label.vue 1.6 KB

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