2015-10-22 12:21:47 -04:00
|
|
|
var React = require('react');
|
|
|
|
|
|
|
|
var Box = require('../box/box.jsx');
|
|
|
|
|
|
|
|
require('./welcome.scss');
|
|
|
|
|
|
|
|
var Welcome = React.createClass({
|
|
|
|
type: 'Welcome',
|
|
|
|
propTypes: {
|
|
|
|
onDismiss: React.PropTypes.func
|
|
|
|
},
|
2016-01-07 09:57:34 -05:00
|
|
|
getDefaultProps: function () {
|
|
|
|
return {
|
|
|
|
messages: {
|
|
|
|
'welcome.welcomeToScratch': 'Welcome to Scratch!',
|
|
|
|
'welcome.learn': 'Learn how to make a project in Scratch',
|
|
|
|
'welcome.tryOut': 'Try out starter projects',
|
|
|
|
'welcome.connect': 'Connect with other Scratchers'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
2015-10-22 12:21:47 -04:00
|
|
|
render: function () {
|
|
|
|
return (
|
2016-01-07 09:57:34 -05:00
|
|
|
<Box title={this.props.messages['welcome.welcomeToScratch']}
|
2015-10-22 12:21:47 -04:00
|
|
|
className="welcome"
|
|
|
|
moreTitle="x"
|
|
|
|
moreHref="#"
|
|
|
|
moreProps={{
|
|
|
|
className: 'close',
|
|
|
|
title: 'Dismiss',
|
|
|
|
onClick: this.props.onDismiss
|
|
|
|
}}>
|
|
|
|
|
|
|
|
<div className="welcome-col blue">
|
|
|
|
<h4>
|
|
|
|
<a href="/projects/editor/?tip_bar=getStarted">
|
2016-01-07 09:57:34 -05:00
|
|
|
{this.props.messages['welcome.learn']}
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
<a href="/projects/editor/?tip_bar=getStarted">
|
2016-01-12 13:26:49 -05:00
|
|
|
<img src="/images/welcome-learn.png" alt="Get Started" />
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div className="welcome-col green">
|
|
|
|
<h4>
|
|
|
|
<a href="/starter_projects/">
|
2016-01-07 09:57:34 -05:00
|
|
|
{this.props.messages['welcome.tryOut']}
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
<a href="/starter_projects/">
|
2016-01-12 13:26:49 -05:00
|
|
|
<img src="/images/welcome-try.png" alt="Starter Projects" />
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div className="welcome-col pink">
|
|
|
|
<h4>
|
|
|
|
<a href="/studios/146521/">
|
2016-01-07 09:57:34 -05:00
|
|
|
{this.props.messages['welcome.connect']}
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
<a href="/studios/146521/">
|
2016-01-12 13:26:49 -05:00
|
|
|
<img src="/images/welcome-connect.png" alt="Connect" />
|
2015-10-22 12:21:47 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-01-07 09:57:34 -05:00
|
|
|
module.exports = Welcome;
|