<template>
  <div id="app">
    <router-view></router-view>
    <TabBar v-if="showTabBar"></TabBar>
  </div>
</template>

<script>
import TabBar from '@/components/TabBar.vue'

export default {
  name: 'App',
  components: {
    TabBar
  },
  computed: {
    showTabBar() {
      // Hide TabBar on login, register and profile detail pages
      const hideTabBarRoutes = ['/login', '/register', '/profile/detail']
      return !hideTabBarRoutes.includes(this.$route.path)
    }
  }
}
</script>

<style>
html {
  font-size: 16px;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
h1{
  margin: 0;
  padding: 0;
}
#app {
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}
</style>
