-
Notifications
You must be signed in to change notification settings - Fork 1
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 #59 from empowerhack/49/coming-soon
[#49] Coming Soon page
- Loading branch information
Showing
17 changed files
with
258 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,700'); | ||
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:100,400,700'); | ||
|
||
// **** Fonts **** // | ||
$font-family: 'Josefin Sans', sans-serif; | ||
|
||
// **** Colours **** // | ||
$white: white; | ||
|
||
$button-fg: #222222; | ||
$button-bg: #fddf50; | ||
$button-fg-hover: #fddf50; | ||
$button-bg-hover: #222222; |
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,36 @@ | ||
.dml-button { | ||
background-color: $button-bg; | ||
border-color: $button-bg; | ||
border-radius: 2em; | ||
margin: 3em 0; | ||
padding: 1em; | ||
width: 15em; | ||
font-weight: bold; | ||
font-size: 16px; | ||
|
||
@include breakpoint(small) { | ||
margin: 1.5em 0; | ||
} | ||
|
||
> a { | ||
color: $button-fg; | ||
background-color: $button-bg; | ||
|
||
&:hover { | ||
color: $button-fg-hover; | ||
background-color: $button-bg-hover; | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: $button-bg-hover; | ||
border-color: $button-bg-hover; | ||
|
||
> a { | ||
color: $button-fg-hover; | ||
background-color: $button-bg-hover; | ||
border-color: $button-bg-hover; | ||
} | ||
} | ||
} |
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,116 @@ | ||
.coming-soon-wrapper { | ||
background-image: url('../assets/images/coming_soon_large.jpg'); | ||
background-position: top center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
// background-size: 100% auto; | ||
height: 100%; | ||
min-width: 100%; | ||
box-shadow: inset 0px -4px 14px 0px rgba(50, 50, 50, 0.71); | ||
z-index: 0; | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
padding-bottom: 40px; | ||
|
||
@include breakpoint(medium) { | ||
background-image: url('../assets/images/coming_soon_medium.jpg'); | ||
} | ||
|
||
@include breakpoint(small) { | ||
background-image: url('../assets/images/coming_soon_small.jpg'); | ||
} | ||
|
||
} | ||
|
||
.coming-soon-wrapper:after { | ||
content: ''; | ||
background: linear-gradient(135deg, #333, #000); | ||
width: 100%; | ||
height: 100%; | ||
opacity: 0.7; | ||
top: 0; | ||
left: 0; | ||
display: block; | ||
z-index: 1; | ||
position: absolute; | ||
} | ||
|
||
.coming-soon-footer { | ||
color: #c0c0c0; | ||
background-color: #333333; | ||
padding: 1em; | ||
} | ||
|
||
.coming-soon-content { | ||
display: block; | ||
z-index: 2; | ||
justify-content: center; | ||
text-align: center; | ||
height: 100%; | ||
max-width: 65%; | ||
font-family: $font-family; | ||
color: #c0c0c0; | ||
|
||
h1 { | ||
font-size: 6em; | ||
font-weight: 100; | ||
|
||
@include breakpoint(medium) { | ||
font-size: 4em; | ||
} | ||
|
||
@include breakpoint(small) { | ||
font-size: 3em; | ||
} | ||
} | ||
|
||
h2 { | ||
font-size: 3em; | ||
font-weight: 100; | ||
margin: 1.5em 0; | ||
|
||
@include breakpoint(medium) { | ||
font-size: 2em; | ||
} | ||
|
||
@include breakpoint(small) { | ||
font-size: 2em; | ||
} | ||
} | ||
|
||
.page-header { | ||
border: 0; | ||
} | ||
|
||
p { | ||
font-size: 1.25em; | ||
font-weight: 400; | ||
} | ||
|
||
a { | ||
color: #c5093b; | ||
|
||
&:hover { | ||
text-decoration: none; | ||
color: #ff558f; | ||
} | ||
} | ||
|
||
.dml-logo { | ||
background-image: url('../assets/images/DML-Logo-web-150x-high.png'); | ||
background-position: top center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
height: 150px; | ||
margin: 0 auto; | ||
text-indent: -9999px; | ||
width: 250px; | ||
} | ||
|
||
.eh-logo { | ||
background-color: #fff; | ||
padding: 10px; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
--- | ||
|
||
@import "background"; | ||
@import "coming_soon"; | ||
@import "button"; |
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,23 @@ | ||
import React from 'react'; | ||
import { comingSoon } from '../copy/coming_soon.js'; | ||
|
||
export default class ComingSoonLayout extends React.Component { | ||
static get propTypes() { | ||
return { | ||
children: React.PropTypes.any | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<div className="container-fluid coming-soon-wrapper"> | ||
{ this.props.children } | ||
</div> | ||
<div className="coming-soon-footer"> | ||
{ comingSoon.footerLine } | ||
</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
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,27 @@ | ||
import React from 'react'; | ||
import { PageHeader } from 'react-bootstrap-4'; | ||
|
||
import { comingSoon } from '../../copy/coming_soon.js'; | ||
import DMLButton from '../shared/DMLButton.jsx'; | ||
|
||
export default class ComingSoon extends React.Component { | ||
render() { | ||
return ( | ||
<div className="coming-soon-content"> | ||
<PageHeader className="title">{ comingSoon.title }</PageHeader> | ||
|
||
<div className="dml-logo"></div> | ||
|
||
<h2>{ comingSoon.tagline }</h2> | ||
|
||
<div dangerouslySetInnerHTML={ comingSoon.description } /> | ||
|
||
<DMLButton buttonText={ comingSoon.callToActionText } buttonURL={ comingSoon.callToActionURL } /> | ||
|
||
<div dangerouslySetInnerHTML={ comingSoon.moreInfo } /> | ||
|
||
<a href="http://empowerhack.io#drawmylife"><img className="eh-logo" width="100" src="/assets/images/empowerhack-logo.png" /></a> | ||
</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,18 @@ | ||
import React from 'react'; | ||
|
||
export default class DMLButton extends React.Component { | ||
static get propTypes() { | ||
return { | ||
buttonText: React.PropTypes.string, | ||
buttonURL: React.PropTypes.string | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<button className="btn btn-primary dml-button" role="button"> | ||
<a href={ this.props.buttonURL }>{ this.props.buttonText }</a> | ||
</button> | ||
); | ||
} | ||
} |
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,13 @@ | ||
export const comingSoon = { | ||
title: 'Coming Soon', | ||
tagline: 'A Perception of Migration Through Anonymised Children\'s Drawings & Data', | ||
callToActionText: 'Contact Us', | ||
callToActionURL: 'mailto:[email protected]', | ||
description: {__html: ` | ||
<p>Draw My Life is inspired by how children's art therapy in the field can become a basis for better data around the needs and experience of refugee children.</p> | ||
`}, | ||
moreInfo: {__html: ` | ||
<p>More about Draw My Life and other projects at <a href="http://empowerhack.io/#drawmylife">EmpowerHack</a></p> | ||
`}, | ||
footerLine: 'Photo credit: Rachel Unkovic, International Rescue Committee (via Flickr)' | ||
}; |