<script setup lang="ts">
import router from "@/router/index.js";

const startStudy = () => {
  router.push("/study");
};

const startReview = () => {
  router.push("/review");
};
</script>
<template>
  <el-container class="container">
    <el-header class="header">
<!--      <div class="marquee-wrapper">-->
<!--        <div class="marquee-content">-->
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
<!--        </div>-->
<!--      </div>-->
    </el-header>


    <el-main>
      <el-row :gutter="20">
        <el-col :span="18">
          <el-card class="progress-card" shadow="always">
            <div class="progress-text">学习进度总揽</div>
          </el-card>
        </el-col>

        <el-col :span="3">
          <div class="button-group">
            <el-button type="success" size="large" @click="startStudy" plain>开始学习</el-button>
            <el-button type="primary" size="large" @click="startReview" plain>开始复习</el-button>
          </div>
        </el-col>
      </el-row>
    </el-main>
  </el-container>
</template>

<style scoped>
*{
  margin: 0px;
  /*padding: 0;*/
}
.container {
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.header {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #ebeef5;
  padding: 20px;
}

.progress-card {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-text {
  font-size: 18px;
  color: #333;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 80px;
  align-items: center;
}
.button-group .el-button {
  margin-left: 0;
}


 /*滚动样式*/
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 40px;
}

.marquee-content {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-left 15s linear infinite;
  font-size: 16px;
  font-weight: bold;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
</style>
