2025-03-03 19:59:03 +08:00
|
|
|
<template>
|
2025-03-05 10:12:08 +08:00
|
|
|
<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>
|
2025-03-04 11:11:24 +08:00
|
|
|
</el-menu>
|
|
|
|
</template>
|
|
|
|
|
2025-03-04 11:39:37 +08:00
|
|
|
<script setup>
|
2025-03-05 08:45:31 +08:00
|
|
|
const goToBlog = () => {
|
|
|
|
window.open("https://blog.kisechan.space", "_blank");
|
|
|
|
};
|
2025-03-04 11:39:37 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2025-03-05 10:12:08 +08:00
|
|
|
.custom-menu {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-items {
|
2025-03-04 11:39:37 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2025-03-05 10:12:08 +08:00
|
|
|
|
|
|
|
.el-menu--horizontal > .el-menu-item:nth-child(1) {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-menu-item {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.website-name {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
2025-03-05 08:45:31 +08:00
|
|
|
</style>
|