Added Policy Page, testing about page
This commit is contained in:
@ -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>
|
||||
|
@ -29,7 +29,6 @@ class IndexPage extends React.Component {
|
||||
<Poly />
|
||||
|
||||
<BodySection>
|
||||
<p>test</p>
|
||||
</BodySection>
|
||||
</Page>
|
||||
)
|
||||
|
33
public/components/pages/PrivacyPolicyPage.jsx
Normal file
33
public/components/pages/PrivacyPolicyPage.jsx
Normal 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);
|
41
public/components/pages/TestAboutPage.jsx
Normal file
41
public/components/pages/TestAboutPage.jsx
Normal 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);
|
Reference in New Issue
Block a user