Added Policy Page, testing about page

This commit is contained in:
2018-03-13 05:16:26 +11:00
parent 7f19959348
commit 8f8af79e38
7 changed files with 176 additions and 5 deletions

View File

@ -40,7 +40,7 @@ class Footer extends React.Component {
</span>
<nav className="c-footer__links">
<FooterLink to="/">Privacy Policy</FooterLink>
<FooterLink to="/privacy-policy">Privacy Policy</FooterLink>
</nav>
</footer>
</div>

View File

@ -29,7 +29,6 @@ class IndexPage extends React.Component {
<Poly />
<BodySection>
<p>test</p>
</BodySection>
</Page>
)

View File

@ -0,0 +1,33 @@
import React from 'react';
import Page from './../Page';
import BlankPromo from './../sections/BlankPromo';
import BodySection from './../sections/BodySection';
import { connect } from 'react-redux';
import Language from './../../language/Language';
class PrivacyPolicyPage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Page>
<BlankPromo />
<BodySection>
<h1>{Language.get("privacy.title")}</h1>
{Language.get("privacy.policy")}
</BodySection>
</Page>
)
}
}
const mapStateToProps = function(state) {
return {
code: state.language.code
}
}
export default connect(mapStateToProps)(PrivacyPolicyPage);

View File

@ -0,0 +1,41 @@
/*
* About Page
* About that one lad.
*
* Dependencies:
* styles/components/_page--style-about.scss
*
* Version:
* 1.0.0 - 2018/03/11
*/
import React from 'react';
import { connect } from 'react-redux';
import Page from './../Page';
import Poly from './../sections/Poly';
import BodySection from './../sections/BodySection';
import SplitSection from './../sections/SplitSection';
import Language from './../../language/Language';
class TestAboutPage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Page>
About
</Page>
)
}
}
const mapStateToProps = function(state) {
return {
code: state.language.code
}
}
export default connect(mapStateToProps)(TestAboutPage);