mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-03 12:27:30 -05:00
hide intro if not desktop width
This commit is contained in:
parent
a8b26b1a1c
commit
2a5f330884
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,9 @@ var Page = require('../../components/page/www/page.jsx');
|
||||||
var TeacherBanner = require('../../components/teacher-banner/teacher-banner.jsx');
|
var TeacherBanner = require('../../components/teacher-banner/teacher-banner.jsx');
|
||||||
var Welcome = require('../../components/welcome/welcome.jsx');
|
var Welcome = require('../../components/welcome/welcome.jsx');
|
||||||
|
|
||||||
|
var MediaQuery = require('react-responsive');
|
||||||
|
var frameless = require('../../lib/frameless');
|
||||||
|
|
||||||
require('./splash.scss');
|
require('./splash.scss');
|
||||||
|
|
||||||
var Splash = injectIntl(React.createClass({
|
var Splash = injectIntl(React.createClass({
|
||||||
|
@ -393,7 +396,9 @@ var Splash = injectIntl(React.createClass({
|
||||||
<News items={this.state.news} messages={messages} />
|
<News items={this.state.news} messages={messages} />
|
||||||
</div>
|
</div>
|
||||||
] : [
|
] : [
|
||||||
/*<Intro projectCount={this.state.projectCount} messages={messages} key="intro"/>*/
|
<MediaQuery minWidth={frameless.desktop}>
|
||||||
|
<Intro projectCount={this.state.projectCount} messages={messages} key="intro"/>
|
||||||
|
</MediaQuery>
|
||||||
]) : []
|
]) : []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue