Fix tailwind config
This commit is contained in:
15
plugins/cls.ts
Normal file
15
plugins/cls.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* A custom Nuxt plugin to merge all arguments into a single classname string.
|
||||
*/
|
||||
export default defineNuxtPlugin(() => {
|
||||
return {
|
||||
provide: {
|
||||
/**
|
||||
* Merge all arguments into a single classname string.
|
||||
*/
|
||||
cls: (...args: any[]) => {
|
||||
return args.filter((x) => x).join(' ')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
11
plugins/parallax/index.ts
Normal file
11
plugins/parallax/index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import Rellax from "rellax";
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.vueApp.directive("parallax", {
|
||||
mounted(el, binding, vnode, prevVnode) {
|
||||
Rellax(el, {
|
||||
round: true,
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user