自动更新管控端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

104 lines
1.6 KiB

<template>
<div id="app">
<div class="hdbox">
<div class="logobox">
<img alt="afvue" class="logo" src="@/assets/logo.svg" width="80" />
</div>
<div class="mebox">
<nav>
<router-link to="/">首页</router-link>
<router-link to="/compare">代码对比</router-link>
<router-link to="/setting">系统设置</router-link>
</nav>
</div>
</div>
<!--详细内容 -->
<router-view />
</div>
</template>
<style scoped>
header {
line-height: 1.5;
/* max-height: 100vh; */
}
.hdbox {
width: 1200px;
height: 120px;
}
.logo {
display: block;
margin: 0 auto 2rem;
}
.logobox {
width: 600px;
height: 120px;
display: block;
float: left;
padding: 20px;
}
.mebox {
float: left;
width: 580px;
height: 120px;
margin-left: 20px;
}
nav {
width: 100%;
font-size: 12px;
text-align: center;
margin-top: 2rem;
}
nav a.router-link-exact-active {
color: var(--color-text);
}
nav a.router-link-exact-active:hover {
background-color: transparent;
}
nav a {
display: inline-block;
padding: 0 1rem;
border-left: 1px solid var(--color-border);
}
nav a:first-of-type {
border: 0;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
nav {
text-align: left;
margin-left: -1rem;
font-size: 1rem;
padding: 1rem 0;
margin-top: 1rem;
}
}
</style>