Title.vue 619 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div class="d-flex flex-row">
  3. <a
  4. :href="homeUrl"
  5. :title="$t('go_back_home')"
  6. class="d-flex flex-row align-center"
  7. >
  8. <v-img src="/favicon.ico" height="42" width="42" class="mr-2" />
  9. <span v-if="mdAndUp"><slot /></span>
  10. </a>
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import { useDisplay } from 'vuetify'
  15. import { useHomeUrl } from '~/composables/utils/useHomeUrl'
  16. const { homeUrl } = useHomeUrl()
  17. const { mdAndUp } = useDisplay()
  18. </script>
  19. <style scoped lang="scss">
  20. a {
  21. color: rgb(var(--v-theme-on-primary)) !important;
  22. text-decoration: none;
  23. }
  24. </style>