diff --git a/src/css/components/ErrorRenderer.css b/src/css/components/ErrorRenderer.css new file mode 100644 index 0000000..eadeccb --- /dev/null +++ b/src/css/components/ErrorRenderer.css @@ -0,0 +1,19 @@ +.error { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + place-content: center; + height: 100%; +} + +.error span:first-child { + color: var(--primary-red); + font-weight: bold; +} + +.error span { + display: flex; + flex-direction: column; + align-items: center; +} diff --git a/src/html/browseraction.html b/src/html/browseraction.html index 70c2e28..25e19f8 100644 --- a/src/html/browseraction.html +++ b/src/html/browseraction.html @@ -4,6 +4,7 @@ +
diff --git a/src/js/components/App.tsx b/src/js/components/App.tsx index fff8d13..671b376 100644 --- a/src/js/components/App.tsx +++ b/src/js/components/App.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { ErrorRenderer } from "/components/ErrorRenderer"; import { ResponseRenderer } from "/components/ResponseRenderer"; import { useWebService } from "/hooks/useWebService"; @@ -8,7 +9,7 @@ export function App() { if (response) { return (