analytics and sliders working
parent
bd6efb24b6
commit
e432d9ac7e
@ -0,0 +1,29 @@
|
|||||||
|
<template>
|
||||||
|
<Swiper
|
||||||
|
:spaceBetween="30"
|
||||||
|
:centeredSlides="true"
|
||||||
|
:autoplay="{
|
||||||
|
delay: 7000,
|
||||||
|
disableOnInteraction: false,
|
||||||
|
}"
|
||||||
|
:pagination="{
|
||||||
|
clickable: true,
|
||||||
|
}"
|
||||||
|
:navigation="true"
|
||||||
|
:modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
|
||||||
|
>
|
||||||
|
|
||||||
|
<SwiperSlide v-for="image_id in image_ids">
|
||||||
|
<div>
|
||||||
|
<nuxt-img :src="'https://unboundedpress.org/api/images.files/' + image_id + '/binary'"
|
||||||
|
quality="50"/>
|
||||||
|
</div>
|
||||||
|
</SwiperSlide>
|
||||||
|
</Swiper>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ['image_ids']
|
||||||
|
}
|
||||||
|
</script>
|
@ -1,10 +1,20 @@
|
|||||||
|
//import { defineNuxtConfig } from 'nuxt3'
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: ['@nuxtjs/tailwindcss', '@nuxt/image', 'nuxt-icon', '@pinia/nuxt'],
|
modules: ['@nuxtjs/tailwindcss', '@nuxt/image', 'nuxt-icon', '@pinia/nuxt', 'nuxt-headlessui', 'nuxt-swiper'],
|
||||||
|
extends: ['nuxt-umami'],
|
||||||
image: {
|
image: {
|
||||||
domains: ['unboundedpress.org']
|
domains: ['unboundedpress.org']
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
pageTransition: { name: 'page', mode: 'out-in' }
|
pageTransition: { name: 'page', mode: 'out-in' }
|
||||||
|
},
|
||||||
|
appConfig: {
|
||||||
|
umami: {
|
||||||
|
id: '51f4f246-9c2e-4a86-9ffb-7a7967d9013d',
|
||||||
|
host: 'https://analytics.umami.is/',
|
||||||
|
version: 2
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue