Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
f71fcf3d
Unverified
Commit
f71fcf3d
authored
Nov 18, 2020
by
Ray Schamp
Committed by
GitHub
Nov 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4653 from LLK/hotfix/hoc-banner-2020
[Master] HoC banner 2020
parents
42edc224
a4689fc1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
src/views/splash/hoc/hoc-banner.scss
src/views/splash/hoc/hoc-banner.scss
+2
-1
src/views/splash/hoc/top-banner.jsx
src/views/splash/hoc/top-banner.jsx
+3
-3
src/views/splash/l10n.json
src/views/splash/l10n.json
+2
-1
src/views/splash/presentation.jsx
src/views/splash/presentation.jsx
+3
-2
static/images/hoc/make-it-fly.jpg
static/images/hoc/make-it-fly.jpg
+0
-0
No files found.
src/views/splash/hoc/hoc-banner.scss
View file @
f71fcf3d
...
...
@@ -53,7 +53,8 @@ $tile-height: 244px;
img
{
width
:
$cols4
;
height
:
auto
;
height
:
$cols4
*
0
.553333333
;
/* images are 600 x 332 for retina */
object-fit
:
cover
;
}
.hoc-image-text
{
...
...
src/views/splash/hoc/top-banner.jsx
View file @
f71fcf3d
...
...
@@ -47,11 +47,11 @@ const TopBanner = () => (
</
div
>
</
FlexRow
>
</
a
>
<
a
href=
"/projects/editor?tutorial=
talking
"
>
<
a
href=
"/projects/editor?tutorial=
make-it-fly
"
>
<
FlexRow
className=
"hoc-banner-image column"
>
<
img
src=
"/images/hoc/
talking.pn
g"
/>
<
img
src=
"/images/hoc/
make-it-fly.jp
g"
/>
<
div
className=
"hoc-image-text"
>
<
FormattedMessage
id=
"hocbanner.
talking
"
/>
<
FormattedMessage
id=
"hocbanner.
makeItFly
"
/>
</
div
>
</
FlexRow
>
</
a
>
...
...
src/views/splash/l10n.json
View file @
f71fcf3d
...
...
@@ -39,12 +39,13 @@
"hocbanner.imagine"
:
"Imagine a World"
,
"hocbanner.codeACartoon"
:
"Code a Cartoon"
,
"hocbanner.talking"
:
"Talking Tales"
,
"hocbanner.makeItFly"
:
"Make It Fly"
,
"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"
,
"activity.seeUpdates"
:
"This is where you will see updates from Scratchers you follow"
,
"activity.checkOutScratchers"
:
"Check out some Scratchers you might like to follow"
}
src/views/splash/presentation.jsx
View file @
f71fcf3d
...
...
@@ -36,8 +36,8 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx');
const
TopBanner
=
require
(
'
./hoc/top-banner.jsx
'
);
const
MiddleBanner
=
require
(
'
./hoc/middle-banner.jsx
'
);
const
HOC_START_TIME
=
1
575262800000
;
// 2019-12-02
00:00:00
const
HOC_END_TIME
=
1
577077200000
;
// 2019
-12-23 00:00:00
const
HOC_START_TIME
=
1
605484800000
;
// 2020-11-16
00:00:00
const
HOC_END_TIME
=
1
608681600000
;
// 2020
-12-23 00:00:00
require
(
'
./splash.scss
'
);
...
...
@@ -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
Date
.
now
()
>=
HOC_START_TIME
&&
// Show middle banner on and after Dec 3
Date
.
now
()
<
HOC_END_TIME
&&
// Hide middle banner after Dec 14
false
&&
// we did not use this middle banner in last HoC
<
MediaQuery
key=
"frameless-desktop"
minWidth=
{
frameless
.
tabletPortrait
}
...
...
static/images/hoc/make-it-fly.jpg
0 → 100644
View file @
f71fcf3d
19.4 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment