Add webapp skeletons

This commit is contained in:
2025-11-04 19:43:51 +01:00
parent 20a42f3c55
commit 9ed711777c
11 changed files with 218 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
export function BaseAuthenticatedPage(): React.ReactElement {
return <p>todo authenticated</p>;
}

View 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>
);
}

View 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>
</>
);
}

View File

@@ -0,0 +1,3 @@
export function BaseLoginPage(): React.ReactElement {
return <p>Todo login page route</p>;
}