diff --git a/docs/docusaurus/dns.md b/docs/docusaurus/dns.md index 286fbb7..aa60341 100644 --- a/docs/docusaurus/dns.md +++ b/docs/docusaurus/dns.md @@ -14,7 +14,7 @@ sidebar_position: 4 提交后会在根目录生成CNAME文件,将该文件挪至static下面,构建静态页面时会自动复制到根目录。 -在dns中将目标子域名cname解析到你的仓库github pages。例如我计划使用`www.friesport.ac.cn`作为目标域名,则需要将子域名`www`用cname方法解析到仓库的github pages页面`friesport.github.io/fries-port-website` +在dns中将目标子域名cname解析到你的仓库github pages。例如我计划使用`www.friesport.ac.cn`作为目标域名,则需要将子域名`www`用cname方法解析到仓库的github pages域名`friesport.github.io` ## 参考文献 diff --git a/docs/feat.md b/docs/feat.md index 3d19f75..081b3f4 100644 --- a/docs/feat.md +++ b/docs/feat.md @@ -4,4 +4,6 @@ sidebar_position: 1 # 待办 - [ ] 部署storj节点 -- [ ] https://storj.dev/node/get-started/port-forwarding \ No newline at end of file +- [ ] https://storj.dev/node/get-started/port-forwarding +- [ ] 调整网站颜色红色#ea5a47,黄色#fcea2b +- [ ] \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index d947507..a21ca03 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -46,7 +46,7 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/FriesPort/fries-port-website/tree/main', }, blog: { showReadingTime: true, @@ -57,7 +57,7 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/FriesPort/fries-port-website/tree/main', // Useful options to enforce blogging best practices onInlineTags: 'warn', onInlineAuthors: 'warn', diff --git a/package-lock.json b/package-lock.json index 6565166..0044e61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "fries-port-website", "version": "0.0.0", "dependencies": { + "@ant-design/colors": "^7.1.0", "@docusaurus/core": "3.6.1", "@docusaurus/preset-classic": "3.6.1", "@mdx-js/react": "^3.0.0", @@ -387,6 +388,14 @@ "node": ">=6.0.0" } }, + "node_modules/@ant-design/colors": { + "version": "7.1.0", + "resolved": "https://registry.npmmirror.com/@ant-design/colors/-/colors-7.1.0.tgz", + "integrity": "sha512-MMoDGWn1y9LdQJQSHiCC20x3uZ3CwQnv9QMz6pCmJOrqdgM9YxsoVVY0wtrdXbmfSgnV0KNk6zi09NAhMR2jvg==", + "dependencies": { + "@ctrl/tinycolor": "^3.6.1" + } + }, "node_modules/@babel/code-frame": { "version": "7.26.2", "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.26.2.tgz", @@ -1991,6 +2000,14 @@ "node": ">=0.1.90" } }, + "node_modules/@ctrl/tinycolor": { + "version": "3.6.1", + "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", + "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", + "engines": { + "node": ">=10" + } + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmmirror.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", diff --git a/package.json b/package.json index 967887a..cc27d52 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { + "@ant-design/colors": "^7.1.0", "@docusaurus/core": "3.6.1", "@docusaurus/preset-classic": "3.6.1", "@mdx-js/react": "^3.0.0", diff --git a/src/css/custom.css b/src/css/custom.css index 2bc6a4c..b1ed9f7 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -5,7 +5,7 @@ */ /* You can override the default Infima variables here. */ -:root { +/* :root { --ifm-color-primary: #2e8555; --ifm-color-primary-dark: #29784c; --ifm-color-primary-darker: #277148; @@ -15,11 +15,23 @@ --ifm-color-primary-lightest: #3cad6e; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); -} +} */ +/* https://ant-design.antgroup.com/docs/spec/colors-cn */ +:root { + --ifm-color-primary: #faad14; + --ifm-color-primary-dark: #29784c; + --ifm-color-primary-darker: #277148; + --ifm-color-primary-darkest: #205d3b; + --ifm-color-primary-light: #33925d; + --ifm-color-primary-lighter: #359962; + --ifm-color-primary-lightest: #3cad6e; + --ifm-code-font-size: 95%; + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); +} /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-color-primary: #25c2a0; + --ifm-color-primary: #faad14; --ifm-color-primary-dark: #21af90; --ifm-color-primary-darker: #1fa588; --ifm-color-primary-darkest: #1a8870; diff --git a/src/pages/index.js b/src/pages/index.js index 0add728..dca02fd 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -19,7 +19,7 @@ function HomepageHeader() {