added layout transition
This commit is contained in:
+29
-18
@@ -3,10 +3,14 @@ export default defineNuxtConfig({
|
|||||||
compatibilityDate: "2024-11-01",
|
compatibilityDate: "2024-11-01",
|
||||||
ssr: true,
|
ssr: true,
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
css: ["~/assets/css/tailwind.css", "swiper/css", "animate.css/animate.min.css"],
|
css: [
|
||||||
|
"~/assets/css/tailwind.css",
|
||||||
|
"swiper/css",
|
||||||
|
"animate.css/animate.min.css",
|
||||||
|
],
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
"/products": { prerender: false, ssr: false }
|
"/products": { prerender: false, ssr: false },
|
||||||
},
|
},
|
||||||
|
|
||||||
app: {
|
app: {
|
||||||
@@ -15,22 +19,29 @@ export default defineNuxtConfig({
|
|||||||
"animate__animated animate__fadeIn animate__faster",
|
"animate__animated animate__fadeIn animate__faster",
|
||||||
leaveActiveClass:
|
leaveActiveClass:
|
||||||
"animate__animated animate__fadeOut animate__faster",
|
"animate__animated animate__fadeOut animate__faster",
|
||||||
mode: "out-in"
|
mode: "out-in",
|
||||||
}
|
},
|
||||||
|
layoutTransition: {
|
||||||
|
enterActiveClass:
|
||||||
|
"animate__animated animate__fadeIn animate__faster",
|
||||||
|
leaveActiveClass:
|
||||||
|
"animate__animated animate__fadeOut animate__faster",
|
||||||
|
mode: "out-in",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: {
|
plugins: {
|
||||||
"@tailwindcss/postcss": {},
|
"@tailwindcss/postcss": {},
|
||||||
autoprefixer: {}
|
autoprefixer: {},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
path: "~/components",
|
path: "~/components",
|
||||||
pathPrefix: false
|
pathPrefix: false,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
icon: {
|
icon: {
|
||||||
@@ -38,9 +49,9 @@ export default defineNuxtConfig({
|
|||||||
customCollections: [
|
customCollections: [
|
||||||
{
|
{
|
||||||
prefix: "ci",
|
prefix: "ci",
|
||||||
dir: "./public/icons"
|
dir: "./public/icons",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
@@ -51,20 +62,20 @@ export default defineNuxtConfig({
|
|||||||
"DM Sans": "100..900",
|
"DM Sans": "100..900",
|
||||||
Inter: "100..900",
|
Inter: "100..900",
|
||||||
download: true,
|
download: true,
|
||||||
inject: false
|
inject: false,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"@nuxt/icon",
|
"@nuxt/icon",
|
||||||
"reka-ui/nuxt",
|
"reka-ui/nuxt",
|
||||||
"@vueuse/nuxt",
|
"@vueuse/nuxt",
|
||||||
"@formkit/auto-animate/nuxt",
|
"@formkit/auto-animate/nuxt",
|
||||||
'@nuxt/test-utils/module'
|
"@nuxt/test-utils/module",
|
||||||
],
|
],
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
API_BASE_URL: "https://api.heymlz.com"
|
API_BASE_URL: "https://api.heymlz.com",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user