- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add laf status link (#1127)
(cherry picked from commit 7dbec9d)
Showing
9 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,5 +416,6 @@ | |
} | ||
}, | ||
"ChatGPT example": "ChatGPT 示例", | ||
"LinkCopied": "链接复制成功" | ||
"LinkCopied": "链接复制成功", | ||
"ServerStatus": "服务状态" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,5 +416,6 @@ | |
} | ||
}, | ||
"ChatGPT example": "ChatGPT 示例", | ||
"LinkCopied": "链接复制成功" | ||
"LinkCopied": "链接复制成功", | ||
"ServerStatus": "服务状态" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.breathing-gradient { | ||
background: #5cdd8b; | ||
display: inline-block; | ||
border-radius: 50rem; | ||
width: 5px; | ||
height: 16px; | ||
margin-right: 2px; | ||
} | ||
|
||
@keyframes breathing { | ||
0% { | ||
opacity: 0.6; | ||
} | ||
50% { | ||
opacity: 1; | ||
} | ||
100% { | ||
opacity: 0.6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
import styles from "./status.module.scss"; | ||
|
||
export default function Status() { | ||
const { t } = useTranslation(); | ||
return ( | ||
<a | ||
target="_blank" | ||
href="https://hnpsxzqqtavv.cloud.sealos.cn/status/laf" | ||
className={"mr-6 flex items-center whitespace-nowrap "} | ||
rel="noreferrer" | ||
> | ||
<span className="mr-2 text-base">{t("ServerStatus")}</span> | ||
{Array.from({ length: 8 }).map((item, index) => { | ||
return <div key={index} className={styles["breathing-gradient"]}></div>; | ||
})} | ||
</a> | ||
); | ||
} |