Skip to content

Commit 1f6fe11

Browse files
author
yike.liang
committed
update style
1 parent 4d8e810 commit 1f6fe11

File tree

7 files changed

+51
-29
lines changed

7 files changed

+51
-29
lines changed

src/.vuepress/navbar.ts

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
import { navbar } from "vuepress-theme-hope";
22

33
export default navbar([
4-
"/",
5-
// "/portfolio",
6-
"/demo/",
7-
{
8-
text: "指南",
9-
icon: "lightbulb",
10-
prefix: "/guide/",
11-
children: [
12-
{
13-
text: "Bar",
14-
icon: "lightbulb",
15-
prefix: "bar/",
16-
children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
17-
},
18-
{
19-
text: "Foo",
20-
icon: "lightbulb",
21-
prefix: "foo/",
22-
children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
23-
},
24-
],
25-
},
4+
{ text: "Java面试", icon: "java", link: "/home.md" },
5+
// "/",
6+
// "/portfolio", // 档案
7+
// "/demo/", // 功能演示
8+
// {
9+
// text: "指南",
10+
// icon: "lightbulb",
11+
// prefix: "/guide/",
12+
// children: [
13+
// {
14+
// text: "Bar",
15+
// icon: "lightbulb",
16+
// prefix: "bar/",
17+
// children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
18+
// },
19+
// {
20+
// text: "Foo",
21+
// icon: "lightbulb",
22+
// prefix: "foo/",
23+
// children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
24+
// },
25+
// ],
26+
// },
2627
{
2728
text: "简历求职",
2829
prefix: "/work/",

src/.vuepress/sidebar.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { sidebar } from "vuepress-theme-hope";
22

33
export default sidebar({
44
"/": [
5-
"",
6-
"portfolio",
5+
// "portfolio", // 侧边栏档案主业
76
{
87
text: "案例",
98
icon: "laptop-code",

src/.vuepress/styles/config.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 主题颜色 #2196f3, #f26d6d, #3eaf7c, #fb9b5f;
2-
$theme-color: #096dd9;
1+
// 主题颜色 #2196f3, #f26d6d, #3eaf7c, #fb9b5f; #096dd9
2+
$theme-color: #3eaf7c;

src/.vuepress/styles/index.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
// place your custom styles here
2+
/* 设置导航栏链接字体为粗体 */
3+
.navbar .nav-links a {
4+
font-weight: bold !important;
5+
}
6+
7+
/* 若需要调整导航栏标题(如左上角标题) */
8+
.navbar .site-name {
9+
font-weight: bold !important;
10+
}
11+
12+
.vp-navbar .auto-link.route-link-active {
13+
font-weight: bold !important;
14+
}

src/.vuepress/styles/palette.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// you can change colors here
2+

src/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
home: true
33
icon: house
4-
title: 主页
5-
heroImage: https://theme-hope-assets.vuejs.press/logo.svg
4+
title: Java 面试
5+
heroImage: /logo.svg
66
bgImage: https://theme-hope-assets.vuejs.press/bg/6-light.svg
77
bgImageDark: https://theme-hope-assets.vuejs.press/bg/6-dark.svg
88
bgImageStyle:
@@ -12,7 +12,7 @@ tagline: 好好学 Java, Java求职面试必备知识。
1212
actions:
1313
- text: 开始阅读
1414
icon: lightbulb
15-
link: ./demo/
15+
link: /home.md
1616
type: primary
1717

1818
- text: Github →

src/home.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
icon: home
3+
title: Java面试
4+
---
5+
6+
::: tip 友情提示
7+
可按顺序食用,也可以按需查缺补漏。
8+
:::

0 commit comments

Comments
 (0)