Improved basic pages: privacy, terms, license
This commit is contained in:
parent
440f6c610d
commit
2b3c9a5868
9 changed files with 239 additions and 57 deletions
|
|
@ -19,7 +19,8 @@ const Footer = (props) => {
|
|||
<p className="pull-left">© Copyleft {copyrightYear()} {t('OrgNameFull')}</p>
|
||||
<ul className="pull-right">
|
||||
<li><Link to="/terms"> {t('Términos')}<span className="hidden-xs"> {t('de Servicio')}</span></Link></li>
|
||||
<li><Link to="/privacidad">{t('Política')}<span className="hidden-xs"> {t('de Privacidad')}</span></Link></li>
|
||||
<li><Link to="/privacy">{t('Política')}<span className="hidden-xs"> {t('de Privacidad')}</span></Link></li>
|
||||
<li><Link to="/license">{t('Licencia')}<span className="hidden-xs"></span></Link></li>
|
||||
</ul>
|
||||
</Grid>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import NotFound from '../../pages/NotFound/NotFound';
|
|||
import Footer from '../../components/Footer/Footer';
|
||||
import Terms from '../../pages/Terms/Terms';
|
||||
import Privacy from '../../pages/Privacy/Privacy';
|
||||
import ExamplePage from '../../pages/ExamplePage/ExamplePage';
|
||||
import License from '../../pages/License/License';
|
||||
// i18n
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import i18n from '/imports/startup/client/i18n';
|
||||
|
|
@ -54,7 +54,7 @@ const App = props => (
|
|||
{!props.loading ? <div className="App">
|
||||
{props.userId && !props.emailVerified ? <Alert className="verify-email text-center"><p>Hey friend! Can you <strong>verify your email address</strong> ({props.emailAddress}) for us? <Button bsStyle="link" onClick={() => handleResendVerificationEmail(props.emailAddress)} href="#">Re-send verification email</Button></p></Alert> : ''}
|
||||
<Navigation {...props} />
|
||||
<Grid bsClass="previously-container-but-disabled" >
|
||||
<Grid> {/* bsClass="previously-container-but-disabled" > */}
|
||||
<Switch>
|
||||
<Route exact name="index" path="/" component={Index} />
|
||||
<Authenticated exact path="/documents" component={Documents} {...props} />
|
||||
|
|
@ -69,8 +69,8 @@ const App = props => (
|
|||
<Route name="recover-password" path="/recover-password" component={RecoverPassword} />
|
||||
<Route name="reset-password" path="/reset-password/:token" component={ResetPassword} />
|
||||
<Route name="terms" path="/terms" component={Terms} />
|
||||
<Route name="privacy" path="/privacidad" component={Privacy} />
|
||||
<Route name="examplePage" path="/example-page" component={ExamplePage} />
|
||||
<Route name="privacy" path="/privacy" component={Privacy} />
|
||||
<Route name="license" path="/license" component={License} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</Grid>
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
import React from 'react';
|
||||
import Page from '../Page/Page';
|
||||
|
||||
const ExamplePage = () => (
|
||||
<div className="ExamplePage">
|
||||
<Page
|
||||
title="My Example Page"
|
||||
subtitle="A subtitle for my example page."
|
||||
page="example-page"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default ExamplePage;
|
||||
15
imports/ui/pages/License/License.js
Normal file
15
imports/ui/pages/License/License.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import React from 'react';
|
||||
import Page from '../Page/Page';
|
||||
import { translate } from 'react-i18next';
|
||||
|
||||
const License = props => (
|
||||
<div className="License">
|
||||
<Page
|
||||
title={props.t("Licencia")}
|
||||
subtitle={props.t("Última actualización 15 de noviembre de 2017")}
|
||||
page="license"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default translate([], { wait: true })(License);
|
||||
|
|
@ -1,14 +1,15 @@
|
|||
import React from 'react';
|
||||
import Page from '../Page/Page';
|
||||
import { translate } from 'react-i18next';
|
||||
|
||||
const Privacy = () => (
|
||||
const Privacy = props => (
|
||||
<div className="Privacy">
|
||||
<Page
|
||||
title="Privacy Policy"
|
||||
subtitle="Last updated May 29th, 2017"
|
||||
page="privacy"
|
||||
title={props.t("Política de Privacidad")}
|
||||
subtitle={props.t("Última actualización 15 de noviembre de 2017")}
|
||||
page="privacy"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Privacy;
|
||||
export default translate([], { wait: true })(Privacy);
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
import React from 'react';
|
||||
import Page from '../Page/Page';
|
||||
import { translate } from 'react-i18next';
|
||||
|
||||
const Terms = () => (
|
||||
const Terms = props => (
|
||||
<div className="Terms">
|
||||
<Page
|
||||
title="Terms of Service"
|
||||
subtitle="Last updated May 29th, 2017"
|
||||
page="terms"
|
||||
title={props.t("Términos de Servicio")}
|
||||
subtitle={props.t("Última actualización 15 de noviembre de 2017")}
|
||||
page="terms"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Terms;
|
||||
export default translate([], { wait: true })(Terms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue