-
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.
Add script to generate generic applicationError page with app name an…
…d url.
- Loading branch information
Showing
2 changed files
with
36 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
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,34 @@ | ||
printf '<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> | ||
<style> | ||
body { | ||
margin-top: env(safe-area-inset-top); | ||
margin-bottom: env(safe-area-inset-bottom); | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
gap: 25px; | ||
padding: 25px; | ||
} | ||
.row { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
.brand-name { | ||
font-weight: bold; | ||
font-size: 50px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="row"> | ||
<span class="brand-name">%s</span> | ||
</div> | ||
<h1>An error has occured.</h1> | ||
<h2>You may attempt to reload the site below.</h2> | ||
<a href="https://%s">Reload</a> | ||
</body> | ||
</html>' $NATIVE_APP_NAME $NATIVE_APP_URL > ./www/applicationError.html | ||
|