mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
34 lines
908 B
TypeScript
34 lines
908 B
TypeScript
import React, { PropsWithChildren } from "react"
|
|
import { Container } from "../Container"
|
|
import logo from "../../images/tph-logo.png"
|
|
import * as SC from "./styles"
|
|
|
|
function MenuItem({ children, to }: PropsWithChildren<{ to: string }>) {
|
|
return (
|
|
<SC.MenuItem to={to} activeClassName="active">
|
|
{children}
|
|
</SC.MenuItem>
|
|
)
|
|
}
|
|
|
|
export function Header() {
|
|
return (
|
|
<SC.HeaderWrapper>
|
|
<Container>
|
|
<SC.InnerWrapper>
|
|
<SC.Logo src={logo} />
|
|
|
|
<SC.Menu>
|
|
<MenuItem to="/about">about</MenuItem>
|
|
<MenuItem to="/rules">rules</MenuItem>
|
|
<MenuItem to="/">faq</MenuItem>
|
|
<MenuItem to="/">hotbot</MenuItem>
|
|
<MenuItem to="/resources">resources</MenuItem>
|
|
<MenuItem to="/">tech spotlight</MenuItem>
|
|
</SC.Menu>
|
|
</SC.InnerWrapper>
|
|
</Container>
|
|
</SC.HeaderWrapper>
|
|
)
|
|
}
|