Skip to content

Commit

Permalink
docs(HomeLogo/Footer): update logos to use theme specific
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 31, 2023
1 parent 342dbe3 commit 6e06637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/docs/src/components/home/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<v-row>
<v-col cols="12">
<v-img
:src="`https://cdn.vuetifyjs.com/docs/images/logos/vuetify-logo-${theme.name.value}-slim.svg`"
class="mx-auto"
contain
height="64"
src="https://cdn.vuetifyjs.com/docs/images/logos/vuetify-logo-v3-slim-light.svg"
width="64"
/>
</v-col>
Expand Down Expand Up @@ -85,8 +85,10 @@
<script setup>
// Composables
import { useI18n } from 'vue-i18n'
import { useTheme } from 'vuetify'
const { t } = useI18n()
const theme = useTheme()
const links = [
{
href: 'https://www.iubenda.com/privacy-policy/76325752',
Expand Down
6 changes: 5 additions & 1 deletion packages/docs/src/components/home/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
</template>

<script setup>
// Composables
import { useTheme } from 'vuetify'
// Utilities
import { computed } from 'vue'
defineProps({
size: String,
})
const theme = useTheme()
const logo = computed(() => {
return `vuetify-logo-light-atom.svg`
return `vuetify-logo-${theme.name.value}-atom.svg`
})
</script>

0 comments on commit 6e06637

Please sign in to comment.