Add webapp skeletons
This commit is contained in:
3
matrixgw_frontend/src/widgets/BaseAuthenticatedPage.tsx
Normal file
3
matrixgw_frontend/src/widgets/BaseAuthenticatedPage.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export function BaseAuthenticatedPage(): React.ReactElement {
|
||||
return <p>todo authenticated</p>;
|
||||
}
|
||||
16
matrixgw_frontend/src/widgets/RouterLink.tsx
Normal file
16
matrixgw_frontend/src/widgets/RouterLink.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { type PropsWithChildren } from "react";
|
||||
import { Link } from "react-router";
|
||||
|
||||
export function RouterLink(
|
||||
p: PropsWithChildren<{ to: string; target?: React.HTMLAttributeAnchorTarget }>
|
||||
): React.ReactElement {
|
||||
return (
|
||||
<Link
|
||||
to={p.to}
|
||||
target={p.target}
|
||||
style={{ color: "inherit", textDecoration: "inherit" }}
|
||||
>
|
||||
{p.children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
13
matrixgw_frontend/src/widgets/auth/AuthSingleMessage.tsx
Normal file
13
matrixgw_frontend/src/widgets/auth/AuthSingleMessage.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Button } from "@mui/material";
|
||||
import { Link } from "react-router";
|
||||
|
||||
export function AuthSingleMessage(p: { message: string }): React.ReactElement {
|
||||
return (
|
||||
<>
|
||||
<p style={{ textAlign: "center" }}>{p.message}</p>
|
||||
<Link to={"/"}>
|
||||
<Button>Go back home</Button>
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
}
|
||||
3
matrixgw_frontend/src/widgets/auth/BaseLoginPage.tsx
Normal file
3
matrixgw_frontend/src/widgets/auth/BaseLoginPage.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export function BaseLoginPage(): React.ReactElement {
|
||||
return <p>Todo login page route</p>;
|
||||
}
|
||||
Reference in New Issue
Block a user