feat: add initial Nuxt frontend with SSR

This commit is contained in:
Tim
2025-08-07 19:18:42 +08:00
parent 925973b134
commit cfdd257b9a
34 changed files with 14165 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { ref, computed } from 'vue'
const width = ref(0)
if (process.client) {
width.value = window.innerWidth
window.addEventListener('resize', () => {
width.value = window.innerWidth
})
}
export const isMobile = computed(() => width.value <= 768)