Skip to content

Commit

Permalink
大量的修改,我们的颜色不再是 Vite 的了
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Cake-jpg committed Aug 12, 2023
1 parent 33d48a2 commit 8b5244a
Show file tree
Hide file tree
Showing 9 changed files with 555 additions and 554 deletions.
7 changes: 4 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default withPwa(
],
},
{ text: "关于我们", link: "/about" },
{ text: "捐赠支持", link: "https://afdian.net/a/Pigeon0v0" },
],

footer: {
Expand All @@ -68,10 +69,10 @@ export default withPwa(
appId: "A163FFFXG6",
apiKey: "a8c4a4fedda9caccaed0b99fa4d7999e",
indexName: "crashmc",
placeholder: "搜索文档",
placeholder: "搜索楞何楞想要得嘢?",
translations: {
button: {
buttonText: "搜索文档",
buttonText: "搜索楞何楞想要得嘢?",
buttonAriaLabel: "搜索文档",
},
modal: {
Expand Down Expand Up @@ -170,7 +171,7 @@ export default withPwa(
sidebarMenuLabel: "菜单",
returnToTopLabel: "返回顶部",
externalLinkIcon: true,
darkModeSwitchLabel: "切换深色模式",
darkModeSwitchLabel: "外观",
},

head: [
Expand Down
8 changes: 4 additions & 4 deletions docs/.vitepress/data/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ const members = [
links: [{ icon: "github", link: "https://github.com/ztsinsun" }],
},
{
avatar: "https://cdn.crashmc.com/https://github.com/Hex-Dragon.png",
name: "Hex Dragon",
title: "文档贡献组织",
links: [{ icon: "github", link: "https://github.com/Hex-Dragon" }],
avatar: "https://cdn.crashmc.com/https://github.com/LTCatt.png",
name: "龙腾猫跃",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/LTCatt" }],
},
]

Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/Contributors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getAvatarUrl(name: string) {
return `https://cdn.crashmc.com/https://github.com/${name}.png`
}
function getGithubLink(name: string) {
return `https://cdn.crashmc.com/https://github.com/${name}`
return `https://github.com/${name}`
}
function isNotEmpty(arr: string | string[]) {
return Array.isArray(arr) && arr.length
Expand Down
50 changes: 32 additions & 18 deletions docs/.vitepress/theme/components/ReloadPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,39 @@ onBeforeMount(async () => {
<style>
.pwa-toast {
position: fixed;
right: 0;
bottom: 0;
margin: 16px;
padding: 12px;
border: 1px solid #8885;
border-radius: 4px;
z-index: 100;
text-align: left;
box-shadow: 3px 4px 5px 0 #8885;
--c-divider: var(--vp-c-divider-light);
}
.pwa-toast #pwa-message {
margin-bottom: 8px;
.pwa-toast .pwa-refresh {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-bg);
}
.pwa-toast button {
border: 1px solid #8885;
outline: none;
margin-right: 5px;
border-radius: 2px;
padding: 3px 10px;
.pwa-toast .pwa-refresh:hover {
border-color: var(--vp-button-brand-hover-border);
color: var(--vp-button-brand-hover-text);
background-color: var(--vp-button-brand-hover-bg);
}
.pwa-toast .pwa-refresh:active {
border-color: var(--vp-button-brand-active-border);
color: var(--vp-button-brand-active-text);
background-color: var(--vp-button-brand-active-bg);
}
.pwa-toast .pwa-cancel {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-bg);
}
.pwa-toast .pwa-cancel:hover {
border-color: var(--vp-button-alt-hover-border);
color: var(--vp-button-alt-hover-text);
background-color: var(--vp-button-alt-hover-bg);
}
.pwa-toast .pwa-cancel:active {
border-color: var(--vp-button-alt-active-border);
color: var(--vp-button-alt-active-text);
background-color: var(--vp-button-alt-active-bg);
}
.dark .pwa-toast {
--pwa-divider: var(--vp-c-divider-dark-1);
}
</style>
18 changes: 9 additions & 9 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
* -------------------------------------------------------------------------- */

:root {
--vp-c-brand: #646cff;
--vp-c-brand-light: #747bff;
--vp-c-brand-lighter: #9499ff;
--vp-c-brand-lightest: #bcc0ff;
--vp-c-brand-dark: #535bf2;
--vp-c-brand-darker: #454ce1;
--vp-c-brand: #f7a40c;
--vp-c-brand-light: #f7ae34;
--vp-c-brand-lighter: #f7c361;
--vp-c-brand-lightest: #f7d596;
--vp-c-brand-dark: #d7910e;
--vp-c-brand-darker: #d08700;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
}

Expand Down Expand Up @@ -41,13 +41,13 @@
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#bd34fe 30%,
#41d1ff
#f7a40c 30%,
#4199b7
);

--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#f7a40c 50%,
#47caff 50%
);
--vp-home-hero-image-filter: blur(40px);
Expand Down
6 changes: 2 additions & 4 deletions docs/analyzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ import Analyzer from './.vitepress/theme/components/Analyzer.vue'
---

:::tip 帮助

- 如分析模块长时间未响应请刷新页面重试。
- 如果分析工具提供的解决方案无效,或者本工具还未收录您遇到的错误时,请在页面下方留言。
- 本工具仍在起步阶段,我们会不断优化用户体验。
:::
:::

:::warning 隐私声明

- 所有文件的分析仅会在本地进行,仅会有部分错误信息被上传到云端。
:::
:::

---
14 changes: 12 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@ features:
details: 由多位长期分析崩溃的专业志愿者提供解决方案,文档涉及各个方面
- title: 开放
icon: 🚪
details: 有任何改进建议都可以提交 Pull Requests
details: 有任何改进建议都可以提交 Pull Requests 与我们共建
link: /contribute/contributing.html
linkText: 作出贡献
- title: 快速
icon: 🚀
details: 基于 VitePress,页面加载速度更快,性能更好
details: 文档使用基于 Vite 和 Vue 的 VitePress 构建,页面加载速度更快、性能更好
- title: 离线
icon: 🔌
details: 得益于 PWA(渐进式网页应用)技术,即使没有网络也可以查阅
- title: 周到
icon: 🫡
details: 我们知道只有冗长的文档还不够,因此我们准备了一个分析工具给大家
link: /analyzer.html
linkText: 开始使用

title: CrashMC
titleTemplate: 为一般玩家编写的 Minecraft 崩溃分析指南
Expand Down
19 changes: 8 additions & 11 deletions docs/src/logo-upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8b5244a

Please sign in to comment.