<template>
  <div class="showcase" ref="showcase">
    <div class="showcase_cover"/>
    <div class="show_content">
      <slot></slot>
    </div>
    <div class="showcase_base">
      <div class="showcase_title">{{ $props.title }}</div>
    </div>
  </div>
</template>

<script>

export default {
  name: "Showcase",
  props: {
    title: String,
    mouseHand: {
      type: Boolean,
      default: false
    }
  },
  mounted() {
    this.$refs.showcase.style.cursor = this.$props.mouseHand ? "pointer" : "default"
  }
};
</script>

<style scoped>

.showcase {
  height: 100%;
  background: var(--container-background-color);
  border-radius: 500% / 100%;
  box-shadow: 0 0 30px -2px var(--card-border2-color) inset;
  overflow: hidden;
}

.showcase_cover {
  width: 100%;
  height: 15%;
  border-radius: 50% / 50%;
  background: radial-gradient(#19EBFF66, transparent);
}

.show_content {
  height: 40%;
  width: 100%;
  color: var(--lightblue-text-color);
}

.showcase_base {
  position: relative;
  bottom: 0;
  width: 100%;
  height: 50%;
  background-color: rgba(29, 58, 197, 0.64);
  border-radius: 50% / 15% 15% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase_base::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 30%;
  border-radius: 50% / 50%;
  background: radial-gradient(#19EBFF66, transparent);
}

.showcase_title {
  position: absolute;
  height: 0;
  color: var(--white-text-color);
  font-size: 12px;
  font-family: 黑体, serif;
  font-weight: 700;
  letter-spacing: 0.2rem;
}

</style>
