subHeader.vue 778 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div class="header">
  3. <div class="logo">
  4. <img src="img/logo.png" alt="logo" />
  5. </div>
  6. </div>
  7. </template>
  8. <script setup>
  9. defineOptions({
  10. name: "sub-header",
  11. });
  12. </script>
  13. <style lang="scss" scoped>
  14. .header {
  15. height: var(--main-sub-header-height);
  16. overflow: hidden;
  17. display: flex;
  18. align-items: center;
  19. position: absolute;
  20. top: 0;
  21. left: 0;
  22. width: 100%;
  23. background-image: var(--main-sub-header-background);
  24. background-size: cover;
  25. background-position: left top;
  26. background-repeat: no-repeat;
  27. z-index: 0;
  28. .logo {
  29. height: var(--main-sub-header-logo-height);
  30. margin-left: var(--main-sub-header-margin-left);
  31. img {
  32. height: 100%;
  33. width: auto;
  34. }
  35. }
  36. }
  37. </style>