Skip to content

Commit

Permalink
Merge pull request #192 from poanetwork/feature/#190-update-style-for…
Browse files Browse the repository at this point in the history
…-ethereum-classic-network

(Feature) Update style for Ethereum Classic network
  • Loading branch information
gabitoesmiapodo committed Mar 22, 2019
2 parents 346452a + 765d9e1 commit 4be5c19
Show file tree
Hide file tree
Showing 147 changed files with 2,440 additions and 1,803 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ REACT_APP_DESCRIPTION="The POA cross-chain bridge serves as a method of transfer

# RSK
#REACT_APP_DESCRIPTION="The TokenBridge serves as a method of transferring Bancor Network tokens between the Ethereum network to Rootstock network in a quick and cost-efficient manner."

# To use Ethereum-classic styles
#APP_STYLES=classic
16 changes: 13 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"bignumber.js": "^6.0.0",
"chromedriver": "^2.35.0",
"coveralls": "^3.0.0",
"dotenv": "^7.0.0",
"fs-extra": "^5.0.0",
"gh-pages": "^1.1.0",
"mobx": "^4.0.2",
Expand All @@ -29,10 +30,11 @@
"web3": "1.0.0-beta.30"
},
"scripts": {
"build-css": "node-sass-chokidar src/assets/stylesheets/application.scss -o src/assets/stylesheets --output-style=compressed",
"select-css-theme": "node scripts/selectTheme.js",
"build-css": "node-sass-chokidar src/assets/stylesheets -o src/assets/stylesheets --output-style=compressed -m application*.css",
"watch-css": "nodemon -e scss -x \"npm run build-css\"",
"start": "npm run build-css && react-app-rewired start",
"build": "npm run compile:contracts && npm run build-css && react-app-rewired build",
"start": "npm run build-css && npm run select-css-theme && react-app-rewired start",
"build": "npm run compile:contracts && npm run build-css && npm run select-css-theme && react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"startE2e": "mocha -b ./e2e-script/test.js",
"start:blocks": "node ./e2e-script/scripts/blocks.js",
Expand Down
25 changes: 1 addition & 24 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,9 @@
<meta property="og:url" content="https://poanetwork.github.io/bridge-ui" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/images/bridgeogimage.jpg">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,700" rel="stylesheet">
<link rel="manifest" href="%PUBLIC_URL%/favicons/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicons/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>POA Bridge UI app</title>
<!-- Start of poanet Zendesk Widget script -->
<script>
Expand Down Expand Up @@ -54,16 +42,5 @@
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>

</html>
15 changes: 15 additions & 0 deletions scripts/selectTheme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const path = require('path');
require('dotenv').config({
path: path.resolve(__dirname, '..', '.env')
});
const fs = require('fs');

const stylePath = path.resolve(__dirname, '..', 'src', 'assets', 'stylesheets');
const destinationFilename = 'application.css';
let filename;
if (process.env.APP_STYLES === 'classic') {
filename = 'application.classic.css'
} else {
filename = 'application.core.css'
}
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename));
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class App extends React.Component {

componentDidMount() {
const disclaimerDisplayed = getItem(DISCLAIMER_KEY)

if(!disclaimerDisplayed) {
this.setState({ showDisclaimer: true })
}
Expand All @@ -32,7 +33,7 @@ export class App extends React.Component {
render() {
const { showDisclaimer, showMobileMenu } = this.state
return (
<div>
<div className={showMobileMenu ? 'mobile-menu-is-open' : ''}>
<Route component={Loading}/>
<Route component={SweetAlert}/>
<Route render={() =>
Expand Down
Binary file removed src/assets/images/bg.png
Binary file not shown.
Binary file removed src/assets/images/bridge.png
Binary file not shown.
Binary file removed src/assets/images/bridge@2x.png
Binary file not shown.
File renamed without changes
Binary file removed src/assets/images/eth@2x.png
Binary file not shown.
Binary file removed src/assets/images/i.png
Binary file not shown.
Binary file removed src/assets/images/i@2x.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/assets/images/icons/copy.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/corner-1.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/corner-2.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-arrow-right.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-close.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-events.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-info.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-menu.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-statistics.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-status.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/images/icons/icon-wallet.svg

This file was deleted.

Binary file removed src/assets/images/loading.png
Binary file not shown.
Binary file removed src/assets/images/loading@2x.png
Binary file not shown.
Binary file removed src/assets/images/logos/logo-ethereum@2x.png
Binary file not shown.
Binary file removed src/assets/images/logos/logo-poa-bottom.png
Binary file not shown.
Binary file removed src/assets/images/logos/logo-poa-bottom@2x.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/assets/images/logos/logo-poa-main-net_small.svg

This file was deleted.

Binary file removed src/assets/images/logos/logo-poa-sokol-purple.png
Binary file not shown.
Binary file removed src/assets/images/logos/logo-top.png
Diff not rendered.
Binary file removed src/assets/images/logos/logo-top@2x.png
Diff not rendered.
File renamed without changes
File renamed without changes
Binary file removed src/assets/images/poa@2x.png
Diff not rendered.
Binary file removed src/assets/images/socials.png
Diff not rendered.
Binary file removed src/assets/images/socials/git.png
Diff not rendered.
Binary file removed src/assets/images/socials/git@2x.png
Diff not rendered.
Binary file removed src/assets/images/socials/telegram.png
Diff not rendered.
Binary file removed src/assets/images/socials/telegram@2x.png
Diff not rendered.
Binary file removed src/assets/images/socials/tw.png
Diff not rendered.
Binary file removed src/assets/images/socials/tw@2x.png
Diff not rendered.
Binary file removed src/assets/images/socials@2x.png
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions src/assets/images/themes/core/logos/logo-foreign-modal.svg
3 changes: 3 additions & 0 deletions src/assets/images/themes/core/logos/logo-foreign.svg
Binary file added src/assets/images/themes/core/logos/logo-home.png
27 changes: 27 additions & 0 deletions src/assets/images/themes/core/logos/logo-loading.svg
32 changes: 32 additions & 0 deletions src/assets/images/themes/core/logos/logo.svg
File renamed without changes
File renamed without changes
File renamed without changes
17 changes: 17 additions & 0 deletions src/assets/images/themes/ethereum-classic/logos/logo-foreign.svg
3 changes: 3 additions & 0 deletions src/assets/images/themes/ethereum-classic/logos/logo-home.svg

0 comments on commit 4be5c19

Please sign in to comment.