<template>
  <div class="display-item">
    <el-image :src="url" width="100%" :alt="title" style="height:200px;" lazy fit="fill"/>
    <div class="display-desc">
      <div class="desc-title">
        <span>{{ title }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "CulturalRelicCard",
  props: {
    url: {
      type: String,
      default: "",
    },
    title: {
      type: String,
      default: "",
    },
  },
  methods:{
  }
  
};
</script>

<style lang='scss' scoped>
.display-item {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);

  background-color: #fff;
  margin-right: 10px;
  cursor: pointer;

  img {
    border-radius: 16px 16px 0 0;
  }
  .display-desc {
    padding: 0 16px;
    .desc-title{
      font-size: 18px;
      font-weight: bold;
        padding: 10px 0 20px 0; 
    }
    // .desc-content {
    //   text-indent: 16px;
    //   white-space: nowrap;
    //   overflow: hidden;
    //   text-overflow: ellipsis;
    //   display: block;
    // }
  }
}

::v-deep .el-image {
  height: 350px;
  width: 100%;
  img {
    border-radius: 16px 16px 0 0;
    height: 100%;
    width: 100%;
  }
}
</style>