<template>
  <div class="display-item">
    <img src="@/assets/imgs/display2.png" width="100%" :alt="title" />
    <div class="display-desc">
      <div class="desc-title">
        <h4>{{ title }}</h4>
      </div>
      <div class="desc-time">
        <span>{{ time }}</span>
      </div>
      <a class="desc-content" :alt="content">
        {{ content }}
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "CulturalRelicCard",
  props: {
    img: {
      type: String,
      default: "",
    },

    title: {
      type: String,
      default: "",
    },
    time: {
      type: String,
      default: "",
    },
    content: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang='scss' scoped>
.display-item {
  width: 330px;
  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;
    }
  }
  .display-source {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }
}
</style>