<template>
  <div class="root">
    <div class="header">
      <img class="logo" src="../assets/imgs/logo.png" alt="logo" />
      <h2>政务·渝路智管</h2>
    </div>
    <div class="content">
      <div class="content-leftbar">
        <MenuBar></MenuBar>
      </div>
      <div class="content-main">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup>
import MenuBar from "../component/MenuBar/index.vue";
</script>

<style lang="scss" scoped>
.root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.header {
  height: 64px;
  width: 100%;
  background-image: url("../assets/imgs/header.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  .logo {
    width: 42px;
    height: 42px;
    margin-left: 16px;
    margin-right: 16px;
  }
}
.content {
  height: calc(100% - 64px);
  width: 100%;
  display: flex;
}
.content-leftbar {
  width: 248px;
  height: 100%;
  background-image: url("../assets/imgs/menu.png");
  background-size: cover;
  background-position: center;
}
.content-main {
  width: calc(100% - 248px);
  height: 100%;
}
</style>