diff --git a/public/index.html b/public/index.html index 75410df..6f71c0c 100644 --- a/public/index.html +++ b/public/index.html @@ -28,12 +28,6 @@ -
-
- -
-
-
diff --git a/src/App.js b/src/App.js index 86df2f7..cfd241f 100644 --- a/src/App.js +++ b/src/App.js @@ -9,6 +9,7 @@ import JSzip from 'jszip'; import FileSaver from 'file-saver'; import { constants } from './constants'; import networkAddresses from './addresses'; +import Header from './Header'; import Footer from './Footer'; import Loading from './Loading'; @@ -167,7 +168,7 @@ class App extends Component { } } render() { - let loader = this.state.loading ? : ''; + let loader = this.state.loading ? : ''; let createKeyBtn = (

Create keys from initial key

@@ -188,11 +189,12 @@ class App extends Component { } return (
+
{loader}
{content}
-
+
); } diff --git a/src/Footer.js b/src/Footer.js index ffeb02e..c18709c 100644 --- a/src/Footer.js +++ b/src/Footer.js @@ -1,7 +1,9 @@ import React from 'react'; import moment from 'moment'; -const Footer = () => ( -
+const Footer = ({netId}) => { + const footerClassName = netId === '77' ? 'sokol' : ''; + return ( +

{moment().format('YYYY')} POA Network. All rights reserved.

@@ -13,6 +15,7 @@ const Footer = () => (

-) + ) +} export default Footer; \ No newline at end of file diff --git a/src/Header.js b/src/Header.js new file mode 100644 index 0000000..ffa3f13 --- /dev/null +++ b/src/Header.js @@ -0,0 +1,14 @@ +import React from 'react'; +let Header = ({netId}) => { + const headerClassName = netId === '77' ? 'sokol' : ''; + const logoClassName = netId === '77' ? 'header-logo-sokol' : 'header-logo'; + return ( +
+
+ +
+
+ ) +} + +export default Header; \ No newline at end of file diff --git a/src/Loading.js b/src/Loading.js index d2369fb..ac7fbf6 100644 --- a/src/Loading.js +++ b/src/Loading.js @@ -1,6 +1,22 @@ import React from 'react'; -const Loading = () => ( -
+const styles = (netId) => { + const core = { + backgroundColor: 'rgba(35, 29, 115, 0.8)' + }; + const sokol = { + backgroundColor: 'rgba(47, 109, 99, 0.8)' + } + switch(netId) { + case '77': + return sokol; + case '99': + return core; + default: + return {}; + } +} +const Loading = ({netId}) => ( +
@@ -11,5 +27,4 @@ const Loading = () => (
) - export default Loading; \ No newline at end of file diff --git a/src/images/logo_sokol.png b/src/images/logo_sokol.png new file mode 100644 index 0000000..fe08d28 Binary files /dev/null and b/src/images/logo_sokol.png differ diff --git a/src/images/logo_sokol@2x.png b/src/images/logo_sokol@2x.png new file mode 100644 index 0000000..701da74 Binary files /dev/null and b/src/images/logo_sokol@2x.png differ diff --git a/src/index/footer.scss b/src/index/footer.scss index 8d2689d..d6eec28 100644 --- a/src/index/footer.scss +++ b/src/index/footer.scss @@ -10,6 +10,10 @@ padding: 20px 10px 0; } + &.sokol { + background-color: #6ac9b9; + } + .container { position: relative; diff --git a/src/index/header.scss b/src/index/header.scss index 7d8f9ed..e8c40d8 100644 --- a/src/index/header.scss +++ b/src/index/header.scss @@ -8,6 +8,11 @@ background-repeat: no-repeat; background-size: cover; + &.sokol { + background-image: none; + background-color: #6ac9b9; + } + &-logo { @include image-2x('../images/logo_ceremony_dapp@2x.png', 182px, 35px); float: left; @@ -16,4 +21,14 @@ background-image: url(../images/logo_ceremony_dapp.png); background-position: 0 0; } + + &-logo-sokol { + @include image-2x('../images/logo_sokol@2x.png', 146px, 35px); + display: block; + width: 146px; + height: 35px; + background-image: url('../images/logo_sokol.png'); + background-position: 0 0; + background-repeat: no-repeat; + } } diff --git a/src/index/index.css b/src/index/index.css index b18f7eb..9f83d76 100644 --- a/src/index/index.css +++ b/src/index/index.css @@ -237,6 +237,8 @@ button:focus { .footer { height: auto; padding: 20px 10px 0; } } + .footer.sokol { + background-color: #6ac9b9; } .footer .container { position: relative; } @media screen and (max-width: 414px) { @@ -282,6 +284,9 @@ button:focus { background-image: url(../images/bg_header.png); background-repeat: no-repeat; background-size: cover; } + .header.sokol { + background-image: none; + background-color: #6ac9b9; } .header-logo { float: left; width: 182px; @@ -292,6 +297,17 @@ button:focus { .header-logo { background-image: url("../images/logo_ceremony_dapp@2x.png"); background-size: 182px 35px; } } + .header-logo-sokol { + display: block; + width: 146px; + height: 35px; + background-image: url("../images/logo_sokol.png"); + background-position: 0 0; + background-repeat: no-repeat; } + @media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) { + .header-logo-sokol { + background-image: url("../images/logo_sokol@2x.png"); + background-size: 146px 35px; } } .keys { display: table;