label.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. color: #262626;
  41. font-size: 24px;
  42. font-family: PingFangSC-Semibold, PingFang SC;
  43. font-weight: 400;
  44. img {
  45. width: 298px;
  46. height: 56px;
  47. position: absolute;
  48. transform: translateX(-36%);
  49. }
  50. .label {
  51. font-size: 58px;
  52. letter-spacing: 1.5px;
  53. margin-top: 10px;
  54. font-weight: 600;
  55. }
  56. .first-desc {
  57. margin-top: 40px;
  58. margin-bottom: 18px;
  59. text-align: center;
  60. }
  61. .secoend-desc {
  62. text-align: center;
  63. }
  64. }
  65. }
  66. </style>