<template>
  <div class="home-page-wrapper">
    <HomePageHeader />
    <div class="home-page-content">
      <router-view />
    </div>
    <HomePageFooter />
  </div>
</template>
<script>
import HomePageHeader from '@/components/HomePageHeader.vue'
import HomePageFooter from '@/components/HomePageFooter.vue'

export default {
  name: 'HomePage',
  components: { HomePageHeader, HomePageFooter },
  beforeRouteUpdate(to, from, next) {
    window.scrollTo({
      top: 0,
      behavior: 'smooth',
    })
    next()
  },
}
</script>
<style lang="scss">
.home-page-content {
  padding-top: 70px;
}
</style>
