mirror of
https://github.com/Kisechan/Mainpage.git
synced 2025-07-10 07:07:18 +00:00
添加链接视图并更新路由,移除关于视图,集成 GitHub 贡献图
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
<template>
|
||||
<el-menu mode="horizontal" router>
|
||||
<el-menu-item index="/">首页</el-menu-item>
|
||||
<el-menu-item @click="goToBlog">博客</el-menu-item>
|
||||
<el-menu-item index="/about">关于</el-menu-item>
|
||||
<el-menu mode="horizontal" router class="custom-menu">
|
||||
<!-- 左侧网站名 -->
|
||||
<div class="website-name">
|
||||
<span style="font-weight: bold">Kisechan </span>
|
||||
</div>
|
||||
|
||||
<!-- 右侧导航选项 -->
|
||||
<div class="menu-items">
|
||||
<el-menu-item index="/">首页</el-menu-item>
|
||||
<el-menu-item @click="goToBlog">博客</el-menu-item>
|
||||
<el-menu-item index="/links">链接</el-menu-item>
|
||||
</div>
|
||||
</el-menu>
|
||||
</template>
|
||||
|
||||
@ -13,8 +21,27 @@ const goToBlog = () => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.el-menu {
|
||||
.custom-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.menu-items {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.el-menu--horizontal > .el-menu-item:nth-child(1) {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.el-menu-item {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.website-name {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user