Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Oct 16, 2024
1 parent 56328db commit a3e047c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 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 @@ -760,6 +760,7 @@
"Description": "Click to update"
},
"app": {
"title": "sealaf"
"title": "sealaf",
"logo": "Sealaf"
}
}
5 changes: 3 additions & 2 deletions web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@
"Description": "点击立即更新"
},
"app": {
"title": "云开发"
"title": "云开发",
"logo": "Sealos 云开发"
}
}
}
5 changes: 3 additions & 2 deletions web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@
"Description": "点击立即更新"
},
"app": {
"title": "云开发"
"title": "云开发",
"logo": "Sealos 云开发"
}
}
}
File renamed without changes
1 change: 0 additions & 1 deletion web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const useDocumentTitle = (titleKey: string, defaultTitle: string) => {

useEffect(() => {
document.title = t(titleKey, defaultTitle);
t("app.title");
}, [t, titleKey, defaultTitle]);
};

Expand Down
8 changes: 6 additions & 2 deletions web/src/pages/homepage/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ const Footer = (props: Props) => {
<div className="flex justify-between">
<div className="w-1/2">
<div className="flex items-center space-x-2">
<img src={darkMode ? "logo.svg" : "logo.svg"} className="h-8 w-auto" alt="logo" />
<span className="text-lg">Sealos 云开发</span>
<img
src={darkMode ? "sealos-logo.svg" : "sealos-logo.svg"}
className="h-8 w-auto"
alt="logo"
/>
<span className="text-lg"> {t("app.logo")}</span>
</div>

<p
Expand Down
8 changes: 6 additions & 2 deletions web/src/pages/homepage/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ const Navbar = () => {
<div className="flex w-full max-w-[1200px] justify-between">
<div className="flex items-center">
<div className="flex items-center space-x-2">
<img src={darkMode ? "logo.svg" : "logo.svg"} className="h-8 w-auto" alt="logo" />
<span className="text-lg">Sealos 云开发</span>
<img
src={darkMode ? "sealos-logo.svg" : "sealos-logo.svg"}
className="h-8 w-auto"
alt="logo"
/>
<span className="text-lg"> {t("app.logo")}</span>
</div>

{navList.map((item, index) => {
Expand Down

0 comments on commit a3e047c

Please sign in to comment.