chore: include offline support (#79)

This commit is contained in:
Joaquín Sánchez authored and GitHub committed 2023-02-22 11:31:26 +01:00
1 parent ac3bac5513
commit a957421136
4 files changed
+28 -141

No files matched your search

+10 -1
View File
@@ -1,8 +1,17 @@
<script setup lang="ts">
const online = useOnline()
</script>
<template>
<div>
<Logos mb-6 />
<Suspense>
<PageView />
<ClientOnly>
<PageView v-if="online" />
<div v-else text-gray:80>
You're offline
</div>
</ClientOnly>
<template #fallback>
<div op50 italic>
<span animate-pulse>Loading...</span>