add react-router
This commit is contained in:
parent
ea01e2f53b
commit
c5d14c2835
0
src/components/navigation/link.jsx
Normal file
0
src/components/navigation/link.jsx
Normal file
12
src/components/navigation/nav-header.jsx
Normal file
12
src/components/navigation/nav-header.jsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import React from 'react'
|
||||
import {connect} from 'react-redux'
|
||||
|
||||
const NavHeader = props => {
|
||||
return (
|
||||
<nav>
|
||||
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
|
||||
export default connect()(NavHeader)
|
12
src/components/navigation/page-link.jsx
Normal file
12
src/components/navigation/page-link.jsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import React from 'react'
|
||||
import {Link} from 'react-router-dom'
|
||||
import connect from 'react-redux'
|
||||
import asciiWord from "../../functions/ascii-word";
|
||||
|
||||
const PageLink = props => {
|
||||
return (
|
||||
<Link to={props.src}>{asciiWord(props.name)}</Link>
|
||||
)
|
||||
}
|
||||
|
||||
export default PageLink
|
|
@ -1,18 +1,19 @@
|
|||
import React from 'react'
|
||||
import asciiWord from "../../functions/ascii-word";
|
||||
import {Link} from "react-router-dom";
|
||||
|
||||
const PageLinks = props => {
|
||||
return(
|
||||
<ul className={'page-list'}>
|
||||
<li className={'page-link'}>
|
||||
<a href="#portfolio">
|
||||
<Link to={'/portfolio'}>
|
||||
{asciiWord('Portfolio')}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li className={'page-link'}>
|
||||
<a href="#blog">
|
||||
<Link to={'/blog'}>
|
||||
{asciiWord('Blog')}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
)
|
0
src/components/navigation/page-name.jsx
Normal file
0
src/components/navigation/page-name.jsx
Normal file
0
src/components/pages/blog.jsx
Normal file
0
src/components/pages/blog.jsx
Normal file
0
src/components/pages/portfolio.jsx
Normal file
0
src/components/pages/portfolio.jsx
Normal file
Loading…
Reference in a new issue