Skip to content

Commit a9fab21

Browse files
feat: enable studio + fix navbar mobile logo
1 parent df0cb66 commit a9fab21

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

components/AppNavbar.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,22 @@ const { data: navigation } = await useAsyncData('navigation', () =>
132132
<NuxtLink to="/">
133133
<div class="shrink-0 flex items-center">
134134
<img
135-
class="block h-10 w-10"
136-
src="/img/logo/logo.svg"
137-
alt=""
135+
v-if="appConfig.stylo.header.logo.src"
136+
class="block dark:hidden h-10 w-10"
137+
:src="appConfig.stylo.header.logo.src"
138+
:alt="appConfig.stylo.header.logo.alt"
139+
/>
140+
<img
141+
v-if="
142+
appConfig.stylo.header.logo.srcDark ||
143+
appConfig.stylo.header.logo.src
144+
"
145+
class="hidden dark:block h-10 w-10"
146+
:src="
147+
appConfig.stylo.header.logo.srcDark ||
148+
appConfig.stylo.header.logo.src
149+
"
150+
:alt="appConfig.stylo.header.logo.alt"
138151
/>
139152
</div>
140153
</NuxtLink>

nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineNuxtConfig({
66
extends: ['nuxt-seo-kit'],
77
modules: [
88
'@vueuse/nuxt',
9-
// '@nuxthq/studio',
9+
'@nuxthq/studio',
1010
'@nuxt/content',
1111
'@nuxtjs/tailwindcss',
1212
'pinceau/nuxt',
@@ -27,6 +27,6 @@ export default defineNuxtConfig({
2727
pinceau: {
2828
configFileName: 'tokens.config',
2929
preflight: false,
30-
// studio: true,
30+
studio: true,
3131
},
3232
})

0 commit comments

Comments
 (0)