<template>
  <div class="start-question">
    <div class="name">{{ shareRecord.name }}</div>
    <div class="memo">{{ shareRecord.memo }}</div>
    <hr class="hr" />
    <div class="prompt">
      <div>
        本练习题共{{ questionLength }}题，限时{{
          answerTimeLimitMinute
        }}分钟点击“开始答题”按钮进行作答，作答完毕后请点击“提交”按钮。
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'StartQuestion',
  props: {
    shareRecord: {
      type: Object,
      required: true,
    },
    questionLength: {
      type: Number,
      default: 0,
    },
    answerTimeLimitMinute: {
      type: Number,
      default: 30,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.start-question {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 245px);
  min-height: 400px;
  padding: 24px 40px;
  background: #f7f7f7;
  border-radius: 4px;

  .name {
    font-size: 32px;
    font-weight: bold;
    color: $light-main-color;
  }

  .memo {
    font-size: 24px;
  }

  .hr {
    width: 600px;
    border: none;
    border-top: 1px solid #ebebeb;
  }

  .prompt {
    font-weight: bold;
    color: $light-main-color;
    text-align: center;
  }
}
</style>
