diff --git a/public/css/style.css b/public/css/style.css index d375d53..db7519d 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -72,10 +72,9 @@ body { .header h2 { color: #000000; - float: center; text-align: center; vertical-align: middle; - text-decoration:none; + text-decoration: none; } .title { @@ -168,7 +167,9 @@ body { } .content-delivery-row { + float: center; margin-top: 50px; + padding-left: 20px; text-align: center; margin-left: auto; margin-right: auto; diff --git a/server.js b/server.js index a6d2889..40c8996 100644 --- a/server.js +++ b/server.js @@ -692,7 +692,7 @@ app.post('/portal', async (req, res) => { var entity_attributes = []; if (result.delivery) { - entity = result.delivery; + entity = result.delivery.output; entity_keys = Object.keys(entity); for (var key in entity_keys) { let attribute = { diff --git a/views/default.pug b/views/default.pug index f9a6f70..761e196 100644 --- a/views/default.pug +++ b/views/default.pug @@ -18,8 +18,7 @@ html a.header(href='/') img.header(src='https://thebatterypass.io/_next/static/media/logo_primary.ff8fcc3a.png' alt='Homepage') div - a.header(href='/') - h2.header - |Demo: Login with Verifiable Credentials (VCs) + h2.header + |Demo: Login with Verifiable Credentials (VCs) block topnav block content diff --git a/views/portal.pug b/views/portal.pug index 3886e8a..4df11cf 100644 --- a/views/portal.pug +++ b/views/portal.pug @@ -3,7 +3,6 @@ extends portal-layout block user a(href=`/logout`) | Logout - p #{user} block search @@ -12,13 +11,13 @@ block search p.portal-delivery | label(for='entity_type') Type: - input(type='text', name='entity_type', id='entity_type', value=entity_type, size="50") + input(type='text', name='entity_type', id='entity_type', value="Battery", size="50") input(type='submit', value="Get entities") form(action='/portal', method='POST') p.portal-delivery | - label(for='entity_id') #{input_label}: - input(type='text', name='entity_id', id='entity_id', value=entity_id, size="50") + label(for='entity_id') Battery Passport ID: + input(type='text', name='entity_id', id='entity_id', value="urn:batterypass:4a1331e8-646b-423d-b75a-cee15c486555", size="50") input(type='submit', value=get_label) hr block entities @@ -122,7 +121,7 @@ block delivery th Attribute th Values tbody - each i in entity_attributes.output + each i in entity_attributes tr if i[0] != 'id' && i[0] != 'type' td #{i[0]}