2018-01-30 11:53:12 -05:00
|
|
|
const FormattedMessage = require('react-intl').FormattedMessage;
|
|
|
|
const React = require('react');
|
2016-04-23 14:27:08 -04:00
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const Page = require('../../components/page/www/page.jsx');
|
|
|
|
const render = require('../../lib/render.jsx');
|
2016-04-23 14:27:08 -04:00
|
|
|
|
|
|
|
require('./guidelines.scss');
|
|
|
|
|
2024-10-28 14:42:18 +02:00
|
|
|
const pageSections = [
|
|
|
|
{
|
|
|
|
id: 'respect',
|
|
|
|
headerTextId: 'guidelines.respectheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.respectbody1',
|
|
|
|
'guidelines.respectbody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_respect.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobblue_respect.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'privacy',
|
|
|
|
headerTextId: 'guidelines.privacyheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.privacybody1',
|
|
|
|
'guidelines.privacybody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_safe.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobyellow_safe.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'helpful',
|
|
|
|
headerTextId: 'guidelines.helpfulheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.privacybody1',
|
|
|
|
'guidelines.privacybody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_feedback.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobmagenta_feedback.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'remix',
|
|
|
|
headerTextId: 'guidelines.remixheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.remixbody1',
|
|
|
|
'guidelines.remixbody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_remix.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobgreen_remix.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'honesty',
|
|
|
|
headerTextId: 'guidelines.honestyheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.honestybody1',
|
|
|
|
'guidelines.honestybody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_honest.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobpurple_honest.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'friendly',
|
|
|
|
headerTextId: 'guidelines.friendlyheader',
|
|
|
|
contentTextIds: [
|
|
|
|
'guidelines.friendlybody1',
|
|
|
|
'guidelines.friendlybody2'
|
|
|
|
],
|
|
|
|
sectionImgSrc: '/svgs/guidelines/illustration_friendly.svg',
|
|
|
|
buttonImgSrc: '/svgs/guidelines/blobpink_friendly.svg'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const Guidelines = () => (
|
2024-10-28 14:42:18 +02:00
|
|
|
<div className="guidelines-page">
|
|
|
|
<header>
|
|
|
|
<div className="title"><FormattedMessage id="guidelines.title" /></div>
|
|
|
|
<div className="header1"><FormattedMessage id="guidelines.header1" /></div>
|
|
|
|
<div className="header2"><FormattedMessage id="guidelines.header2" /></div>
|
|
|
|
</header>
|
|
|
|
<section className="navigation">
|
|
|
|
<div className="header3"><FormattedMessage id="guidelines.header3" /></div>
|
|
|
|
<section className="navigation-buttons">
|
|
|
|
{
|
|
|
|
pageSections.map(({id, headerTextId, buttonImgSrc}) => (
|
|
|
|
<a
|
|
|
|
key={id}
|
|
|
|
href={`#${id}`}
|
|
|
|
>
|
|
|
|
<img src={buttonImgSrc} />
|
|
|
|
<FormattedMessage id={headerTextId} />
|
|
|
|
</a>
|
|
|
|
))
|
|
|
|
}
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section className="inner guidelines">
|
|
|
|
{
|
|
|
|
pageSections.map(({id, headerTextId, contentTextIds, sectionImgSrc}, index) => (
|
|
|
|
<div
|
|
|
|
id={id}
|
|
|
|
key={id}
|
|
|
|
className={`guideline ${index % 2 === 0 ? 'content-first' : 'image-first'}`}
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div className="guideline-title"><FormattedMessage id={headerTextId} /></div>
|
|
|
|
<p className="first-paragraph">
|
|
|
|
<FormattedMessage id={contentTextIds[0]} />
|
|
|
|
</p>
|
|
|
|
<p className="second-paragraph">
|
|
|
|
<FormattedMessage id={contentTextIds[1]} />
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<img src={sectionImgSrc} />
|
|
|
|
</div>
|
|
|
|
))
|
2018-01-30 11:53:12 -05:00
|
|
|
}
|
2024-10-28 14:42:18 +02:00
|
|
|
</section>
|
2018-01-30 11:53:12 -05:00
|
|
|
</div>
|
|
|
|
);
|
2016-04-23 14:27:08 -04:00
|
|
|
|
|
|
|
render(<Page><Guidelines /></Page>, document.getElementById('app'));
|