This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
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 #17 from freedomofpress/visual-update
Visual update
- Loading branch information
Showing
40 changed files
with
240 additions
and
186 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,16 +1,15 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Button from './Button'; | ||
|
||
|
||
export default class BackButton extends Component { | ||
static contextTypes = { router: PropTypes.object } | ||
|
||
render() { | ||
return ( | ||
<Button className="btn-back" onClick={this.context.router.goBack}> | ||
Back | ||
</Button> | ||
<a className="btn-back" onClick={this.context.router.goBack}> | ||
<i className="fa fa-chevron-left" /> Back | ||
</a> | ||
); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -86,7 +86,7 @@ | |
|
||
.info { | ||
padding: 10px; | ||
color: $borderColor; | ||
color: darken($whiteColor, 40%); | ||
} | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Button from './Button'; | ||
|
||
|
||
export default class HomeButton extends Component { | ||
static contextTypes = { router: PropTypes.object } | ||
|
||
render() { | ||
return ( | ||
<Button className="btn-back" | ||
onClick={() => this.context.router.push('/')}> | ||
Home | ||
</Button> | ||
<a className="btn-back" onClick={() => this.context.router.push('/')}> | ||
<i className="fa fa-chevron-left" /> Home | ||
</a> | ||
); | ||
} | ||
} |
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,32 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './Icon.scss'; | ||
|
||
|
||
/* eslint-disable max-len */ | ||
export default function Icon(props) { | ||
let className = ''; | ||
if (props.type === 'recover') { | ||
className += 'recover-icon'; | ||
} | ||
if (props.type === 'spin') { | ||
className += ' spin'; | ||
} | ||
|
||
return ( | ||
<svg className={`${className} icon`} viewBox="0 0 180 180" version="1.1"> | ||
<g id="Sunder" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> | ||
<g id="Logo" transform="translate(-60.000000, -60.000000)"> | ||
<g id="logo" transform="translate(60.000000, 60.000000)"> | ||
<rect id="bg" fill="transparent" x="0" y="0" width="180" height="180" rx="38"></rect> | ||
<path d="M85.9019093,91.1244232 C82.4225743,89.5593138 80,86.0625682 80,82 C80,76.4771525 84.4771525,72 90,72 C95.5228475,72 100,76.4771525 100,82 C100,86.0625682 97.5774257,89.5593138 94.0980907,91.1244232 L98,108 L82,108 L85.9019093,91.1244232 Z" id="keyhole" fill="#FFD719"></path> | ||
<path d="M107.346948,123.053273 C120.303636,108.657917 129.352857,90.9224416 133.03591,69.1678319 C140.384854,71.2715974 147.125236,73.9065375 153.01812,76.9941535 C142.680491,127.750112 108.300053,152.337217 95.27604,160 L95.27604,134.490535 C99.388122,131.183123 103.455321,127.377244 107.346948,123.053273 Z" id="Path" fill="#7864FF"></path> | ||
<path d="M84.72,159.751421 C71.30484,151.79296 37.24884,127.105115 26.97792,76.8371561 C32.88228,73.7783229 39.62616,71.1682407 46.96932,69.0854082 C50.67192,90.8073102 59.77992,108.540169 72.83076,122.957766 C76.66404,127.19408 80.66892,130.93716 84.72,134.202707 L84.72,159.751421 L84.72,159.751421 Z" id="Path" fill="#19F5FF"></path> | ||
<path d="M25.19988,66.0174169 C24.4224,59.8264851 24,53.2888507 24,46.3914306 C40.401,37.7133979 63.90888,32 90,32 C116.11356,32 139.59768,37.7003148 156,46.3914306 C156,53.3411832 155.57496,59.9259168 154.79352,66.1587146 C137.751,58.0026984 115.46808,53.2090437 91.9074,52.9447647 C91.27248,52.9369148 90.63756,52.9329899 90,52.9329899 L89.93796,52.9329899 L89.84688,52.9329899 C65.69616,52.9329899 42.711,57.7174864 25.19988,66.0174169 Z" id="Path" fill="#FF910A"></path> | ||
</g> | ||
</g> | ||
</g> | ||
</svg> | ||
); | ||
} | ||
Icon.propTypes = { type: PropTypes.string }; |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.