var React = require('react'); var ReactIntl = require('react-intl'); var FormattedMessage = ReactIntl.FormattedMessage; var FormattedHTMLMessage = ReactIntl.FormattedHTMLMessage; var Modal = require('../modal/modal.jsx'); require('./intro.scss'); Modal.setAppElement(document.getElementById('view')); var Intro = React.createClass({ type: 'Intro', propTypes: { projectCount: React.PropTypes.number }, getDefaultProps: function () { return { projectCount: 10569070 }; }, getInitialState: function () { return { videoOpen: false }; }, showVideo: function () { this.setState({videoOpen: true}); }, closeVideo: function () { this.setState({videoOpen: false}); }, render: function () { return (