diff --git a/src/ErrorModal.jsx b/src/ErrorModal.jsx
index c457fe0..ba54445 100644
--- a/src/ErrorModal.jsx
+++ b/src/ErrorModal.jsx
@@ -1,8 +1,8 @@
import React, { useEffect } from "react";
-import { Center, Content, Modal } from "./Layout";
import { Link, useLocation } from "react-router-dom";
import { ErrorMessage } from "./Input";
import styles from "./ErrorModal.module.css";
+import { Header, HeaderLogo, LeftNav, RightNav } from "./Header";
export function ErrorModal({ error }) {
const location = useLocation();
@@ -12,25 +12,22 @@ export function ErrorModal({ error }) {
}, [error]);
return (
-
-
-
- Error
-
-
{error.message}
-
-
- Login
-
-
-
-
- Register
-
-
-
-
-
-
+ <>
+
+
+
+
Error
+ {error.message}
+
+ Return to home screen
+
+
+
+ >
);
}
diff --git a/src/ErrorModal.module.css b/src/ErrorModal.module.css
index 84d6701..d33f551 100644
--- a/src/ErrorModal.module.css
+++ b/src/ErrorModal.module.css
@@ -1,9 +1,43 @@
-.errorModalContent {
- display: flex;
- flex-direction: column;
- align-items: center;
+.header {
+ padding: 76px 65px;
}
-.errorModalContent p {
+.container {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ flex: 1;
+}
+
+.content {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ max-width: 660px;
+ padding: 0 65px;
+}
+
+.content > * {
+ margin-top: 0;
+ margin-bottom: 32px;
+}
+
+.content > :last-child {
margin-bottom: 0;
}
+
+.homeLink {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 8px 136px;
+ color: #0dbd8b;
+ text-decoration: none;
+ background: #0dbd8b;
+ border-radius: 8px;
+ color: #ffffff;
+ font-weight: 600;
+ font-size: 15px;
+}
diff --git a/src/Room.jsx b/src/Room.jsx
index 5357812..4e44b57 100644
--- a/src/Room.jsx
+++ b/src/Room.jsx
@@ -83,7 +83,11 @@ export function Room() {
}
if (registrationError || error) {
- return ;
+ return (
+
+
+
+ );
}
return ;
@@ -108,11 +112,7 @@ export function GroupCall({ client }) {
}, [groupCall]);
if (loading) {
- return (
-
-
-
- );
+ return ;
}
if (error) {