1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

Add header link

This commit is contained in:
Steffo 2021-09-20 17:13:35 +02:00
parent b052218a13
commit 782fc1409c
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -3,13 +3,23 @@ import * as Reach from "@reach/router"
import { LoginPage } from "./LoginPage"
import { Heading } from "@steffo/bluelib-react"
import { SelectResearchGroupPage } from "./SelectResearchGroupPage"
import {Link} from "../components/Link"
function Header() {
return (
<Heading level={1}>
<Link href={"/"}>Sophon</Link>
</Heading>
)
}
export function Router() {
return <>
<Heading level={1}>
Sophon
</Heading>
<Reach.Router primary={false}>
<Header default/>
</Reach.Router>
<Reach.Router>
<LoginPage path={"/"}/>
<SelectResearchGroupPage path={"/g/"}/>