From ec8a2e9064f555adb0c120400b5a199a37855ac4 Mon Sep 17 00:00:00 2001 From: Bechi Date: Wed, 15 Jan 2014 17:40:29 -0300 Subject: [PATCH 1/4] fix get. blockpage ux --- public/css/common.css | 45 ++++++++++- public/views/block.html | 161 ++++++++++++++++++++++++++++------------ 2 files changed, 156 insertions(+), 50 deletions(-) diff --git a/public/css/common.css b/public/css/common.css index 8853a578..d24c69a2 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -10,6 +10,7 @@ -------------------------------------------------- */ html, body { + color: #373D42; font-family: Ubuntu, sans-serif; height: 100%; /* The html and body elements cannot have any padding or margin. */ @@ -74,13 +75,53 @@ body { line-height: 18px; } +.col-gray { + background-color: #F8F8F8; + padding: 15px; + margin-top: 10px; + width: 350px; + height: 89%; + border-radius: 5px; +} + +.col-gray .address { + float: right; + display: block; + width: 150px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.block-id { + background: #373D42; + border: 3px solid #FFFFFF; + width: 165px; + height: 165px; + margin: 10px auto; + border-radius: :;px; +} + +.block-id h1 { + font-family: Ubuntu-Medium; + font-size: 24px; + color: #FFFFFF; + line-height: 30px; + text-align: center; +} + +.icon-block { + font-size: 27px; + color: white; + margin-top: 20px; +} + /* Set the fixed height of the footer here */ #footer { height: 60px; background-color: #f5f5f5; } - /* Custom page CSS -------------------------------------------------- */ /* Not required for template or sticky footer method. */ @@ -102,7 +143,7 @@ body { } .address { - font-size: 10px; + font-size: 11px; } #search { width: 400px; } diff --git a/public/views/block.html b/public/views/block.html index b843503f..f7c1c919 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -1,29 +1,79 @@
- -
-
-
-
-

Summary

+
+
+
+
+ +
+

Block #{{ block.height }}

-
- + +
+
+

Hashes

+
+
+
+ + + + + + + + + + + + + + + + + + +
Hash{{block.hash}}
Previous Block{{block.previousblockhash}}
Next Block{{block.nextblockhash}}
Merkle Root

{{block.merkleroot}}

+
+
+ +
+
+ +
+

Summary

+
+
+ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -47,36 +97,51 @@
Number Of Transactions{{block.tx.length}} -
Height{{block.height}}
Timestamp{{block.time * 1000 | date:'medium'}}
Number Of Transactions {{block.tx.length}} +
Output Total--
Estimated Transaction Volume --
Transaction Fees --
Height {{block.height}}
Timestamp {{block.time * 1000 | date:'medium'}}
Difficulty {{block.difficulty}}
-
-
-
-
-
-

Hashes

-
-
- +
+
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
Hash{{block.hash}}
Previous Block{{block.previousblockhash}}
Next Block{{block.nextblockhash}}
Merkle Root{{block.merkleroot}}
Relayed By --
Difficulty {{block.difficulty}}
Bits {{block.bits}}
Size {{block.size}}
Version {{block.version}}
Nonce {{block.nonce}}
-
+
+ +

Transactions Transactions contained within this block

+ + + + + + + + + + + +
Hash
{{tx}}
From 12093e82506609b861b34ee0eef06bcb98f66a7a Mon Sep 17 00:00:00 2001 From: Bechi Date: Thu, 16 Jan 2014 14:16:01 -0300 Subject: [PATCH 2/4] block page --- public/views/block.html | 110 ++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 66 deletions(-) diff --git a/public/views/block.html b/public/views/block.html index f7c1c919..94ad6148 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -14,23 +14,23 @@

Hashes

- +
- + - + - + - +
Hash{{block.hash}}{{block.hash}}
Previous Block{{block.previousblockhash}}{{block.previousblockhash}}
Next Block{{block.nextblockhash}}{{block.nextblockhash}}
Merkle Root

{{block.merkleroot}}

{{block.merkleroot}}

@@ -46,9 +46,6 @@
- - - - - - - - - - - - - - - - - - - - - - - -
Number Of Transactions {{block.tx.length}} @@ -73,27 +70,6 @@ Timestamp {{block.time * 1000 | date:'medium'}}
Difficulty{{block.difficulty}}
Bits{{block.bits}}
Size{{block.size}}
Version{{block.version}}
Nonce{{block.nonce}}
@@ -129,44 +105,46 @@
-

Transactions Transactions contained within this block

- - - - - - - - - - - -
Hash
{{tx}}
+
+

Transactions Transactions contained within this block

+ +
+
+ {{tx.txid}} + {{tx.time * 1000 | date:'medium'}} +
+ +
+
+ Emisor +
+
+ +
+
+
+
+

Receptor

+

Receptor

+
+
+

plata del receptor

+

plata del receptor

+
+
+
+
+ +
+ Feeds: {{tx.feeds}} +
+ {{tx.valueOut}} +
+
+
+ +
-
-

Transactions Transactions contained within this block

- - - - - - - - - - - - - - - - - - - - -
Transaction HashDatetimeFeeTransacted Amount
Loading...
{{tx.txid}}{{tx.time * 1000 | date:'medium'}}{{tx.feeds}}{{tx.valueOut}}
-
From 954b0f10b033925f59642c9ec92827452fa8679f Mon Sep 17 00:00:00 2001 From: Bechi Date: Thu, 16 Jan 2014 14:17:24 -0300 Subject: [PATCH 3/4] css fixes --- public/css/common.css | 55 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/public/css/common.css b/public/css/common.css index d24c69a2..127e5be1 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -76,23 +76,36 @@ body { } .col-gray { - background-color: #F8F8F8; + background-color: #F4F4F4; padding: 15px; margin-top: 10px; - width: 350px; + width: 360px; height: 89%; border-radius: 5px; } -.col-gray .address { - float: right; +.ellipsis { display: block; - width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.line20 { + border: 1px solid #D4D4D4; + margin-bottom: 15px; +} + +.line10 { + border: 1px solid #EAEAEA; + margin: 10px 0; +} + +.col-gray .address { + float: right; + width: 150px; +} + .block-id { background: #373D42; border: 3px solid #FFFFFF; @@ -116,12 +129,44 @@ body { margin-top: 20px; } +.block-tx { + border-radius: 2px; + background: #F4F4F4; + margin: 20px 0; + padding: 15px; +} + +.btn-primary { + border-radius: 2px; + background: #64920F; + border: 2px solid #557F08; +} + +.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { + background: #fff; + border: 2px solid #ccc; + color: #373D42; + font-weight: bold; +} + /* Set the fixed height of the footer here */ #footer { height: 60px; background-color: #f5f5f5; } +.line-bot { + padding: 0 0 10px 0; + margin-bottom: 10px; + border-bottom: 2px solid #EAEAEA; +} + +.line-top { + padding: 10px 0; + margin-top: 10px; + border-top: 1px solid #EAEAEA; +} + /* Custom page CSS -------------------------------------------------- */ /* Not required for template or sticky footer method. */ From cf61b04211b0337f73b017dba1b9e6177dca5e33 Mon Sep 17 00:00:00 2001 From: Bechi Date: Thu, 16 Jan 2014 14:25:00 -0300 Subject: [PATCH 4/4] fix tx --- public/views/block.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/views/block.html b/public/views/block.html index 94ad6148..a81b42dc 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -116,7 +116,7 @@
- Emisor + Transmitter
@@ -128,8 +128,8 @@

Receptor

-

plata del receptor

-

plata del receptor

+

Bitcoin of Receptor

+

Bitcoin of Receptor