mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Finish off subnav and more work on financials and donate sections
This commit is contained in:
parent
30eedda2a2
commit
61e28278a0
2 changed files with 41 additions and 21 deletions
|
@ -58,7 +58,7 @@ class AnnualReport extends React.Component {
|
|||
this.subnavRef = null;
|
||||
|
||||
this.state = {
|
||||
currentlyVisible: '',
|
||||
currentlyVisible: SECTIONS.message,
|
||||
dropdownVisible: false
|
||||
};
|
||||
|
||||
|
@ -229,9 +229,7 @@ class AnnualReport extends React.Component {
|
|||
{/* Top Bar */}
|
||||
<MediaQuery maxWidth={frameless.tabletPortrait - 1}>
|
||||
<div className="sectionIndicator inner" >
|
||||
<p>
|
||||
{SECTION_NAMES[this.state.currentlyVisible]}
|
||||
</p>
|
||||
{SECTION_NAMES[this.state.currentlyVisible]}
|
||||
<Button
|
||||
className="dropdown-button"
|
||||
onClick={this.handleDropDownClick}
|
||||
|
@ -243,7 +241,8 @@ class AnnualReport extends React.Component {
|
|||
</Button>
|
||||
</div>
|
||||
{this.state.dropdownVisible ?
|
||||
<div>
|
||||
/* Bottom Bar */
|
||||
<div className="inner">
|
||||
<hr />
|
||||
{subnav}
|
||||
</div> :
|
||||
|
@ -708,7 +707,9 @@ class AnnualReport extends React.Component {
|
|||
ref={this.setRef(SECTIONS.donate)}
|
||||
>
|
||||
<FlexRow className="donate-info">
|
||||
<img src="/images/annual-report/donate-illustration.svg" />
|
||||
<MediaQuery minWidth={frameless.tabletPortrait}>
|
||||
<img src="/images/annual-report/donate-illustration.svg" />
|
||||
</MediaQuery>
|
||||
<div className="donate-content">
|
||||
<h2 className="donate-h2">
|
||||
<FormattedMessage id="annualReport.donateTitle" />
|
||||
|
|
|
@ -304,11 +304,13 @@ h5 {
|
|||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
|
||||
vertical-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
img {
|
||||
height: 1.75rem;
|
||||
padding-left: 1.2rem;
|
||||
margin-top: -4px;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -495,13 +497,17 @@ h5 {
|
|||
}
|
||||
|
||||
.donate-section {
|
||||
height: 500px;
|
||||
// height: 500px;
|
||||
background-color: #0EBD8C;
|
||||
|
||||
.donate-info {
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 84px 0px;
|
||||
|
||||
@media #{$medium-and-smaller} {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.donate-content {
|
||||
|
@ -725,6 +731,10 @@ img.tips-icon {
|
|||
width: 100%;
|
||||
height: 58px;
|
||||
|
||||
color: $type-white;
|
||||
font-size: .85rem;
|
||||
font-weight: bold;
|
||||
|
||||
.flex-row {
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -734,10 +744,6 @@ img.tips-icon {
|
|||
white-space: nowrap;
|
||||
color: $type-white;
|
||||
font-size: .85rem;
|
||||
|
||||
&.selectedItem, &:hover {
|
||||
border-bottom: 1px solid $ui-white;
|
||||
}
|
||||
}
|
||||
|
||||
.sectionIndicator {
|
||||
|
@ -745,7 +751,7 @@ img.tips-icon {
|
|||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
height: 50px;
|
||||
height: 58px;
|
||||
|
||||
p {
|
||||
color: $ui-white;
|
||||
|
@ -769,27 +775,40 @@ img.tips-icon {
|
|||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
height: 0;
|
||||
border-top: 1px solid $box-shadow-light-gray;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media #{$medium-and-smaller} {
|
||||
height: auto;
|
||||
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
-webkit-flex-direction: row;
|
||||
|
||||
justify-content: flex-start;
|
||||
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 10px;
|
||||
margin: 5px;
|
||||
border: 1px solid $type-white;
|
||||
border-radius: 10px;
|
||||
margin: 5px 10px 5px 0px;
|
||||
border: 1px solid $box-shadow-light-gray;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
background-color: $box-shadow-gray;
|
||||
&.selectedItem {
|
||||
border-bottom: 1px solid $box-shadow-light-gray;
|
||||
background-color: $box-shadow-light-gray;
|
||||
}
|
||||
}
|
||||
|
||||
// Would be good to see if this works in RTL...
|
||||
[dir="rtl"] a {
|
||||
margin-left: 10px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue