<template>
  <div class="dark:bg-blue-900 min-h-screen">
    <v-nav />
    <main class="container mx-auto px-2 sm:px-6 pt-8">
      <suspense>
        <template #default><router-view></router-view> </template>
        <template #fallback><VSpinner /></template>
      </suspense>
    </main>
  </div>
</template>

<script lang="ts">
import { useDark } from "@vueuse/core";
import { defineComponent } from "vue";
import VNav from "./components/VNav.vue";
import VSpinner from "./components/VSpinner.vue";

export default defineComponent({
  name: "App",
  components: {
    VNav,
    VSpinner,
  },
  setup() {
    useDark();
  },
});
</script>

<style>
@tailwind base;
@tailwind components;
@tailwind utilities;

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
