header.vue 771 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="header" :style="{backgroundImage: 'url(' + bgImage + ')' }" >
  3. {{ title }}
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. }
  11. },
  12. props: {
  13. bgImage: {
  14. type: String,
  15. default: ''
  16. },
  17. title: {
  18. type: String,
  19. default: ''
  20. }
  21. },
  22. created() {
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. @import "~static/common/style.sass";
  30. .header {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. height: 885px;
  35. background: url('~assets/images/about/about_team.png') 100% 100% no-repeat;
  36. font-size:64px;
  37. font-family:PingFangSC-Medium,PingFang SC;
  38. font-weight:500;
  39. color:#ffffff;
  40. }
  41. </style>