diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-17 02:28:41 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-17 02:42:51 +1000 |
| commit | a6badba4f3f78863af4126d08af35837af087663 (patch) | |
| tree | 4a1807b99bb1bc02c6d6c3690dff1b56abacd681 /Pages | |
| parent | ca2e3566685889aace8bef47114bbb617c858453 (diff) | |
Added error icon Razor component
Diffstat (limited to 'Pages')
| -rw-r--r-- | Pages/Component/ErrorIcon.razor | 13 | ||||
| -rw-r--r-- | Pages/Component/ErrorIcon.razor.css | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Pages/Component/ErrorIcon.razor b/Pages/Component/ErrorIcon.razor new file mode 100644 index 0000000..251148d --- /dev/null +++ b/Pages/Component/ErrorIcon.razor @@ -0,0 +1,13 @@ +<svg width=@Size height=@Size viewBox="0 0 100 100" fill="none"> + <ellipse cx="50" cy="50" rx="50" ry="50"/> + <path + d="M 75 25 L 25 75 M 25 25 L 75 75" + stroke="#fff" + stroke-width="10" + stroke-linecap="round"/> +</svg> + +@code { + [Parameter] + public int Size { get; set; } = 50; +} diff --git a/Pages/Component/ErrorIcon.razor.css b/Pages/Component/ErrorIcon.razor.css new file mode 100644 index 0000000..10fe0a4 --- /dev/null +++ b/Pages/Component/ErrorIcon.razor.css @@ -0,0 +1,8 @@ +svg { + margin: auto; + padding: 15px; +} + +svg > ellipse { + fill: var(--col-warning-pri); +} |
