This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.main { | ||
min-height: 100vh; | ||
margin-top: 30vh; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,56 @@ | ||
"use client"; | ||
|
||
import { useI18n } from "@/i18n/client"; | ||
import { Flex, Text } from "@ledgerhq/react-ui"; | ||
import { CloseMedium } from "@ledgerhq/react-ui/assets/icons"; | ||
import styled from "styled-components"; | ||
import styles from "./page.module.css"; | ||
|
||
export default function Home() { | ||
const LogoContainer = styled(Flex)` | ||
border-radius: 50%; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: ${(p) => p.theme.colors.error.c50}; | ||
height: 50px; | ||
width: 50px; | ||
`; | ||
|
||
export default function ApplicationDisabled() { | ||
const { t } = useI18n(); | ||
|
||
return ( | ||
<main className={styles.main}> | ||
<div>{t("welcome")}</div> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<div>Maintenance page</div> | ||
</main> | ||
<div className={styles.main}> | ||
<Flex | ||
alignItems="center" | ||
justifyContent="center" | ||
flexDirection="column" | ||
flex={1} | ||
data-testid="application-disabled-container" | ||
> | ||
<LogoContainer data-testid="application-disabled-logo"> | ||
<CloseMedium size={32} color="background.main" /> | ||
</LogoContainer> | ||
<Text | ||
variant="h4" | ||
fontWeight="medium" | ||
color="neutral.c100" | ||
mt={10} | ||
textAlign="center" | ||
data-testid="application-disabled-title" | ||
> | ||
{t("applicationDisabled.title")} | ||
</Text> | ||
<Text | ||
variant="bodyLineHeight" | ||
fontWeight="medium" | ||
color="neutral.c80" | ||
mt={10} | ||
textAlign="center" | ||
data-testid="application-disabled-subtitle" | ||
> | ||
{t("applicationDisabled.desc")} | ||
</Text> | ||
</Flex> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"hello": "Hello", | ||
"welcome": "Welcome" | ||
"welcome": "Welcome", | ||
"applicationDisabled": { | ||
"title": "We are currently under maintenance.", | ||
"desc": "We are actively working to restore the app as soon as possible. Thank you for your understanding." | ||
} | ||
} |