2018-06-25 19:52:48 +02:00
|
|
|
|
import React from 'react'
|
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
|
|
|
|
|
import Button from '../Button'
|
|
|
|
|
import Modal from './Modal'
|
|
|
|
|
|
2018-07-08 14:34:46 +02:00
|
|
|
|
import logoImage from 'maputnik-design/logos/logo-color.svg'
|
2018-06-25 19:52:48 +02:00
|
|
|
|
|
|
|
|
|
class SurveyModal extends React.Component {
|
|
|
|
|
static propTypes = {
|
|
|
|
|
isOpen: PropTypes.bool.isRequired,
|
|
|
|
|
onOpenToggle: PropTypes.func.isRequired,
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-30 10:09:23 +02:00
|
|
|
|
onClick = () => {
|
|
|
|
|
window.open('https://gregorywolanski.typeform.com/to/cPgaSY', '_blank');
|
|
|
|
|
|
|
|
|
|
this.props.onOpenToggle();
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-25 19:52:48 +02:00
|
|
|
|
render() {
|
|
|
|
|
return <Modal
|
|
|
|
|
data-wd-key="modal-survey"
|
|
|
|
|
isOpen={this.props.isOpen}
|
|
|
|
|
onOpenToggle={this.props.onOpenToggle}
|
2018-06-30 10:09:23 +02:00
|
|
|
|
title="Maputnik Survey"
|
2018-06-25 19:52:48 +02:00
|
|
|
|
>
|
2018-06-30 10:09:23 +02:00
|
|
|
|
<div className="maputnik-modal-survey">
|
2018-07-08 14:34:46 +02:00
|
|
|
|
<img className="maputnik-modal-survey__logo" src={logoImage} alt="" width="128" />
|
2018-06-25 19:52:48 +02:00
|
|
|
|
<h1>You + Maputnik = Maputnik better for you</h1>
|
2018-06-30 10:09:23 +02:00
|
|
|
|
<p className="maputnik-modal-survey__description">We don’t track you, so we don’t know how you use Maputnik. Help us make Maputnik better for you by completing a 7–minute survey carried out by our contributing designer.</p>
|
2018-07-08 14:34:46 +02:00
|
|
|
|
<Button onClick={this.onClick} className="maputnik-big-button maputnik-white-button maputnik-wide-button">Take the Maputnik Survey</Button>
|
2018-06-30 10:09:23 +02:00
|
|
|
|
<p className="maputnik-modal-survey__footnote">It takes 7 minutes, tops! Every question is optional.</p>
|
2018-06-25 19:52:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default SurveyModal
|