Commit 4129a701 authored by Connor Hudson's avatar Connor Hudson

Second pass at responsive top banner

parent 5ebb5fa8
...@@ -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>
); );
......
@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;
}
}
}
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