mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-21 03:47:32 +02:00
Initialize project and port basics
This commit is contained in:
commit
ebb4f4d515
31 changed files with 20401 additions and 0 deletions
17
src/components/navigation.js
Normal file
17
src/components/navigation.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from "react"
|
||||
import { Trans, Link } from "gatsby-plugin-react-i18next"
|
||||
|
||||
export default class Navigation extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className={"topBar" + (this.props.isHome ? " homeBar" : "")}>
|
||||
<nav className="topBarInner">
|
||||
<Link to="/" className={"logo" + (this.props.module == "home" ? " active" : "")}>KevinK.dev</Link>
|
||||
<div className="flexSpacer"></div>
|
||||
<Link id="navBtnProjects" to="/projects" className={(this.props.module == "projects" ? "active" : "")}><Trans>projects</Trans></Link>
|
||||
<Link id="navBtnSocial" to="/social" className={(this.props.module == "social" ? "active" : "")}><Trans>social</Trans></Link>
|
||||
</nav>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue