mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
style tweaks
This commit is contained in:
parent
7de13d029b
commit
53eb56c1df
2 changed files with 139 additions and 53 deletions
|
@ -17,13 +17,17 @@ var Landing = React.createClass({
|
|||
<TitleBanner className="masthead">
|
||||
<div className="inner">
|
||||
<h1>Scratch for Educators</h1>
|
||||
<p className="intro">
|
||||
Your students can use Scratch to code their own{' '}
|
||||
interactive stories, animations, and games.{' '}
|
||||
In the process, they learn to think creatively,{' '}
|
||||
reason systematically, and work{' '}
|
||||
collaboratively — essential skills for everyone in today’s society.
|
||||
</p>
|
||||
<FlexRow className="masthead-info">
|
||||
<p className="intro">
|
||||
Your students can use Scratch to code their own{' '}
|
||||
interactive stories, animations, and games.{' '}
|
||||
In the process, they learn to think creatively,{' '}
|
||||
reason systematically, and work{' '}
|
||||
collaboratively — essential skills for everyone in today’s society.
|
||||
</p>
|
||||
<iframe src="https://www.youtube.com/embed/uPSuG063jhA"
|
||||
frameborder="0" allowfullscreen></iframe>
|
||||
</FlexRow>
|
||||
</div>
|
||||
<div className="band">
|
||||
<SubNavigation className="inner">
|
||||
|
@ -50,7 +54,7 @@ var Landing = React.createClass({
|
|||
<section id="in-practice">
|
||||
<span className="nav-spacer"></span>
|
||||
<h2>Who Uses Scratch?</h2>
|
||||
<p>Educators are using Scratch in a wide variety of: </p>
|
||||
<p className="intro">Educators are using Scratch in a wide variety of: </p>
|
||||
<FlexRow className="general-usage">
|
||||
<p><b>Settings:</b> schools, museums, libraries, community centers</p>
|
||||
<p><b>Grade Levels:</b> elementary, middle, and high school (and some colleges too!)</p>
|
||||
|
@ -153,7 +157,7 @@ var Landing = React.createClass({
|
|||
which makes it easier to create accounts for{' '}
|
||||
groups of students and to manage your students’{' '}
|
||||
projects and comments. To learn more, see the{' '}
|
||||
Teacher Account FAQ page.
|
||||
<a href="faq">Teacher Account FAQ page</a>.
|
||||
</p>
|
||||
<a href="register"><Button>Request Account</Button></a>
|
||||
</div>
|
||||
|
|
|
@ -9,6 +9,10 @@ $story-width: $cols3;
|
|||
}
|
||||
|
||||
.educators {
|
||||
.intro {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
b {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -22,20 +26,33 @@ $story-width: $cols3;
|
|||
padding-bottom: 0;
|
||||
|
||||
h1 {
|
||||
margin: 0 0 2rem 0;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
color: $ui-white;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
max-width: $cols6;
|
||||
text-align: left;
|
||||
color: $ui-white;
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid $ui-white;
|
||||
.masthead-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
max-width: $cols6;
|
||||
text-align: left;
|
||||
color: $ui-white;
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid $ui-white;
|
||||
color: $ui-white;
|
||||
}
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 2px solid $ui-border;
|
||||
border-radius: 10px;
|
||||
width: $cols4;
|
||||
margin-bottom: $gutter;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -49,7 +66,6 @@ $story-width: $cols3;
|
|||
|
||||
.sub-nav {
|
||||
text-align: left;
|
||||
justify-content: flex-start;
|
||||
|
||||
li {
|
||||
margin: 0 .5rem 0 0;
|
||||
|
@ -64,39 +80,6 @@ $story-width: $cols3;
|
|||
}
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
&.sidebar-row {
|
||||
margin: 2rem 0;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
|
||||
.body-copy {
|
||||
width: $cols8;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: $cols3;
|
||||
}
|
||||
}
|
||||
|
||||
&.three-col-row {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.column {
|
||||
$column-margin: 1rem;
|
||||
|
||||
margin: $column-margin;
|
||||
width: calc(#{$cols4} - (#{$column-margin} * 2));
|
||||
|
||||
p {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.general-usage {
|
||||
justify-content: space-between;
|
||||
|
||||
|
@ -225,6 +208,7 @@ $story-width: $cols3;
|
|||
|
||||
#left {
|
||||
width: $cols4;
|
||||
max-width: $cols4;
|
||||
|
||||
text-align: left;
|
||||
|
||||
|
@ -379,6 +363,27 @@ $story-width: $cols3;
|
|||
width: $story-width;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.subnav {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.masthead-info {
|
||||
p {
|
||||
width: $cols4;
|
||||
}
|
||||
|
||||
iframe {
|
||||
box-sizing: border-box;
|
||||
width: $cols4;
|
||||
}
|
||||
}
|
||||
|
||||
#view {
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -396,6 +401,66 @@ $story-width: $cols3;
|
|||
}
|
||||
}
|
||||
|
||||
#in-practice {
|
||||
h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.intro {
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.general-usage {
|
||||
margin-bottom: 2rem;
|
||||
|
||||
p {
|
||||
margin: .25em 0;
|
||||
text-align: center;
|
||||
max-width: $cols8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.educators {
|
||||
#resources {
|
||||
width: $cols6;
|
||||
margin: 0 auto;
|
||||
h2 {
|
||||
text-align: left;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.educator-community {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#guides-header {
|
||||
width: $cols6;
|
||||
margin: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.guides-and-tutorials {
|
||||
div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
text-align: left;
|
||||
max-width: $cols8;
|
||||
}
|
||||
|
||||
p {
|
||||
width: $cols4;
|
||||
}
|
||||
|
||||
img {
|
||||
width: $cols2;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
p {
|
||||
width: 100%;
|
||||
|
@ -405,10 +470,17 @@ $story-width: $cols3;
|
|||
.guides-and-tutorials {
|
||||
align-items: flex-start;
|
||||
justify-content: space-around;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#teacher-accounts {
|
||||
.inner {
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
#left {
|
||||
margin-right: 50px;
|
||||
width: $cols4;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -424,6 +496,16 @@ $story-width: $cols3;
|
|||
width: $story-width;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
h1 {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sub-nav {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.general-usage {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue