Unverified Commit f71fcf3d authored by Ray Schamp's avatar Ray Schamp Committed by GitHub

Merge pull request #4653 from LLK/hotfix/hoc-banner-2020

[Master] HoC banner 2020
parents 42edc224 a4689fc1
...@@ -53,7 +53,8 @@ $tile-height: 244px; ...@@ -53,7 +53,8 @@ $tile-height: 244px;
img { img {
width: $cols4; width: $cols4;
height: auto; height: $cols4 * 0.553333333; /* images are 600 x 332 for retina */
object-fit: cover;
} }
.hoc-image-text { .hoc-image-text {
......
...@@ -47,11 +47,11 @@ const TopBanner = () => ( ...@@ -47,11 +47,11 @@ const TopBanner = () => (
</div> </div>
</FlexRow> </FlexRow>
</a> </a>
<a href="/projects/editor?tutorial=talking"> <a href="/projects/editor?tutorial=make-it-fly">
<FlexRow className="hoc-banner-image column"> <FlexRow className="hoc-banner-image column">
<img src="/images/hoc/talking.png" /> <img src="/images/hoc/make-it-fly.jpg" />
<div className="hoc-image-text"> <div className="hoc-image-text">
<FormattedMessage id="hocbanner.talking" /> <FormattedMessage id="hocbanner.makeItFly" />
</div> </div>
</FlexRow> </FlexRow>
</a> </a>
......
...@@ -39,12 +39,13 @@ ...@@ -39,12 +39,13 @@
"hocbanner.imagine": "Imagine a World", "hocbanner.imagine": "Imagine a World",
"hocbanner.codeACartoon": "Code a Cartoon", "hocbanner.codeACartoon": "Code a Cartoon",
"hocbanner.talking": "Talking Tales", "hocbanner.talking": "Talking Tales",
"hocbanner.makeItFly": "Make It Fly",
"welcome.welcomeToScratch": "Welcome to Scratch!", "welcome.welcomeToScratch": "Welcome to Scratch!",
"welcome.learn": "Learn how to make a project in Scratch", "welcome.learn": "Learn how to make a project in Scratch",
"welcome.tryOut": "Try out starter projects", "welcome.tryOut": "Try out starter projects",
"welcome.connect": "Connect with other Scratchers", "welcome.connect": "Connect with other Scratchers",
"activity.seeUpdates": "This is where you will see updates from Scratchers you follow", "activity.seeUpdates": "This is where you will see updates from Scratchers you follow",
"activity.checkOutScratchers": "Check out some Scratchers you might like to follow" "activity.checkOutScratchers": "Check out some Scratchers you might like to follow"
} }
...@@ -36,8 +36,8 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx'); ...@@ -36,8 +36,8 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx');
const TopBanner = require('./hoc/top-banner.jsx'); const TopBanner = require('./hoc/top-banner.jsx');
const MiddleBanner = require('./hoc/middle-banner.jsx'); const MiddleBanner = require('./hoc/middle-banner.jsx');
const HOC_START_TIME = 1575262800000; // 2019-12-02 00:00:00 const HOC_START_TIME = 1605484800000; // 2020-11-16 00:00:00
const HOC_END_TIME = 1577077200000; // 2019-12-23 00:00:00 const HOC_END_TIME = 1608681600000; // 2020-12-23 00:00:00
require('./splash.scss'); require('./splash.scss');
...@@ -468,6 +468,7 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/ ...@@ -468,6 +468,7 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
Object.keys(this.props.user).length !== 0 && // Only show if user is logged in Object.keys(this.props.user).length !== 0 && // Only show if user is logged in
Date.now() >= HOC_START_TIME && // Show middle banner on and after Dec 3 Date.now() >= HOC_START_TIME && // Show middle banner on and after Dec 3
Date.now() < HOC_END_TIME && // Hide middle banner after Dec 14 Date.now() < HOC_END_TIME && // Hide middle banner after Dec 14
false && // we did not use this middle banner in last HoC
<MediaQuery <MediaQuery
key="frameless-desktop" key="frameless-desktop"
minWidth={frameless.tabletPortrait} minWidth={frameless.tabletPortrait}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment