Logo.vue 709 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <nuxt-link
  3. :href="href"
  4. target="_blank"
  5. class="link"
  6. >
  7. <v-img
  8. :src="img"
  9. :height="26"
  10. :alt="alt"
  11. />
  12. </nuxt-link>
  13. </template>
  14. <script setup lang="ts">
  15. import type { PropType } from '@vue/runtime-core'
  16. defineProps({
  17. href: String,
  18. img: String,
  19. alt: {
  20. type: String as PropType<string, null>,
  21. required: false,
  22. default: ''
  23. }
  24. })
  25. </script>
  26. <style scoped lang="scss">
  27. .link {
  28. width: 20%;
  29. margin: 0 auto;
  30. max-width: 140px;
  31. padding: 8px;
  32. display: flex;
  33. flex-direction: column;
  34. justify-content: center;
  35. align-items: center;
  36. :deep(.v-img) {
  37. width: 100%;
  38. }
  39. }
  40. :deep(.v-img__img) {
  41. display: block !important;
  42. }
  43. </style>