mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 15:54:13 +01:00
Switched from Mapbox to a custom globe visualization using 'cobe' library. Removed all Mapbox-related code, dependencies, and environmental variables. Introduced a WebSocket-based system to display live visitor data on the globe.
21 lines
474 B
Vue
21 lines
474 B
Vue
<script lang="ts" setup>
|
|
const { locale } = useI18n()
|
|
|
|
const { data: page } = await useAsyncData(`/home/${locale.value}`, () => {
|
|
return queryCollection('main').path(`/home/${locale.value}`).first()
|
|
}, {
|
|
watch: [locale],
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<main class="!max-w-none prose dark:prose-invert">
|
|
<ContentRenderer v-if="page" :value="page" />
|
|
<HomeStats />
|
|
<HomeActivity />
|
|
<HomeQuote />
|
|
<HomeCatchPhrase />
|
|
<HomeGlobe />
|
|
</main>
|
|
</template>
|