85 lines
1.6 KiB
Vue
85 lines
1.6 KiB
Vue
<template>
|
|
<div class="home">
|
|
<div class="top">
|
|
<div class="content">
|
|
<h1 class="biaoti">一对一系列课</h1>
|
|
<p class="word">量身订制轻松学</p>
|
|
</div>
|
|
<div class="right"></div>
|
|
</div>
|
|
|
|
<div class="navs">
|
|
<div class="nav-item">
|
|
<img src="../static/img/icon.png">
|
|
<p>名师推荐</p>
|
|
</div>
|
|
<div class="nav-item">
|
|
<img src="../static/img/icon.png">
|
|
<p>订阅专栏</p>
|
|
</div>
|
|
<div class="nav-item">
|
|
<img src="../static/img/icon.png">
|
|
<p>我的收藏</p>
|
|
</div>
|
|
<div class="nav-item">
|
|
<img src="../static/img/icon.png">
|
|
<p>下载管理</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
name: 'Home',
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.home{
|
|
height: 100vh;
|
|
background:#F5F5F5;
|
|
.top{
|
|
width: 100%;
|
|
background: #5677FF;
|
|
padding-top:125px;
|
|
padding-bottom: 93px;
|
|
position: relative;
|
|
.content{
|
|
color:white;
|
|
font-size:49px;
|
|
margin-left: 118px;
|
|
.biaoti{
|
|
font-size:67px ;
|
|
margin-bottom: 41px;
|
|
}
|
|
}
|
|
|
|
.right{
|
|
width: 268px;
|
|
height: 277px;
|
|
background: gold;
|
|
position:absolute;
|
|
right:0;
|
|
bottom: 0;
|
|
}
|
|
|
|
}
|
|
|
|
.navs{
|
|
width: 900px;
|
|
height: 180px;
|
|
background: white;
|
|
margin:0 auto;
|
|
margin-top: 20px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
</style>
|