mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-05 00:53:09 +01:00
39 lines
1.4 KiB
JavaScript
39 lines
1.4 KiB
JavaScript
import React from 'react'
|
||
import PropTypes from 'prop-types'
|
||
|
||
import Button from '../Button'
|
||
import Modal from './Modal'
|
||
|
||
import logoImage from 'maputnik-design/logos/logo-color.svg'
|
||
|
||
class SurveyModal extends React.Component {
|
||
static propTypes = {
|
||
isOpen: PropTypes.bool.isRequired,
|
||
onOpenToggle: PropTypes.func.isRequired,
|
||
}
|
||
|
||
onClick = () => {
|
||
window.open('https://gregorywolanski.typeform.com/to/cPgaSY', '_blank');
|
||
|
||
this.props.onOpenToggle();
|
||
}
|
||
|
||
render() {
|
||
return <Modal
|
||
data-wd-key="modal-survey"
|
||
isOpen={this.props.isOpen}
|
||
onOpenToggle={this.props.onOpenToggle}
|
||
title="Maputnik Survey"
|
||
>
|
||
<div className="maputnik-modal-survey">
|
||
<img className="maputnik-modal-survey__logo" src={logoImage} alt="" width="128" />
|
||
<h1>You + Maputnik = Maputnik better for you</h1>
|
||
<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>
|
||
<Button onClick={this.onClick} className="maputnik-big-button maputnik-white-button maputnik-wide-button">Take the Maputnik Survey</Button>
|
||
<p className="maputnik-modal-survey__footnote">It takes 7 minutes, tops! Every question is optional.</p>
|
||
</div>
|
||
</Modal>
|
||
}
|
||
}
|
||
|
||
export default SurveyModal
|