-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1761 from hotosm/feature/redesign-homepage
Add more homepage components
- Loading branch information
Showing
58 changed files
with
428 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.org-unicef { | ||
background: no-repeat center url('../img/organizations/unicef.png'); | ||
} | ||
.org-usaid { | ||
background: no-repeat center url('../img/organizations/usaid.png'); | ||
} | ||
.org-gfdrr { | ||
background: no-repeat center url('../img/organizations/gfdrr.png'); | ||
} | ||
.org-aws { | ||
background: no-repeat center url('../img/organizations/aws.png'); | ||
} | ||
.org-redcross { | ||
background: no-repeat center url('../img/organizations/redcross.png'); | ||
} | ||
.org-msf { | ||
background: no-repeat center url('../img/organizations/msf.png'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.testimonial-michaelyani { | ||
background: no-repeat top right url('../img/testimonials/michaelyani.jpg'); | ||
background-size: 70% auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
@import "typography"; | ||
@import "burgermenu"; | ||
@import "extra"; | ||
@import "organizations"; | ||
@import "testimonials"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import messages from './messages'; | ||
// import {RightIcon, LeftIcon} from '../../svgIcons'; | ||
|
||
|
||
export function Testimonials() { | ||
const testimonials = [ | ||
{ | ||
name: 'Michael Yani', | ||
bio: messages.michaelYaniBio, | ||
citation: messages.michaelYaniCitation, | ||
cssCode: 'michaelyani' | ||
} | ||
]; | ||
return( | ||
<div className="pt4-l pb5 ph5-l ph4"> | ||
<h3 className="barlow-condensed blue-dark f1-l f2 fw8 ttu"><FormattedMessage {...messages.testimonialsTitle} /></h3> | ||
{ | ||
// enable it when we have the carousel ready | ||
// <div className="red cf tr pb4"> | ||
// <LeftIcon className="pr2" /> <RightIcon /> | ||
// </div> | ||
} | ||
<div> | ||
{testimonials.map((person, n) => | ||
<div key={n} className={`blue-dark cf testimonial-${person.cssCode}`}> | ||
<div className="w-40-l w-50-m fl ml2-l mt4-ns mt6"> | ||
<div className="bg-red white f3-l f4 pv2 mt5-l pl3 pr1"> | ||
<FormattedMessage {...person.citation} /> | ||
</div> | ||
<div className="w-70-l w-60-m mh3 mh0-ns ph3 pb5-l pt4-l"> | ||
<p className="f4 fw6 mb1 tc">{ person.name },</p> | ||
<p className="f6 tc mt2 mw-3"> | ||
<FormattedMessage {...person.bio} /> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { defineMessages } from 'react-intl'; | ||
|
||
/** | ||
* Internationalized messages for use on homepage. | ||
*/ | ||
export default defineMessages({ | ||
testimonialsTitle: { | ||
id: 'home.testimonials.title', | ||
defaultMessage: "You can make a difference" | ||
}, | ||
michaelYaniCitation: { | ||
id: 'home.testimonials.michaelYani.citation', | ||
defaultMessage: "Mapping has made me learn how to use a smart phone to collect data and direct people to places they didn't know around the district. I have also started teaching other people how to use smart phones to locate places around the district." | ||
}, | ||
michaelYaniBio: { | ||
id: 'home.testimonials.michaelYani.bio', | ||
defaultMessage: "a refugee from Sudan who currently resides in Rhino Refugee Settlement" | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import React from 'react'; | ||
import { Link } from "react-router-dom"; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import messages from './messages'; | ||
import { Button } from '../button'; | ||
|
||
|
||
function contactCard() { | ||
return( | ||
<div className="w-25-l w-100 fl pv2 ph3 bg-white blue-dark shadow-4"> | ||
<h3 className="ma1 pb3 w-70-l w-60-m f3 fw8 ttu barlow-condensed"> | ||
<FormattedMessage {...messages.organizationContactTitle} /> | ||
</h3> | ||
<div className="tc cf mb2"> | ||
<p className="w-100 w-60-m fl tl pr2 f5 lh-title mb4"> | ||
<FormattedMessage {...messages.organizationContactHeadline} /> | ||
</p> | ||
<p> | ||
<Link to={"/contact"}> | ||
<Button className="w-100 w-40-m fl tc bg-red white"> | ||
<FormattedMessage {...messages.organizationContactButton} /> | ||
</Button> | ||
</Link> | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export function WhoIsMapping() { | ||
const organizations = [ | ||
{url: 'https://www.gfdrr.org/', name: 'gfdrr'}, | ||
{url: 'https://www.usaid.gov/', name: 'usaid'}, | ||
{url: 'https://www.redcross.org/', name: 'redcross'}, | ||
{url: 'https://www.unicef.org/', name: 'unicef'}, | ||
{url: 'http://aws.amazon.com/', name: 'aws'}, | ||
{url: 'https://www.msf.org/', name: 'msf'} | ||
]; | ||
return( | ||
<div className="cf v-mid bg-split-blue-white"> | ||
<div className="ph6-l ph4 pt3 pb5 white cf"> | ||
<div className="bg-red mw5"> | ||
<h3 className="pa1 f2 fw8 tc lh-copy white ttu barlow-condensed"> | ||
<FormattedMessage {...messages.whoIsMappingTitle} /> | ||
</h3> | ||
</div> | ||
<div className="w-75-l w-100 fl"> | ||
<p className="pr2 mb4 f5 f4-ns lh-title mw6"> | ||
<FormattedMessage {...messages.whoIsMappingHeadline} /> | ||
</p> | ||
<div className="cf pb4 pb2-l"> | ||
{organizations.map((org, n) => | ||
<div key={n} className="w-50 w-third-l fl pr5 pv4"> | ||
<a href={org.url}> | ||
<div className={`contain org-${org.name} w-auto h3`}></div> | ||
</a> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
{contactCard()} | ||
</div> | ||
</div> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.