<template>
  <div class="create-course">
    <div class="create-course-title">创建课程</div>
    <div class="create-course-container">
      <div class="create template">
        <div class="click">
          <div class="plus"></div>
        </div>
        <div class="name">模板库</div>
      </div>
      <div class="create build">
        <div class="click" @click="$router.push('/create_course_step_table')">
          <div class="plus"></div>
        </div>
        <div class="name">新建</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CreateCourse'
};
</script>

<style lang="scss">
@import '~@/styles/mixin';

.create-course {
  @include container;

  padding-top: 88px;

  &-title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
  }

  &-container {
    display: flex;
    justify-content: space-evenly;
    margin-top: 56px;

    .template > .click {
      background-color: #68cefa;
    }

    .build > .click {
      background-color: #5af0e7;
    }

    .create {
      width: 400px;
      height: 300px;
      border: 1px solid #ccc;
      border-radius: 8px;

      .click {
        height: 236px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        cursor: pointer;

        .plus {
          position: absolute;

          &::before {
            content: '';
            display: inline-block;
            width: 28px;
            height: 3px;
            background-color: #fff;
            margin: 0 auto;
            position: relative;
            top: 117px;
            left: 185px;
          }

          &::after {
            @extend ::before;

            transform: translateX(-28px) rotateZ(90deg);
          }
        }
      }

      .name {
        height: 64px;
        line-height: 64px;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
      }
    }
  }
}
</style>
