From 48cac12788dbb8d9ca3f493770cd0d478a13d02b Mon Sep 17 00:00:00 2001 From: weiguowang112 <125230189+weiguowang112@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:42:31 +0800 Subject: [PATCH] optimize: optimize blog and button (#388) --- README.md | 10 +++++----- blog/2019-05-28-first-blog-post.md | 1 - blog/2019-05-29-long-blog-post.md | 1 - blog/2021-08-01-mdx-blog-post.mdx | 1 - blog/download.md | 1 - i18n/en/docusaurus-plugin-content-blog/download.md | 7 ------- i18n/zh-cn/docusaurus-plugin-content-blog/download.md | 7 ------- src/components/button/index.scss | 2 ++ src/pages/home/top/index.scss | 2 +- 9 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 blog/2019-05-28-first-blog-post.md delete mode 100644 blog/2019-05-29-long-blog-post.md delete mode 100644 blog/2021-08-01-mdx-blog-post.mdx delete mode 100644 blog/download.md delete mode 100644 i18n/en/docusaurus-plugin-content-blog/download.md delete mode 100644 i18n/zh-cn/docusaurus-plugin-content-blog/download.md diff --git a/README.md b/README.md index aaba2fa1e16..dec31d585ac 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern sta ### Installation ``` -$ yarn +$ npm ``` ### Local Development ``` -$ yarn start +$ npm start ``` This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. @@ -19,7 +19,7 @@ This command starts a local development server and opens up a browser window. Mo ### Build ``` -$ yarn build +$ npm run build ``` This command generates static content into the `build` directory and can be served using any static contents hosting service. @@ -29,13 +29,13 @@ This command generates static content into the `build` directory and can be serv Using SSH: ``` -$ USE_SSH=true yarn deploy +$ USE_SSH=true npm deploy ``` Not using SSH: ``` -$ GIT_USER= yarn deploy +$ GIT_USER= npm deploy ``` If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. diff --git a/blog/2019-05-28-first-blog-post.md b/blog/2019-05-28-first-blog-post.md deleted file mode 100644 index e872b67af1f..00000000000 --- a/blog/2019-05-28-first-blog-post.md +++ /dev/null @@ -1 +0,0 @@ -Placeholder. DO NOT DELETE. \ No newline at end of file diff --git a/blog/2019-05-29-long-blog-post.md b/blog/2019-05-29-long-blog-post.md deleted file mode 100644 index e872b67af1f..00000000000 --- a/blog/2019-05-29-long-blog-post.md +++ /dev/null @@ -1 +0,0 @@ -Placeholder. DO NOT DELETE. \ No newline at end of file diff --git a/blog/2021-08-01-mdx-blog-post.mdx b/blog/2021-08-01-mdx-blog-post.mdx deleted file mode 100644 index e872b67af1f..00000000000 --- a/blog/2021-08-01-mdx-blog-post.mdx +++ /dev/null @@ -1 +0,0 @@ -Placeholder. DO NOT DELETE. \ No newline at end of file diff --git a/blog/download.md b/blog/download.md deleted file mode 100644 index e872b67af1f..00000000000 --- a/blog/download.md +++ /dev/null @@ -1 +0,0 @@ -Placeholder. DO NOT DELETE. \ No newline at end of file diff --git a/i18n/en/docusaurus-plugin-content-blog/download.md b/i18n/en/docusaurus-plugin-content-blog/download.md deleted file mode 100644 index cc0d249e4df..00000000000 --- a/i18n/en/docusaurus-plugin-content-blog/download.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: download page -keywords: [nacos, download] -description: download page ---- - -## download page \ No newline at end of file diff --git a/i18n/zh-cn/docusaurus-plugin-content-blog/download.md b/i18n/zh-cn/docusaurus-plugin-content-blog/download.md deleted file mode 100644 index b6f073e1ccc..00000000000 --- a/i18n/zh-cn/docusaurus-plugin-content-blog/download.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 下载页 -keywords: [nacos, 下载] -description: 下载页 ---- - -## 下载页 \ No newline at end of file diff --git a/src/components/button/index.scss b/src/components/button/index.scss index 8ee90e303c7..c0da6493895 100644 --- a/src/components/button/index.scss +++ b/src/components/button/index.scss @@ -10,6 +10,8 @@ text-align: center; border-radius: 4px; text-decoration: none; + padding: 0%; + &-primary { background: #267DF7; } diff --git a/src/pages/home/top/index.scss b/src/pages/home/top/index.scss index a7d31d479c6..ae96b14875b 100644 --- a/src/pages/home/top/index.scss +++ b/src/pages/home/top/index.scss @@ -80,7 +80,7 @@ $animationDuration: 2s; .button-area { text-align: center; margin-top: 40px; - + .button { margin-right: 12px;