<template>
  <div class="display-item">
    <img :src="url" width="100%" :alt="title" height="200px"/>
    <div class="display-desc">
      <div class="desc-title">
        <h4>{{ title }}</h4>
      </div>
    </div>
  </div>
</template>

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

<style lang='scss' scoped>
.display-item {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 0 32px 0;
  background-color: #fff;
  margin-right: 10px;
  cursor: pointer;
  img {
    border-radius: 16px 16px 0 0;
  }
  .display-desc {
    padding: 0 16px;
    .desc-content {
      text-indent: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
    }
  }
}
</style>