Skip to content

Commit

Permalink
feat(web): footer add 'about us' page (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Oct 31, 2023
1 parent 525a063 commit 779fae9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@
"item2_5": "Docs",
"support": "Support",
"item3_1": "Feedback",
"item3_2": "Forum"
"item3_2": "Forum",
"item3_3": "About us"
}
},
"ChatGPT example": "ChatGPT example",
Expand Down
3 changes: 2 additions & 1 deletion web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@
"item2_5": "文档",
"support": "支持",
"item3_1": "问题反馈",
"item3_2": "开发者社区"
"item3_2": "开发者社区",
"item3_3": "关于我们"
}
},
"ChatGPT example": "ChatGPT 示例",
Expand Down
3 changes: 2 additions & 1 deletion web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@
"item2_5": "文档",
"support": "支持",
"item3_1": "问题反馈",
"item3_2": "开发者社区"
"item3_2": "开发者社区",
"item3_3": "关于我们"
}
},
"ChatGPT example": "ChatGPT 示例",
Expand Down
1 change: 1 addition & 0 deletions web/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const site_url = {
laf_doc: "https://doc.laf.run/guide/",
laf_github: "https://github.com/labring/laf",
laf_index_video: "https://itceb8-video.oss.laf.run/laf-website.mp4",
laf_about_us: "https://sealos.run/zh-Hans/company/",
};

export const CHAKRA_UI_COLOR_MODE_KEY = "chakra-ui-color-mode";
Expand Down
12 changes: 12 additions & 0 deletions web/src/pages/homepage/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ const Footer = (props: Props) => {
{t("HomePage.Footer.item3_2")}
</a>
</li>

<li>
<a href={site_url.laf_about_us} target="_blank" rel="noreferrer">
{t("HomePage.Footer.item3_3")}
</a>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -270,6 +276,12 @@ const Footer = (props: Props) => {
{t("HomePage.Footer.item3_2")}
</a>
</li>

<li>
<a href={site_url.laf_about_us} target="_blank" rel="noreferrer">
{t("HomePage.Footer.item3_3")}
</a>
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 779fae9

Please sign in to comment.