mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
feat: add QR button for profiles
This commit is contained in:
parent
91244b992b
commit
995e4c73f7
2 changed files with 4 additions and 8 deletions
|
@ -35,7 +35,7 @@ h1 {
|
|||
cursor: default;
|
||||
}
|
||||
h2 {
|
||||
margin: 2em 0 0.5em;
|
||||
margin: 1em 0 0.5em;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
color: var(--h2-color);
|
||||
|
|
|
@ -23,7 +23,7 @@ mixin generatePersona(persona, isPrimary)
|
|||
.info
|
||||
img(src=`https://design.keyoxide.org/brands/service-providers/_/icon.svg` onerror="this.src='https://design.keyoxide.org/brands/service-providers/_/icon.svg'")
|
||||
p
|
||||
span.title= claim.display.name
|
||||
span.title= claim.display.profileName
|
||||
span.subtitle-wrapper
|
||||
| [
|
||||
span.subtitle= claim.display.serviceproviderName
|
||||
|
@ -130,6 +130,8 @@ block content
|
|||
each persona, index in data.personas
|
||||
unless index == data.primaryPersonaIndex
|
||||
+generatePersona(persona, false)
|
||||
h2 Profile
|
||||
button(onClick=`showQR('${data.identifier}', 'profile_identifier')` aria-label='Show profile ID QR') Profile ID QR
|
||||
|
||||
section
|
||||
h2 Profile information
|
||||
|
@ -151,9 +153,3 @@ block content
|
|||
div
|
||||
p Key link:
|
||||
a.u-key(href=data.publicKey.fetch.resolvedUrl rel="pgpkey" aria-label="Link to cryptographic key")= data.publicKey.fetch.resolvedUrl
|
||||
hr
|
||||
if (data.profileType === 'openpgp')
|
||||
.subsection
|
||||
img(src='/static/img/qrcode.png')
|
||||
div
|
||||
button(onClick=`showQR('${data.publicKey.fingerprint}', 'fingerprint')` aria-label='Show QR code for cryptographic fingerprint') Show OpenPGP fingerprint QR
|
Loading…
Reference in a new issue