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
4129a701
Commit
4129a701
authored
Jul 03, 2018
by
Connor Hudson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second pass at responsive top banner
parent
5ebb5fa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
+31
-7
src/views/splash/beta/top-banner.jsx
src/views/splash/beta/top-banner.jsx
+7
-5
src/views/splash/beta/top-banner.scss
src/views/splash/beta/top-banner.scss
+24
-2
No files found.
src/views/splash/beta/top-banner.jsx
View file @
4129a701
...
@@ -9,9 +9,6 @@ require('./top-banner.scss');
...
@@ -9,9 +9,6 @@ require('./top-banner.scss');
const
TopBanner
=
()
=>
(
const
TopBanner
=
()
=>
(
<
TitleBanner
className=
"beta-top-banner"
>
<
TitleBanner
className=
"beta-top-banner"
>
<
div
className=
"beta-banner-image left"
>
<
img
src=
"/images/beta/left-illustration.png"
/>
</
div
>
<
FlexRow
className=
"beta-top-container column"
>
<
FlexRow
className=
"beta-top-container column"
>
<
h1
className=
"beta-header"
>
The Next Generation of Scratch
</
h1
>
<
h1
className=
"beta-header"
>
The Next Generation of Scratch
</
h1
>
<
h3
className=
"beta-copy"
>
Try out the beta version of Scratch 3.0
</
h3
>
<
h3
className=
"beta-copy"
>
Try out the beta version of Scratch 3.0
</
h3
>
...
@@ -20,8 +17,13 @@ const TopBanner = () => (
...
@@ -20,8 +17,13 @@ const TopBanner = () => (
href=
"https://beta.scratch.mit.edu/"
href=
"https://beta.scratch.mit.edu/"
>
Try it!
</
a
>
>
Try it!
</
a
>
</
FlexRow
>
</
FlexRow
>
<
div
className=
"beta-banner-image right"
>
<
div
className=
"beta-banner-images"
>
<
img
src=
"/images/beta/right-illustration.png"
/>
<
div
className=
"beta-banner-image left"
>
<
img
src=
"/images/beta/left-illustration.png"
/>
</
div
>
<
div
className=
"beta-banner-image right"
>
<
img
src=
"/images/beta/right-illustration.png"
/>
</
div
>
</
div
>
</
div
>
</
TitleBanner
>
</
TitleBanner
>
);
);
...
...
src/views/splash/beta/top-banner.scss
View file @
4129a701
@import
"../../../colors"
;
@import
"../../../colors"
;
@import
"../../../frameless"
;
.beta-top-banner
{
.beta-top-banner
{
display
:
flex
;
display
:
flex
;
position
:
relative
;
background-color
:
$ui-orange
;
background-color
:
$ui-orange
;
background-image
:
url("/images/beta/bg-pattern.png")
;
background-image
:
url("/images/beta/bg-pattern.png")
;
background-size
:
cover
;
background-size
:
cover
;
...
@@ -11,12 +13,22 @@
...
@@ -11,12 +13,22 @@
justify-content
:
center
;
justify-content
:
center
;
.beta-top-container
{
.beta-top-container
{
flex-shrink
:
0
;
position
:
absolute
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
height
:
15rem
;
}
.beta-banner-images
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
}
}
.beta-banner-image
{
.beta-banner-image
{
display
:
flex
;
display
:
flex
;
min-width
:
0
;
width
:
27rem
;
align-self
:
flex-end
;
align-self
:
flex-end
;
img
{
img
{
...
@@ -46,3 +58,13 @@
...
@@ -46,3 +58,13 @@
font-size
:
1em
;
font-size
:
1em
;
}
}
}
}
@media
only
screen
and
(
min-width
:
$tablet
)
and
(
max-width
:
1150px
)
{
.beta-top-banner
{
height
:
23rem
;
.beta-banner-image
{
width
:
20rem
;
}
}
}
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