<template>
  <div class="main-container">
    <div class="index-nav">
      <AppSidebar></AppSidebar>
    </div>
    <router-view />
  </div>
</template>

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

export default {
  name: 'HomeView',
  components: {
    AppSidebar
  }
}
</script>
<style scoped>
.main-container{
  position: relative;
    margin: 0 auto;
    width: 100%;
  max-width: 1200px;
  margin-top: 1.66rem;
  display: flex;
}
.index-nav{
  width: 180px;
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    margin-right: 20px;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    border-radius: 4px;
    background-color: var(--juejin-font-white);
    max-height: calc(100vh - 101px);
    overflow-x: hidden;
}
</style>
