aboutsummaryrefslogtreecommitdiff
path: root/app/components/error_block/error_block.svelte
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-06-20 14:58:26 +0200
committerBen Beltran <ben@nsovocal.com>2020-06-20 14:58:26 +0200
commit8050f772caeedafffab6e3ec2f309205a019f3d0 (patch)
tree81b18185e1ffc9bb483e18b82f3a088dde7f358b /app/components/error_block/error_block.svelte
parent2dc5448262ce444ead594376c47a62c3e88e0f8e (diff)
Add internationalized error block
Diffstat (limited to 'app/components/error_block/error_block.svelte')
-rw-r--r--app/components/error_block/error_block.svelte31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/components/error_block/error_block.svelte b/app/components/error_block/error_block.svelte
new file mode 100644
index 0000000..d649fb4
--- /dev/null
+++ b/app/components/error_block/error_block.svelte
@@ -0,0 +1,31 @@
+<script>
+ import { _ } from 'svelte-i18n';
+ export let message = $_('error.generic.message');
+</script>
+
+<div>
+ <h2>{$_('error.generic.title')}</h2>
+ <p>{message}</p>
+</div>
+
+<style>
+ div {
+ background: repeating-linear-gradient( -45deg, red, red 5px, black 5px, black 10px );
+ border: 5px solid red;
+ color: yellow;
+ font-family: 'ヒラギノ角ゴ ProN' , 'Hiragino Kaku Gothic ProN' , '游ゴシック' , '游ゴシック体' , YuGothic , 'Yu Gothic' , 'メイリオ' , Meiryo , 'MS ゴシック' , 'MS Gothic' , HiraKakuProN-W3 , 'TakaoExゴシック' , TakaoExGothic , 'MotoyaLCedar' , 'Droid Sans Japanese' , sans-serif;
+ margin: 0 10px 0 0;
+ padding: 100px 5px;
+ text-align: center;
+ }
+
+ h2, p {
+ background-color: black;
+ font-size: 1em;
+ }
+
+ h2 {
+ text-transform: uppercase;
+ }
+</style>
+