aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components/error_block/error_block.svelte
blob: d25f507b63a83817e77bfe2d2438d69bb64ed7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script lang="ts">
	import { _ } from 'svelte-i18n';
	export let message = null;

	import { blink } from '$lib/animations/blink';
</script>

<div transition:blink>
	<h2>{$_('error.generic.title')}</h2>
	<p>{message || $_('error.generic.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;
		text-align: center;
		overflow: hidden;
	}

	h2,
	p {
		background-color: black;
		font-size: 1em;
	}

	h2 {
		text-transform: uppercase;
		margin: 100px 5px 10px;
	}

	p {
		margin: 10px 5px 100px;
	}
</style>