From d1de8cf447b31e2edd7c01000b1a351d93db2ce7 Mon Sep 17 00:00:00 2001 From: igor Date: Sun, 9 Dec 2018 22:46:14 +0000 Subject: [PATCH] ADD: about page --- controllers/website.js | 6 + index.js | 1 + {templates => static}/css/lndhub.css | 0 {templates => static}/favicon.png | Bin {templates => static}/img/app-store-badge.svg | 0 {templates => static}/img/iphoneX.png | Bin {templates => static}/img/lndhub-graph.png | Bin {templates => static}/img/lndhub.svg | 0 .../img/play-store-badge.svg | 0 templates/about.html | 96 +++ templates/index.html | 605 +++++++++++++++--- 11 files changed, 626 insertions(+), 82 deletions(-) rename {templates => static}/css/lndhub.css (100%) rename {templates => static}/favicon.png (100%) rename {templates => static}/img/app-store-badge.svg (100%) rename {templates => static}/img/iphoneX.png (100%) rename {templates => static}/img/lndhub-graph.png (100%) rename {templates => static}/img/lndhub.svg (100%) rename {templates => static}/img/play-store-badge.svg (100%) create mode 100644 templates/about.html diff --git a/controllers/website.js b/controllers/website.js index 5cb775b..242eb1d 100644 --- a/controllers/website.js +++ b/controllers/website.js @@ -16,6 +16,12 @@ router.get('/', function(req, res) { }); }); +router.get('/about', function(req, res) { + let html = fs.readFileSync('./templates/about.html').toString('utf8'); + res.setHeader('Content-Type', 'text/html'); + return res.status(200).send(mustache.render(html, {})); +}); + router.use(function(req, res) { res.status(404).send('404'); }); diff --git a/index.js b/index.js index 2942aec..f3d90fe 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ let config = require('./config'); app.use(bodyParser.urlencoded({ extended: false })); // parse application/x-www-form-urlencoded app.use(bodyParser.json(null)); // parse application/json +app.use('/static', express.static('static')); app.use(require('./controllers/api')); app.use(require('./controllers/website')); diff --git a/templates/css/lndhub.css b/static/css/lndhub.css similarity index 100% rename from templates/css/lndhub.css rename to static/css/lndhub.css diff --git a/templates/favicon.png b/static/favicon.png similarity index 100% rename from templates/favicon.png rename to static/favicon.png diff --git a/templates/img/app-store-badge.svg b/static/img/app-store-badge.svg similarity index 100% rename from templates/img/app-store-badge.svg rename to static/img/app-store-badge.svg diff --git a/templates/img/iphoneX.png b/static/img/iphoneX.png similarity index 100% rename from templates/img/iphoneX.png rename to static/img/iphoneX.png diff --git a/templates/img/lndhub-graph.png b/static/img/lndhub-graph.png similarity index 100% rename from templates/img/lndhub-graph.png rename to static/img/lndhub-graph.png diff --git a/templates/img/lndhub.svg b/static/img/lndhub.svg similarity index 100% rename from templates/img/lndhub.svg rename to static/img/lndhub.svg diff --git a/templates/img/play-store-badge.svg b/static/img/play-store-badge.svg similarity index 100% rename from templates/img/play-store-badge.svg rename to static/img/play-store-badge.svg diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..2d9efd3 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + LNDhub - Open source Bank + + + + + + +
+
+
+

+
+
+ +
+

An open source bank

+ +

LNDHub is an opensource wrapper for Lightning Network Daemon. It provides
+ separate accounts and trust minimization for end users.

+ +

We want to hide the complexity of running a node, and take over the work of a hub operator. Users want to make payments without the hassle of operating a node, opening channels, take care of liquidity or watching these channels.

+

We want to bring Lightning payments to everyone and speed up Bitcoin adoption.

+

We called it LNDhub.

+
+ + Star +
+
+
+
+
+
+

How does it work?

+ +

When the user sends Bitcoin to a dedicated top-up address, this balance is added to his account on LNDhub. Then, the user can use this balance to pay Lightning invoices, from everything to coffees to any micro-transaction he wants. But under the hood, it’s actually LNDhub who pays the invoice, deducting the user’s account balance. It works the same way when the user wants to receive a Lightning payment - it’s LNDhub who creates a Lightning invoice and actually receives the value on one of its channels.

+
+
+
+
+

Where can I test it?

+
+
+ +
+
+

Live on Blue wallet, a bitcoin wallet for iOS and android. LNDhub implementation on Blue wallet takes full advantage of this revolutionary payments network.

+

Enabling Blue wallet users to have unfairly cheap and fast Bitcoin transactions.. +

+ +
+
+ +
+
+
+
+

Why should you use it?

+
+
+

Read our article on Medium on the reasoning behind the system and the pros and cons.

+
+ +
+
+
+

 

+
+
+ + + + + + diff --git a/templates/index.html b/templates/index.html index bc09586..f0cc344 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,92 +1,533 @@ - - - - - - - + + + + + + - + - - - LNDhub - Open source Bank - - - + LndHub + + + + - +
-
-
-
-

+
+
+
 _________________________
+
/ Hi! How are you?        \
+
|                         |
+
\ Welcome to LNDHUB!      /
+
 -------------------------
+
        \   ^__^
+
         \  (oo)\_______
+
            (__)\       )\/\
+
                ||----w |
+
                ||     ||
+ +
 
+
 
+
 
+
Hello world!
+
Welcome to LndHub, opensource wrapper for Lightning Network Daemon
+
It provides separate accounts and trust minimization for end users
+
 
+
LND uris:
+ {{#uris}} +
{{.}}
+ {{/uris}} +
 
+
num_active_channels:
+
{{num_active_channels}}
+
 
+
num_peers:
+
{{num_peers}}
+
 
+
version:
+
{{version}}
+
 
+
Fork me on GitHub!
+
https://github.com/BlueWallet/LndHub
+
 
+
Start using it on MainNet (zero configuration required):
+
https://bluewallet.io
+
 
+ +
Click here to find out more!
+
 
+
 
+
 
-
- -
-

An open source bank

-

We want to hide the complexity of running a node, and take over the work of a hub operator. Users want to make payments without the hassle of operating a node, opening channels, take care of liquidity or watching these channels.

-

We want to bring Lightning payments to everyone and speed up Bitcoin adoption.

-

We called it LNDhub, a custodian Lightning wallet. A 3rd layer solution.

-
- - Star -
-
-
-
-
-

How does it work?

- -

When the user sends Bitcoin to a dedicated top-up address, this balance is added to his account on LNDhub. Then, the user can use this balance to pay Lightning invoices, from everything to coffees to any micro-transaction he wants. But under the hood, it’s actually LNDhub who pays the invoice, deducting the user’s account balance. It works the same way when the user wants to receive a Lightning payment - it’s LNDhub who creates a Lightning invoice and actually receives the value on one of its channels.

+ +
+
+ $
-
-
-
-

Where can I test it?

-
-
- -
-
-

Live on Blue wallet, a bitcoin wallet for iOS and android. LNDhub implementation on Blue wallet takes full advantage of this revolutionary payments network.

-

Enabling Blue wallet users to have unfairly cheap and fast Bitcoin transactions.. -

- -
-
- -
-
-
-
-

Why should you use it?

-
-
-

Read our article on Medium on the reasoning behind the system and the pros and cons.

-
- -
-
-
-

 

-
-
- - - - - - + +
+ +
+ + + + + \ No newline at end of file