<script setup>
import { defineProps, defineEmits, ref } from 'vue'
const props = defineProps({
  src: {
    type: String,
    default:'#'
  },
  label:{
    type: String,
    default:'---------'
  },
  name:{
    type: String,
    default:'-----'
  }

})
</script>

<template>
<div class="item">
  <div class="image">
    <img :src=src alt="">
  </div>
  <div>
      <p>{{label}}</p>
      <p>
        <span>
          {{name}}
        </span>
      </p>
  </div>
</div>
</template>

<style scoped lang="less">
.item{
  width: 417px;
  height: 528px;
  box-shadow: 0px 6px 20.6px 0px #9CA2A240;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  .image{
    display: flex;
    justify-content: center;
    overflow-block: hidden;
    height: 300px;
    align-items: center;
  }
  p{
    text-align: center;
  }
  & p:nth-child(1){
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;
    letter-spacing: 0.06em;
    color: #333333;
  }
  & p:nth-child(2){
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0.06em;
    color: #999999;
    margin-top: 30px;
    span{
      display: inline-block;
      padding: 10px 20px;
      background: #F2F2F2;
      border: 1px solid #FFFFFF;
      border-radius: 69px;
    }
  }

}
</style>
