-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathError.svelte
More file actions
68 lines (66 loc) · 2.25 KB
/
Copy pathError.svelte
File metadata and controls
68 lines (66 loc) · 2.25 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!--
~ Copyright (C) 2024 Elijah Olmos
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, version 3.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!--
~ Copyright (C) 2023 Elijah Olmos
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, version 3.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<script>
export let error = null;
!!error && console.error(error);
</script>
<div class="flex flex-col items-center">
<div class="alert alert-error shadow-lg text-base p-3 m-4">
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
class="stroke-current flex-shrink-0 h-6 w-6"
fill="none"
viewBox="0 0 24 24"
><path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
/></svg
>
<slot class="text-center">
<span>Error! {error.message ?? 'Join the discord for support'}</span>
</slot>
</div>
</div>
<a href="https://discord.gg/mY563YHScv" target="_blank" rel="noreferrer">
<button class="btn gap-2 bg-discord hover:bg-discord-hover m-2 p-2 text-white">
<img
class="h-6 w-6"
src="../static/Discord-Logo-White.svg"
srcset="../static/Discord-Logo-White.svg"
alt="Discord logo"
/>
Support
</button>
</a>
</div>