Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/_sass/coming_soon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.coming-soon {
.container-fluid {
padding-top: 220px;
background-image: url(../assets/images/coming_soon.png);
background-position: top center;
background-repeat: no-repeat;
background-size: cover;
background-color: #fff;
text-align: center;
min-height: 800px;
}

h1 {
font-size: 6em;
}

.dml-logo {
width: 250px;
height: 150px;
background-image: url(../assets/images/DML-Logo-web-150x-high.png);
background-position: top center;
background-repeat: no-repeat;
background-size: cover;
text-indent: -9999px;
margin: 0 auto;
}
}
3 changes: 3 additions & 0 deletions src/_sass/shared.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.dml-button {

}
Binary file added src/assets/images/DML-Logo-web-150x-high.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/coming_soon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
---

@import "background";
@import "coming_soon";
22 changes: 22 additions & 0 deletions webpack/components/ComingSoonLayout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';

export default class ComingSoonLayout extends React.Component {
static get propTypes() {
return {
children: React.PropTypes.any
};
}

render() {
return (
<div className="page-wrap coming-soon">

<div className="container-fluid">
<div className="wrapper">
{ this.props.children }
</div>
</div>
</div>
);
}
}
2 changes: 1 addition & 1 deletion webpack/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Footer extends React.Component {
render() {
const _displayFooterItem = Object.keys(nav).map((key, index) => {
return (
<LinkContainer to={ '/' + key } key={ index }><a eventKey={ index }>{ nav[key] }</a></LinkContainer>
<LinkContainer to={ '/wip/' + key } key={ index }><a eventKey={ index }>{ nav[key] }</a></LinkContainer>
);
});

Expand Down
2 changes: 1 addition & 1 deletion webpack/components/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Nav extends React.Component {
render() {
const _displayNavItem = Object.keys(nav).map((key, index) => {
return (
<LinkContainer to={ '/' + key } key={ index }><NavItem eventKey={ index }>{ nav[key] }</NavItem></LinkContainer>
<LinkContainer to={ '/wip/' + key } key={ index }><NavItem eventKey={ index }>{ nav[key] }</NavItem></LinkContainer>
);
});

Expand Down
10 changes: 8 additions & 2 deletions webpack/components/Root.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';

import ComingSoonLayout from './ComingSoonLayout.jsx';
import ComingSoon from './pages/ComingSoon.jsx';

import Layout from './Layout.jsx';
import About from './pages/About.jsx';
import Contact from './pages/Contact.jsx';
Expand All @@ -16,8 +19,11 @@ module.exports = React.createClass({
render() {
return (
<Router history={ hashHistory }>
<Route path="/" component={ Layout }>
<IndexRoute component={ Home } />
<Route path="/" component={ ComingSoonLayout }>
<IndexRoute component={ ComingSoon } />
</Route>

<Route path="/wip" component={ Layout }>
<Route path="home" component={ Home }/>
<Route path="about" component={ About }/>
<Route path="contact" component={ Contact }/>
Expand Down
25 changes: 25 additions & 0 deletions webpack/components/pages/ComingSoon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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="container">
<PageHeader className="title">{ comingSoon.title }</PageHeader>

<div className="dml-logo">
Draw My Life logo
</div>

<p>{ comingSoon.tagline }</p>

<DMLButton buttonText={ comingSoon.callToActionText } buttonURL={ comingSoon.callToActionURL } />

<div dangerouslySetInnerHTML={ comingSoon.description } />
</div>
);
}
}
18 changes: 18 additions & 0 deletions webpack/components/shared/DMLButton.jsx
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 (
<div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a button rather than a div?

<a className="btn btn-primary dml-button" href={ this.props.buttonURL } role="button">{ this.props.buttonText }</a>
</div>
);
}
}
11 changes: 11 additions & 0 deletions webpack/copy/coming_soon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const comingSoon = {
title: 'Coming Soon',
tagline: 'A Perception of Migration Through Anonymised Childrens\' Drawings & Data',
callToActionText: 'Contact Us',
callToActionURL: 'mailto:drawmylife@empowerhack.com',
description: {__html: `
<p>How can the humanitarian community strengthen and understand the voice of child refugees?</p>
<p>Draw My Life is inspired by how childrens' art therapy in the field can become a basis for better data around the needs and experience of refugee children.</p>
<p>Read more about us and other projects at <a href="http://empowerhack.io/#drawmylife">EmpowerHack</a>.</p>
`}
};