
<template>
  <div class="contentBox py-10 px-3">
    <div class="d-flex align-center justify-center">
      <div class="home-title">
        优选集团
        <div class="home-title-line"></div>
      </div>
    </div>

    <div no-gutters class="mt-5 d-flex flex-wrap" style="width: 100%;">
      <v-card v-for="(k, i) in list" :key="i" class="col-item" @click="handleOpen">
        <v-img :src="k.url"/>
      </v-card>
    </div>
  </div>
</template>

<script setup>
defineOptions({ name: 'advertisementPage'})

const list = [
  { url: 'https://minio.citupro.com/dev/menduner/preferredGroup/MARRIOTT.jpg' },
  { url: 'https://minio.citupro.com/dev/menduner/preferredGroup/IHG.jpg' },
  { url: 'https://minio.citupro.com/dev/menduner/preferredGroup/Yifei.jpg' }
]

const handleOpen = () => {
  const id = 1
  window.open(`/recruit/personal/advertisement/introduce/${id}`)
}
</script>

<style scoped lang="scss">
.contentBox {
  border-radius: 8px;
}
.link {
  top: 10px;
  position: relative;
  width: 100px;
  height: 1px;
  display: inline-block;
  background-image: linear-gradient(170deg, #00897B, rgba(255, 133, 0, 0));
  &::before {
    width: 4px;
    height: 4px;
    background: var(--v-primary-base);
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
  }
  &:first-child::before {
    left: 0;
  }
}
.col-item {
  cursor: pointer;
  width: calc((100% - 24px) / 3);
  min-width: calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  margin: 0 12px 12px 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  &:nth-child(3n) {
    margin-right: 0;
  }
  &:hover {
    box-shadow: 0 16px 40px 0 rgba(153, 153, 153, .3);
  }
}
</style>
