forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show II migration page if II canister returns an error
- Loading branch information
1 parent
b640141
commit ade4c55
Showing
3 changed files
with
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const html = (strings: TemplateStringsArray, ...values: unknown[]) => | ||
String.raw({ raw: strings }, ...values); |
49 changes: 49 additions & 0 deletions
49
typescript/service-worker/src/pages/internet-identity-maintenance.ts
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,49 @@ | ||
import { html } from './html'; | ||
|
||
export const internetIdentityMaintenanceTemplate = ( | ||
errorMessage: string | ||
) => html` | ||
<html> | ||
<head> | ||
<meta charset="utf8" /> | ||
<title>Internet Identity Maintenance</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | ||
<style> | ||
html, | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
height: 100%; | ||
} | ||
body { | ||
text-align: center; | ||
font-size: 16px; | ||
padding: 5em 1em 1em; | ||
box-sizing: border-box; | ||
font-family: sans-serif; | ||
display: flex; | ||
flex-flow: column nowrap; | ||
justify-content: space-between; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<main> | ||
<h1>Internet Identity is under maintenance</h1> | ||
<p> | ||
Visit the | ||
<a href="https://forum.dfinity.org/"> | ||
Internet Computer Developer Forum | ||
</a> | ||
for relevant announcements. | ||
</p> | ||
<p>Error details:</p> | ||
<code> ${errorMessage} </code> | ||
</main> | ||
</body> | ||
</html> | ||
`; |
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