Add Pre-footer (#199)

* create PreFooter components and styles

* add PreFooter to main Footer Component and adjust Footer styles
This commit is contained in:
Daniel Ternyak 2017-09-15 14:38:11 -07:00 committed by GitHub
parent c88e96d603
commit c0cd228336
4 changed files with 123 additions and 89 deletions

View File

@ -0,0 +1,19 @@
import React from 'react';
import './PreFooter.scss';
const PreFooter = () => {
return (
<section className="pre-footer">
<div className="container">
<p>
MyEtherWallet.com does not hold your keys for you. We cannot access
accounts, recover keys, reset passwords, nor reverse transactions.
Protect your keys &amp; always check that you are on correct URL.
<a href="#"> You are responsible for your security.</a>
</p>
</div>
</section>
);
};
export default PreFooter;

View File

@ -0,0 +1,12 @@
@import "common/sass/variables";
.pre-footer {
padding: 1rem;
box-shadow: 16px 16px 47px 0 rgba(0, 0, 0, .07);
margin-top: 5rem;
background-color: white;
text-align: center;
p {
font-size: $font-size-medium;
}
}

View File

@ -3,6 +3,7 @@ import translate from 'translations';
import { donationAddressMap } from 'config/data'; import { donationAddressMap } from 'config/data';
import logo from 'assets/images/logo-myetherwallet.svg'; import logo from 'assets/images/logo-myetherwallet.svg';
import { bityReferralURL } from 'config/data'; import { bityReferralURL } from 'config/data';
import PreFooter from './PreFooter';
import './index.scss'; import './index.scss';
const LINKS_LEFT = [ const LINKS_LEFT = [
@ -94,6 +95,8 @@ const LINKS_SOCIAL = [
export default class Footer extends Component { export default class Footer extends Component {
render() { render() {
return ( return (
<div>
<PreFooter />
<footer className="Footer" role="contentinfo" aria-label="footer"> <footer className="Footer" role="contentinfo" aria-label="footer">
<div className="Footer-column Footer-about"> <div className="Footer-column Footer-about">
<p aria-hidden="true"> <p aria-hidden="true">
@ -190,6 +193,7 @@ export default class Footer extends Component {
<p>Latest Block#: ?????</p> <p>Latest Block#: ?????</p>
</div> </div>
</footer> </footer>
</div>
); );
} }
} }

View File

@ -4,7 +4,6 @@
.Footer { .Footer {
background-color: $ether-navy; background-color: $ether-navy;
color: white; color: white;
margin-top: 100px;
padding-top: $space-xs; padding-top: $space-xs;
padding-bottom: $space-sm; padding-bottom: $space-sm;
display: flex; display: flex;