auto_score/AES-front/src/views/user/index.vue

126 lines
2.9 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<CommonPage show-footer :show-header="false">
<!-- 整个页面外层container -->
<div class="container">
<!-- 测试标题 -->
<p id="indexTitle" class="lead">在线报告评测系统(首页)</p>
<!-- 图片和文字说明的外层容器 -->
<div class="index-content">
<!-- 图片 -->
<div class="index-left-div">
<img src="@/assets/images/index.jpg" alt="首页图片" class="shadow-img" />
</div>
<!-- 文字说明 -->
<div class="index-right-div">
<router-link to="/user/exam-list" class="index-right-line1">点击进入作业</router-link>
<router-link to="/user/take-class" class="index-right-line2">点击加入班级</router-link>
<router-link to="/user/faq" class="index-right-line3">点击查看帮助</router-link>
</div>
</div>
</div>
</CommonPage>
</template>
<style scoped>
#indexTitle {
font-size: 48px;
letter-spacing: 10px;
text-align: center;
padding-top: 50px;
padding-bottom: 40px;
color: #4e627a;
}
#index-content {
margin-left: auto;
margin-right: auto;
width: 800px;
height: 350px;
}
.index-left-div {
width: 495px;
height: 273px;
float: left;
}
.index-left-div img {
border-radius: 5px;
}
.index-right-div {
margin-left: 80px;
font-size: 18px;
height: 273px;
float: left;
}
.index-right-div p {
color: #4e627a;
}
.index-right-line1 {
padding-top: 70px;
}
.index-right-line2 {
padding-top: 20px;
}
.index-right-line3 {
padding-top: 20px;
}
.index-right-div a {
color: rgb(30, 208, 225);
}
img.shadow-img {
width: auto;
height: auto;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
border: 0px;
display: block;
outline: none;
}
/* 图片和文字说明的外层容器样式 */
.index-content {
display: flex;
align-items: center; /* 垂直对齐图片和文字 */
justify-content: space-between;
margin-left: auto;
margin-right: auto;
width: 800px;
}
/* 文字说明样式 */
.index-right-div {
margin-left: 35px;
width: 400px;
}
/* 修改文字说明样式,添加悬停效果 */
.index-right-div a {
color: #4e627a;
text-decoration: none;
transition: color 0.3s ease; /* 颜色变换过渡效果 */
display: block;
padding-top: 38px;
white-space: nowrap; /* 防止文字换行 */
}
/* 鼠标悬停时的样式 */
.index-right-div a:hover {
color: rgb(25, 157, 168); /* 鼠标悬停时的颜色 */
cursor: pointer; /* 鼠标指针变为指针形状 */
}
.container {
background-image: url('@/assets/images/login_bg.webp'); /* 设置背景图片 */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
width: 100%;
}
</style>