Skip to content

Commit bbb5423

Browse files
committed
update docs
1 parent ae51885 commit bbb5423

2 files changed

Lines changed: 27 additions & 10 deletions

File tree

docs/.vuepress/layouts/Layout.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const showSidebarSponsorOnAsideTop = computed(() => frontmatter.value.sponsor_si
2121
<BannerTop />
2222
</div>
2323
</template>
24+
<template #nav-bar-content-after>
25+
<div>
26+
<button class="login-button">
27+
<a href="https://fba.wu-clan.site/">登录</a>
28+
</button>
29+
</div>
30+
</template>
2431
<template #sidebar-nav-before>
2532
<div class="custom-content">
2633
<SponsorSidebar />
@@ -56,4 +63,24 @@ const showSidebarSponsorOnAsideTop = computed(() => frontmatter.value.sponsor_si
5663
.custom-content {
5764
width: 100%;
5865
}
66+
67+
.login-button {
68+
height: 32px;
69+
padding: 0 12px;
70+
margin-left: 16px;
71+
font-weight: 500;
72+
color: #FFFFF5DB;
73+
background-color: var(--vp-c-brand-1);
74+
border: none;
75+
border-radius: 8px;
76+
}
77+
78+
@media (max-width: 768px) {
79+
.login-button {
80+
height: 28px;
81+
padding: 0 10px;
82+
margin-left: 8px;
83+
font-size: 13px;
84+
}
85+
}
5986
</style>

docs/.vuepress/navbar.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ export const myNavbar: ThemeNavItem[] = defineNavbarConfig([
44
{
55
text: 'v1.12.3',
66
items: [
7-
{
8-
text: '在线体验',
9-
items: [
10-
{
11-
text: 'Vben UI',
12-
icon: 'iconoir:www',
13-
link: 'https://fba.wu-clan.site/',
14-
},
15-
]
16-
},
177
{
188
text: '后端',
199
items: [

0 commit comments

Comments
 (0)