diff --git a/nuxt.config.js b/nuxt.config.js index acf0b82..9c02109 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -14,7 +14,10 @@ export default { css: [], // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins) - plugins: [{ src: '~/plugins/magic.js', mode: 'client' }], + plugins: [ + { src: '~/plugins/magic.js', mode: 'client' }, + { src: '~/plugins/vue-splide.js', mode: 'client' }, + ], // Auto import components (https://go.nuxtjs.dev/config-components) components: true, diff --git a/package-lock.json b/package-lock.json index 7fe1b7d..e1a7821 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1956,6 +1956,29 @@ } } }, + "@splidejs/splide": { + "version": "2.4.14", + "resolved": "https://registry.npmjs.org/@splidejs/splide/-/splide-2.4.14.tgz", + "integrity": "sha512-TSw8lH0iuWYbcRbOx2J9CMXmKIjbQMBTMkIufUdDqV2q4/7cgcOwy0EkCfKst72SN1jnsj/LurGoOPFocUTq4Q==" + }, + "@splidejs/splide-extension-video": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/@splidejs/splide-extension-video/-/splide-extension-video-0.4.6.tgz", + "integrity": "sha512-UEqxkuYClYDhV+DsX9384wKj6FWwWN3HUvUXcNPVKZiHvh0Zn0t1M2w/hcDRJ3VtCxFhx92Kgzlkf22HqdyF+g==", + "requires": { + "@vimeo/player": "^2.10.0" + } + }, + "@splidejs/vue-splide": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@splidejs/vue-splide/-/vue-splide-0.3.5.tgz", + "integrity": "sha512-eI4Kl2v+yAGKMVa9MtfIIPPZtplTfKPx4rCJlZqfethl3tCOGQwL9MxSyLk6bUhl31aOuClxmXQv8O5ubU8fNQ==", + "requires": { + "@splidejs/splide": "^2.4.13", + "@splidejs/splide-extension-video": "^0.4.6", + "vue": "^2.6.12" + } + }, "@tailwindcss/custom-forms": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/@tailwindcss/custom-forms/-/custom-forms-0.2.1.tgz", @@ -2134,6 +2157,15 @@ "tsutils": "^3.17.1" } }, + "@vimeo/player": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/@vimeo/player/-/player-2.14.1.tgz", + "integrity": "sha512-PXIATVxUfblTbRoSXzNcplJFjsho6e32ltfEm4po/RFZcAOYefOO4mjxDMGUTAzo937DZvjd5n1u7+EfGHuLPw==", + "requires": { + "native-promise-only": "0.8.1", + "weakmap-polyfill": "2.0.1" + } + }, "@vue/babel-helper-vue-jsx-merge-props": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz", @@ -8432,6 +8464,11 @@ "to-regex": "^3.0.1" } }, + "native-promise-only": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "integrity": "sha1-IKMYwwy0X3H+et+/eyHJnBRy7xE=" + }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -12823,6 +12860,11 @@ } } }, + "weakmap-polyfill": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/weakmap-polyfill/-/weakmap-polyfill-2.0.1.tgz", + "integrity": "sha512-Jy177Lvb1LCrPQDWJsXyyqf4eOhcdvQHFGoCqSv921kVF5i42MVbr4e2WEwetuTLBn1NX0IhPzTmMu0N3cURqQ==" + }, "webpack": { "version": "4.44.2", "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.44.2.tgz", diff --git a/package.json b/package.json index bc38d7b..347709a 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dependencies": { "@nuxtjs/axios": "^5.12.2", "@nuxtjs/pwa": "^3.0.2", + "@splidejs/vue-splide": "^0.3.5", "@tailwindcss/ui": "^0.7.2", "core-js": "^3.6.5", "magic-sdk": "^3.0.1", diff --git a/pages/index.vue b/pages/index.vue index 2eeb1a6..0faef86 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -30,11 +30,33 @@