From 468f72ff6917a8e26996dd9555a50496bf3a6193 Mon Sep 17 00:00:00 2001 From: gboege <44926950+gboege@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:38:39 +0200 Subject: [PATCH] NextTry --- public/css/style.css | 8 ++++---- server.js | 2 +- views/default.pug | 2 +- views/index.pug | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 80546a2..c631dd2 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -71,7 +71,7 @@ body { } -.header h2 { +#my-header-h2 { color: #000; text-align: center; vertical-align: middle; @@ -156,13 +156,13 @@ body { padding: 0; } /* margin: 0; */ -.content div { +#my-divid { margin: 20; padding: 20; } -.content h2 { - margin-top: 10px; +#my-h2 { + margin-top: 10px; } .content-row { diff --git a/server.js b/server.js index 40c8996..eb93a16 100644 --- a/server.js +++ b/server.js @@ -697,7 +697,7 @@ app.post('/portal', async (req, res) => { for (var key in entity_keys) { let attribute = { attribute_name: key, - attribute_value: entity[key] + attribute_value: JSON.stringify(entity[key]) } } entity_attributes = Object.entries(entity) diff --git a/views/default.pug b/views/default.pug index 761e196..bdee4e3 100644 --- a/views/default.pug +++ b/views/default.pug @@ -18,7 +18,7 @@ html a.header(href='/') img.header(src='https://thebatterypass.io/_next/static/media/logo_primary.ff8fcc3a.png' alt='Homepage') div - h2.header + h2#my-header-h2 |Demo: Login with Verifiable Credentials (VCs) block topnav block content diff --git a/views/index.pug b/views/index.pug index d201062..01f9e36 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,8 +1,8 @@ extends default block content - div.content - h2.content Click link below to login + div#my-divid + h2#my-h2 Click link below to login table(border='1' frame='void' rules='rows') if siop tr @@ -16,8 +16,8 @@ block content tr td a.button(href=`/login?idp=` + i.id) #{i.name} - div.content - h2.content + div#my-divid + h2#my-h2 | a) Description how to login with VCs and use the demo br h3#prerequisites Prerequisites: @@ -65,7 +65,7 @@ block content | “urn:batterypass:4a1331e8-646b-423d-b75a-cee15c486555” br | and press button “Get Battery” - h2.content + h2#my-h2 | b) Description how to obtain demo VCs br h3#step-by-step-1 Step-by-step: