index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div class="create-course">
  3. <div class="create-course-title">创建课程</div>
  4. <div class="create-course-container">
  5. <div class="create template">
  6. <div class="click">
  7. <div class="plus"></div>
  8. </div>
  9. <div class="name">模板库</div>
  10. </div>
  11. <div class="create build">
  12. <div class="click" @click="$router.push('/create_course_step_table')">
  13. <div class="plus"></div>
  14. </div>
  15. <div class="name">新建</div>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'CreateCourse'
  23. };
  24. </script>
  25. <style lang="scss">
  26. @import '~@/styles/mixin';
  27. .create-course {
  28. @include container;
  29. padding-top: 88px;
  30. &-title {
  31. width: 100%;
  32. text-align: center;
  33. font-size: 24px;
  34. font-weight: 700;
  35. }
  36. &-container {
  37. display: flex;
  38. justify-content: space-evenly;
  39. margin-top: 56px;
  40. .template > .click {
  41. background-color: #68cefa;
  42. }
  43. .build > .click {
  44. background-color: #5af0e7;
  45. }
  46. .create {
  47. width: 400px;
  48. height: 300px;
  49. border: 1px solid #ccc;
  50. border-radius: 8px;
  51. .click {
  52. height: 236px;
  53. border-top-left-radius: 8px;
  54. border-top-right-radius: 8px;
  55. cursor: pointer;
  56. .plus {
  57. position: absolute;
  58. &::before {
  59. content: '';
  60. display: inline-block;
  61. width: 28px;
  62. height: 3px;
  63. background-color: #fff;
  64. margin: 0 auto;
  65. position: relative;
  66. top: 117px;
  67. left: 185px;
  68. }
  69. &::after {
  70. @extend ::before;
  71. transform: translateX(-28px) rotateZ(90deg);
  72. }
  73. }
  74. }
  75. .name {
  76. height: 64px;
  77. line-height: 64px;
  78. font-size: 20px;
  79. font-weight: 700;
  80. text-align: center;
  81. }
  82. }
  83. }
  84. }
  85. </style>