<template>
  <div class="personal">
    <div class="content-wrapper">
      <div class="title wow animate__animated animate__fadeInLeft">个人中心</div>
      <div class="bottom-line wow animate__animated animate__fadeInLeft"></div>
      <div class="main">
        <el-tabs :tab-position="'left'" type="card" class="wrapper">
          <el-tab-pane label="我的点赞">
            <Like />
          </el-tab-pane>
          <el-tab-pane label="我的收藏">
            <Collection />
          </el-tab-pane>
          <el-tab-pane label="浏览记录">
            <Footprint />
          </el-tab-pane>
          <el-tab-pane label="个人信息"><Info /></el-tab-pane>
        </el-tabs>
      </div>
    </div>
  </div>
</template>

<script>
import Like from "./components/Like.vue";
import Collection from "./components/Collection.vue";
import Footprint from "./components/Footprint.vue";
import Info from "./components/Info.vue";
export default {
  components: {
    Like,
    Collection,
    Footprint,
    Info,
  },
  name: "Personal",
  data() {
    return {
      list: ["我的点赞", "我的收藏", "浏览记录", "个人信息"],
    };
  },
  methods: {
    handleSizeChange(value) {
      console.log("handleSizeChange", value);
    },
    handleCurrentChange(value) {
      console.log("handleCurrentChange", value);
    },
  },
};
</script>

<style lang='scss' scoped>
$blue: #2069c4;
.personal {
  // width: 1200px;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  background-color: #fff;
  .content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 0;
    width: 1200px;

    .title {
      font-family: KaiTi;
      font-size: 44px;
      margin-bottom: 16px;
    }
    .bottom-line {
      width: 50px;
      background-color: #b8b8b8;
      height: 2px;
      margin-bottom: 40px;
    }
    .main {
      width: 100%;
    }
  }
}
::v-deep {
  .el-tabs__header .is-left {
    width: 200px;
    border: none;
  }
}
::v-deep {
  .el-tabs--left.el-tabs--card .el-tabs__item.is-left {
    color: #333;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    border: none;
  }
}
::v-deep {
  .el-tabs--left.el-tabs--card .el-tabs__item.is-active:not(.is-top) {
    background-color: #eeeeee;
    color: $blue;
    font-weight: bold;
  }
}

::v-deep .el-tabs__active-bar {
  background-color: #2069c4;
}

::v-deep {
  .el-tabs__item:hover,
  .el-tabs__item.is-active {
    color: #2069c4;
  }
}
::v-deep .el-descriptions {
  margin-left: 30px;
}
</style>