This commit is contained in:
2025-03-03 19:59:03 +08:00
parent 42cbc98394
commit 20f211ce23
7 changed files with 182 additions and 67 deletions

View File

@ -0,0 +1,51 @@
<template>
<el-footer class="app-footer">
<div class="social-links">
<a v-for="item in socialLinks" :key="item.name" :href="item.url" target="_blank">
<el-icon :size="24">
<component :is="item.icon" />
</el-icon>
</a>
</div>
<div class="copyright">
<p>2024 - 2025 Kisechan</p>
</div>
</el-footer>
</template>
<script setup>
const socialLinks = [
{ name: 'github', icon: 'Github', url: 'https://github.com' },
{ name: 'email', icon: 'Message', url: 'mailto:your@email.com' }
]
</script>
<style scoped>
.app-footer {
background: #f5f7fa;
text-align: center;
padding: 2rem;
margin-top: auto;
}
.social-links {
margin-bottom: 1rem;
}
.social-links a {
margin: 0 10px;
color: #606266;
transition: color 0.3s;
}
.social-links a:hover {
color: #409eff;
}
.copyright p {
margin: 5px 0;
font-size: 0.9rem;
color: #909399;
}
</style>

30
src/components/NavBar.vue Normal file
View File

@ -0,0 +1,30 @@
<template>
<el-menu
mode="horizontal"
:router="true"
class="nav-menu"
:default-active="$route.path"
>
<el-menu-item index="/">主页</el-menu-item>
<el-menu-item>
<a href="https://blog.kisechan.space/" target="_blank">博客</a>
</el-menu-item>
<el-menu-item index="/about">关于</el-menu-item>
</el-menu>
</template>
<style scoped>
.nav-menu {
border-bottom: none !important;
height: 60px;
}
.el-menu-item {
font-size: 16px;
}
a {
text-decoration: none;
color: inherit;
}
</style>