<template>
  <div>
    <div class="resume d-flex">
      <div v-for="val in resumeList" :key="val.title" class="topping white-bgc radius">
        <v-icon color="primary">{{ val.icon }}</v-icon>
        <div class="ml-1">
          <div class="title-text">{{ val.title }}</div>
          <div class="tip-text">{{ val.desc }}</div>
        </div>
      </div>
    </div>
    <div class="attachment white-bgc radius mt-3">
      <div>
        <span class="title">附件简历</span>
        <span class="more-text">最多上传5份</span>
        <span class="upload--text">上传</span>
      </div>
      <div class="d-flex attachment-item my-2 cursor-pointer" v-for="(k, i) in attachmentList" :key="i">
        <v-icon color="primary">mdi-file-account</v-icon>
        <div class="file-name ellipsis ml-2">{{ k.file_name }}</div>
        <v-icon class="ml-8" color="error">mdi-trash-can-outline</v-icon>
      </div>
      <div class="border-bottom-dashed my-3"></div>
      <div class="last-update">最后更新于2024-05-23 12:20:25</div>
    </div>
  </div>
</template>

<script setup>
defineOptions({ name: 'personal-center-right'})

const resumeList = [
  { icon: 'mdi-upload', title: '置顶简历', desc: '增加更多曝光度' },
  { icon: 'mdi-refresh', title: '刷新简历', desc: '提升简历活跃度' }
]
const attachmentList = [
  { file_name: '陈芊芊-Web前端开发工程师-15425236412' },
  { file_name: '陈芊芊-Web前端开发工程师-15425236412' },
  { file_name: '陈芊芊-Web前端开发工程师-15425236412' },
  { file_name: '陈芊芊-Web前端开发工程师-15425236412' },
  { file_name: '陈芊芊-Web前端开发工程师-15425236412' }
]
</script>

<style scoped lang="scss">
.radius {
  border-radius: 8px
}
.title {
  font-weight: 600;
  font-size: 17px;
}
.resume {
  width: 100%;
  .topping {
    display: flex;
    align-items: center;
    width: 50%;
    height: 60px;
    padding: 12px;
    margin-right: 12px;
    cursor: pointer;
    &:nth-child(2n) {
      margin-right: 0;
    }
    .tip-text {
      font-size: 12px;
      color: #666;
    }
    .title-text {
      font-weight: 600;
      &:hover {
        color: var(--v-primary-base);
      }
    }
  }
}
.attachment {
  padding: 12px;
  .more-text {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
  }
  .upload--text {
    float: right;
    color: var(--v-primary-base);
    font-size: 12px;
  }
  .last-update {
    font-size: 12px;
    color: #666;
  }
  .attachment-item {
    color: #555;
    font-size: 14px;
    .file-name {
      width: 180px;
      &:hover {
        color: var(--v-primary-base);
      }
    }
  }
}
</style>
