<script setup lang="ts">
// https://github.com/vueuse/head
// you can use this to manipulate the document head in any components,
// they will be rendered correctly in the html results with vite-ssg
useHead({
  title: 'H5 - Vitesse',
  meta: [
    { name: 'description', content: 'A H5 Template(Vite + Vue) inspired by Vitesse.' },
    {
      name: 'theme-color',
      content: computed(() => isDark.value ? '#00aba9' : '#ffffff'),
    },
  ],
  link: [
    {
      rel: 'icon',
      type: 'image/svg+xml',
      href: computed(() => preferredDark.value ? '/favicon-dark.svg' : '/favicon.svg'),
    },
  ],
})
</script>

<template>
  <main class="p-4 text-center">
    <NavMenu />
    <RouterView />
    <div class="mt-5 mx-auto text-center opacity-75">
      [Default Layout]
    </div>
  </main>
</template>
