Skip to content

Commit

Permalink
✨ Add general error page
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 17, 2020
1 parent c89a310 commit 33f2652
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ rateLimitExceededRemoveToken: Remove token
rateLimitExceededGitHubPAT: GitHub Personal Access Token
rateLimitExceededCopyPastePAT: Copy and paste your token
rateLimitExceededSaveToken: Save token
errorTitle: An error occurred
errorIntro: An error occurred in trying to get the latest status details.
errorText: You can try again in a few moments.
errorHome: Go to the homepage
31 changes: 31 additions & 0 deletions src/routes/error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<script>
import config from "../data/config.json";
</script>

<style>
p.lead {
font-size: 110%;
}
a.button {
font: inherit;
padding: 0.5rem 1rem;
border: 0.1rem solid rgba(0, 0, 0, 0.25);
border-radius: 0.2rem;
background-color: #01a3a4;
text-decoration: none;
color: #fff;
border-color: transparent;
}
</style>

<svelte:head>
<title>{config.i18n.errorTitle}</title>
</svelte:head>

<h1>{config.i18n.errorTitle}</h1>

<p class="lead">{config.i18n.errorIntro}</p>

<p>{config.i18n.errorText}</p>

<a href="/" class="button">{config.i18n.errorHome}</a>

0 comments on commit 33f2652

Please sign in to comment.