mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
work on map responsiveness
This commit is contained in:
parent
971f19b352
commit
04b76feea1
3 changed files with 73 additions and 13 deletions
|
@ -66,7 +66,7 @@ const WorldMap = props => (
|
|||
pad: 0,
|
||||
autoexpand: true
|
||||
},
|
||||
autosize: false,
|
||||
//autosize: true,
|
||||
width: props.mapWidth,
|
||||
height: props.mapHeight
|
||||
}
|
||||
|
|
|
@ -679,6 +679,8 @@ class AnnualReport extends React.Component {
|
|||
</div>
|
||||
<img src="/images/annual-report/milestones/community-growth-graph.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="map-inner">
|
||||
<div className="reach-map">
|
||||
<h3>
|
||||
<FormattedMessage id="annualReport.reachGlobalCommunity" />
|
||||
|
@ -686,15 +688,55 @@ class AnnualReport extends React.Component {
|
|||
<p>
|
||||
<FormattedMessage id="annualReport.reachMapBlurb" />
|
||||
</p>
|
||||
<WorldMap
|
||||
className="map"
|
||||
colorIndex={colorIndex}
|
||||
countryData={countryData}
|
||||
countryNames={countryNames}
|
||||
mapHeight={600}
|
||||
mapWidth={1200}
|
||||
/>
|
||||
<MediaQuery minWidth={frameless.desktop}>
|
||||
<WorldMap
|
||||
className="map"
|
||||
colorIndex={colorIndex}
|
||||
countryData={countryData}
|
||||
countryNames={countryNames}
|
||||
mapHeight={530}
|
||||
mapWidth={1060}
|
||||
/>
|
||||
</MediaQuery>
|
||||
<MediaQuery
|
||||
maxWidth={frameless.desktop - 1}
|
||||
minWidth={frameless.tabletPortrait}
|
||||
>
|
||||
<WorldMap
|
||||
className="map"
|
||||
colorIndex={colorIndex}
|
||||
countryData={countryData}
|
||||
countryNames={countryNames}
|
||||
mapHeight={450}
|
||||
mapWidth={900}
|
||||
/>
|
||||
</MediaQuery>
|
||||
<MediaQuery
|
||||
maxWidth={frameless.tabletPortrait - 1}
|
||||
minWidth={frameless.mobileIntermediate}
|
||||
>
|
||||
<WorldMap
|
||||
className="map"
|
||||
colorIndex={colorIndex}
|
||||
countryData={countryData}
|
||||
countryNames={countryNames}
|
||||
mapHeight={400}
|
||||
mapWidth={800}
|
||||
/>
|
||||
</MediaQuery>
|
||||
<MediaQuery maxWidth={frameless.mobileIntermediate - 1}>
|
||||
<WorldMap
|
||||
className="map"
|
||||
colorIndex={colorIndex}
|
||||
countryData={countryData}
|
||||
countryNames={countryNames}
|
||||
mapHeight={172}
|
||||
mapWidth={396}
|
||||
/>
|
||||
</MediaQuery>
|
||||
</div>
|
||||
</div>
|
||||
<div className="inner">
|
||||
<div className="reach-translation">
|
||||
<div className="reach-translation-intro">
|
||||
<h3>
|
||||
|
|
|
@ -406,26 +406,44 @@ p {
|
|||
img {
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
@media #{$intermediate-and-smaller} {
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.map-inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.reach-map {
|
||||
//width: 1064px;
|
||||
width: 1064px;
|
||||
background-color: $ui-white;
|
||||
border-radius: 6px;
|
||||
color: $type-gray;
|
||||
padding: 48px 0;
|
||||
padding-top: 48px;
|
||||
margin: 52px 0;
|
||||
|
||||
text-align: center;
|
||||
|
||||
h3, p {
|
||||
color: $type-gray;
|
||||
padding: 0 48px;
|
||||
}
|
||||
|
||||
@media #{$intermediate-and-smaller} {
|
||||
width: 100%;
|
||||
border-radius: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.reach-translation {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
max-width: 780px;
|
||||
margin-bottom: 100px;
|
||||
|
@ -445,8 +463,7 @@ p {
|
|||
|
||||
.map {
|
||||
margin-top: 20px;
|
||||
margin-left: -40px;
|
||||
padding: 40px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -546,6 +563,7 @@ p {
|
|||
.moderation-and-guidelines {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.community-moderation {
|
||||
|
|
Loading…
Reference in a new issue