Skip to content

Commit

Permalink
Use node v20 and fix the build (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
javisperez authored May 29, 2024
1 parent 56b82eb commit 4b452e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
9 changes: 8 additions & 1 deletion docs/.vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { isClient } from '@vueuse/core'
import { ref, computed } from 'vue'
import { Vue3Marquee } from 'vue3-marquee'
import Accordion from './Accordion.vue'
Expand Down Expand Up @@ -37,7 +38,13 @@ const quotes = [
},
]
const quotesOffsetMobile = computed(() => `translateX(${(activeQuote.value * window.innerWidth - (activeQuote.value * 6)) * -1}px)`)
const quotesOffsetMobile = computed(() => {
if (isClient) {
return `translateX(${(activeQuote.value * window.innerWidth - (activeQuote.value * 6)) * -1}px)`
}
return `translateX(0)`
})
// current quote * card width + margin + half card)
const quotesOffsetDesktop = computed(() => `translateX(${((activeQuote.value * 664 + 16) + 332) * -1}px)`)
Expand Down

0 comments on commit 4b452e1

Please sign in to comment.