Skip to content

Commit

Permalink
chore: favicon and manifest changes
Browse files Browse the repository at this point in the history
refactor: styles revamp
refactor: code cleanup and commenting
  • Loading branch information
Andre Neves committed Nov 5, 2018
1 parent 689e3e8 commit 3ec1cc4
Show file tree
Hide file tree
Showing 29 changed files with 1,325 additions and 273 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# keys
ga.js

# testing
/coverage

Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,29 @@

Lightning Decoder is a utility app that helps with understanding the individual parts of a Lightning Network Invoice/Payment Request (BOLT 11). It aims to be a tool for developers building applications on top of the LN network.

## Installing & Developing

To run this application locally, simply clone the repo and run `yarn` or `npm install` to install all dependencies. You should then be able to run `yarn start` or `npm start` to spin up a local development server.

## Building for Production

To build the assets for production, use script `yarn build` or `npm run build`. A `/build` top-level folder will be created, hosting all of the necessary files and assets bundled for serving in production.

## Deployment

This application uses Now to handle deployment. You should modify the configuration in `now.json` to match your needs, and then run `now`. Now will pick up

## Analytics Configuration

You will note that there's a missing `ga.js` file inside of `/constants` folder. In order to bundle the application correctly, you need to create your own Google Analytics `GA_CODE` variable in a file called `ga.js`.

```js
// Google Analytics Constants
export const GA_CODE = 'UA-XXXXXXX-X';
```

## Contributions

I'm always aiming to introduce new features and improvements to the application. If you see a need and would like to contribute, please send a PR with detailed descriptions and I'll evaluate as early as I can.

MIT Licensed 2018
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"node-sass": "^4.9.4",
"react": "^16.6.0",
"react-dom": "^16.6.0",
"react-ga": "^2.5.3",
"react-scripts": "2.1.1",
"safe-buffer": "^5.1.1",
"secp256k1": "^3.4.0",
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 17 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link
rel="shortcut icon"
type="image/png"
href="%PUBLIC_URL%/favicon.png"
>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
>
<meta
name="theme-color"
content="#000000"
>
<link
rel="manifest"
href="%PUBLIC_URL%/manifest.json"
>
<title>
Lightning Decoder | Decode Lightning Network BOLT11 Invoices
</title>
Expand Down
6 changes: 3 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Lightning Decoder",
"name": "Lightning Decoder",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -11,5 +11,5 @@
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
"background_color": "#f3f3f3"
}
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { formatDetailsKey } from './utils/keys';
import { formatTimestamp } from './utils/timestamp';

// Styles
import './app.scss';
import './assets/styles/main.scss';

// Assets
import arrowImage from './assets/images/arrow.svg';
Expand Down
260 changes: 0 additions & 260 deletions src/app.scss

This file was deleted.

8 changes: 8 additions & 0 deletions src/assets/styles/base/colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Colors
$app-background: #292929;
$background-primary: #000000;
$text-primary: #f3f3f3;
$text-secondary: #838383;
$text-tertiary: #979797;
$error-color: #3e0203;
$border-color: #212020;
Loading

0 comments on commit 3ec1cc4

Please sign in to comment.