mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
✨ Add header link
This commit is contained in:
parent
13e5dc14f7
commit
99b2a5c022
1 changed files with 13 additions and 3 deletions
|
@ -3,13 +3,23 @@ import * as Reach from "@reach/router"
|
||||||
import { LoginPage } from "./LoginPage"
|
import { LoginPage } from "./LoginPage"
|
||||||
import { Heading } from "@steffo/bluelib-react"
|
import { Heading } from "@steffo/bluelib-react"
|
||||||
import { SelectResearchGroupPage } from "./SelectResearchGroupPage"
|
import { SelectResearchGroupPage } from "./SelectResearchGroupPage"
|
||||||
|
import {Link} from "../components/Link"
|
||||||
|
|
||||||
|
|
||||||
|
function Header() {
|
||||||
|
return (
|
||||||
|
<Heading level={1}>
|
||||||
|
<Link href={"/"}>Sophon</Link>
|
||||||
|
</Heading>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export function Router() {
|
export function Router() {
|
||||||
return <>
|
return <>
|
||||||
<Heading level={1}>
|
<Reach.Router primary={false}>
|
||||||
Sophon
|
<Header default/>
|
||||||
</Heading>
|
</Reach.Router>
|
||||||
<Reach.Router>
|
<Reach.Router>
|
||||||
<LoginPage path={"/"}/>
|
<LoginPage path={"/"}/>
|
||||||
<SelectResearchGroupPage path={"/g/"}/>
|
<SelectResearchGroupPage path={"/g/"}/>
|
||||||
|
|
Loading…
Reference in a new issue