From 637a0a5f5c693b79a6a7e777c6c90ab29a6a101a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 4 May 2021 10:01:04 +0200 Subject: [PATCH] Add search, improve all forms --- static/scripts.js | 121 ++++++++++++++++++++++++++++------------------ views/index.pug | 20 ++++++-- views/profile.pug | 13 ++--- 3 files changed, 99 insertions(+), 55 deletions(-) diff --git a/static/scripts.js b/static/scripts.js index 6d4fb99..41a4731 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -30,6 +30,9 @@ more information on this, and how to apply and follow the GNU AGPL, see 0 h2 Highlights @@ -22,7 +36,7 @@ block content span.details= hl.description .spacer p - a(href=`/${hl.fingerprint}`) View profile + a(href=`/${hl.fingerprint}`).button.full-width View profile - var n = 0 while n < 3-highlights.length .card.card--small-profile-dummy diff --git a/views/profile.pug b/views/profile.pug index 2fad42a..f6624e0 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -37,7 +37,7 @@ block content div form(method='post') textarea.input(name='message' placeholder='Message') - input(type='submit' name='submit' value='ENCRYPT MESSAGE') + input.no-margin(type='submit' name='submit' value='ENCRYPT MESSAGE') textarea.output(name='message' placeholder='Waiting for input' readonly) form(method="dialog") input(type="submit" value="Close") @@ -46,7 +46,7 @@ block content div form(method='post') textarea.input(name='signature' placeholder='Signature') - input(type='submit' name='submit' value='VERIFY SIGNATURE') + input.no-margin(type='submit' name='submit' value='VERIFY SIGNATURE') textarea.output(name='message' placeholder='Waiting for input' readonly) form(method="dialog") input(type="submit" value="Close") @@ -58,7 +58,8 @@ block content a#qr--altLink if (isSignature) - #profileSigInput.card.card--form + #profileSigInput.form-wrapper.card + h2 Signature profile form#formGenerateSignatureProfile(method='post') label(for="signature") Please enter the raw profile signature below and press "Generate profile". textarea#signature(name='signature')= signature @@ -72,16 +73,16 @@ block content li= error else unless (isSignature && !signature) - #profileHeader.card.card--profileHeader + #profileHeader.card.card--transparent.card--profileHeader a.avatar(href="#") img#profileAvatar(src=data.extra.avatarURL alt="avatar") p#profileName= data.keyData.users[data.keyData.primaryUserIndex].userData.name - .buttons + .button-wrapper button(onClick="document.querySelector('#dialog--encryptMessage').showModal();") Encrypt message button(onClick="document.querySelector('#dialog--verifySignature').showModal();") Verify signature - #profileProofs.card + #profileProofs.card.card--transparent h2 Key kx-key(data-keydata=data.keyData)