Update pages

This commit is contained in:
Yarmo Mackenbach 2021-03-29 17:08:48 +02:00
parent 9fbd05f28c
commit 12dd211f7a
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
9 changed files with 167 additions and 89 deletions

View file

@ -95,15 +95,11 @@ footer {
max-width: 1440px; max-width: 1440px;
margin: 0 auto; margin: 0 auto;
} }
section.long_form { .narrow {
width: 100%; width: 100%;
max-width: 720px; max-width: 720px;
margin: 0 auto; margin: 0 auto;
} }
section.profile, .demo {
max-width: 720px;
margin: 0 auto;
}
section.profile .card, .demo .card { section.profile .card, .demo .card {
background-color: transparent; background-color: transparent;
border: 0; border: 0;
@ -358,6 +354,12 @@ section.profile p, .demo p {
.buttons a:hover { .buttons a:hover {
background-color: #ccc; background-color: #ccc;
} }
.modes {
display: none;
}
.modes.modes--visible {
display: block;
}
h1 { h1 {
font-size: 1.6em; font-size: 1.6em;
@ -476,6 +478,15 @@ textarea {
form { form {
margin: 0 0 5.6rem; margin: 0 0 5.6rem;
} }
form label {
margin: 0 8px 0 0;
}
form .modesContainer {
margin: 16px 0;
}
form .modesContainer input {
margin: 0 8px 0 0;
}
form input[type="submit"] { form input[type="submit"] {
display: block; display: block;
width: 100%; width: 100%;

22
views/encrypt.pug Normal file
View file

@ -0,0 +1,22 @@
extends templates/base.pug
block js
script(type='application/javascript' src='/static/openpgp.min.js' charset='utf-8')
script(type='application/javascript' src='/static/doip.js' charset='utf-8')
script(type='application/javascript' src='/static/scripts.js' charset='utf-8')
block content
section.narrow
noscript
p Keyoxide requires JavaScript to function.
h1 Encrypt
form#form-encrypt(method='post')
h3 Recipient
label(for='modeSelect') Mode:
include partials/key_selector
h3 Message
textarea#message(name='message')
p#result
input.bigBtn(type='submit' name='submit' value='ENCRYPT MESSAGE')

View file

@ -1,10 +1,10 @@
extends templates/base.pug extends templates/base.pug
block content block content
section.narrow
h1 Guides h1 Guides
.hcards.hcards--guides.hcards--max-3 .card
.card.guides__section h2 Using Keyoxide
h3 Using Keyoxide
p p
a(href='/guides/verify') Verifying a signature a(href='/guides/verify') Verifying a signature
br br
@ -16,8 +16,7 @@ block content
br br
a(href='/guides/self-hosting-keyoxide') Self-hosting Keyoxide a(href='/guides/self-hosting-keyoxide') Self-hosting Keyoxide
.card.guides__section h2 OpenPGP and identity proofs
h3 OpenPGP and identity proofs
p p
a(href='/guides/openpgp-proofs') How OpenPGP identity proofs work a(href='/guides/openpgp-proofs') How OpenPGP identity proofs work
br br
@ -25,8 +24,7 @@ block content
br br
a(href='/guides/signature-profiles') Using signature profiles a(href='/guides/signature-profiles') Using signature profiles
.card.guides__section h2 Adding proofs
h3 Adding proofs
p p
a(href='/guides/devto') Dev.to a(href='/guides/devto') Dev.to
br br
@ -56,15 +54,13 @@ block content
br br
a(href='/guides/xmpp') XMPP+OMEMO a(href='/guides/xmpp') XMPP+OMEMO
.card.guides__section h2 Other services
h3 Other services
p p
a(href='/guides/feature-comparison-keybase') Feature comparison with Keybase a(href='/guides/feature-comparison-keybase') Feature comparison with Keybase
br br
a(href='/guides/migrating-from-keybase') Migrating from Keybase a(href='/guides/migrating-from-keybase') Migrating from Keybase
.card.guides__section h2 Managing proofs in GnuPG
h3 Managing proofs in GnuPG
p p
a(href='/guides/managing-proofs-listing') Listing proofs a(href='/guides/managing-proofs-listing') Listing proofs
br br

View file

@ -19,7 +19,7 @@ block content
.card.card--small-profile-dummy .card.card--small-profile-dummy
- n++ - n++
.demo .demo.narrow
.card.card--profile .card.card--profile
.claim .claim
.claim__main .claim__main

View file

@ -1,6 +1,6 @@
extends templates/base.pug extends templates/base.pug
block content block content
section.long_form section.long_form.narrow
h1= title h1= title
.card !{ content } .card !{ content }

View file

@ -7,19 +7,19 @@ footer
br br
a(href="/") What is Keyoxide? a(href="/") What is Keyoxide?
br br
a(href="/") Getting started a(href="/getting-started") Getting started
br br
a(href="/") Guides a(href="/guides") Guides
br br
a(href="/") FAQ a(href="/faq") FAQ
div div
h1 Keyoxide project h1 Keyoxide project
a(href="/") Keyoxide.org a(href="https://keyoxide.org") Keyoxide.org
br br
a(href="/") Keyoxide on Fediverse a(href="https://fosstodon.org/@keyoxide") Keyoxide on Fediverse
br br
a(href="/") Key to Identity Foundation a(href="https://keytoidentity.foundation") Key to Identity Foundation
div div
h1 Development h1 Development

View file

@ -0,0 +1,24 @@
select#modeSelect.modeSelect(name='modeSelect')
option(value='auto' selected=(mode == "auto" ? true : false)) Autodetect
option(value='wkd' selected=(mode == "wkd" ? true : false)) Web Key Directory
option(value='hkp' selected=(mode == "hkp" ? true : false)) Keyserver
option(value='plaintext' selected=(mode == "plaintext" ? true : false)) Plaintext
option(value='keybase' selected=(mode == "keybase" ? true : false)) Keybase
.modesContainer
.modes.modes--auto(class=(mode == "auto" ? "modes--visible" : ""))
input#auto_input(type='text' name='auto_input' placeholder='Email / key id / fingerprint' value=(mode == "auto" ? input : ""))
.modes.modes--wkd(class=(mode == "wkd" ? "modes--visible" : ""))
input#wkd_input(type='text' name='wkd_input' placeholder='name@domain.org' value=(mode == "wkd" ? input : ""))
.modes.modes--hkp(class=(mode == "hkp" ? "modes--visible" : ""))
input#hkp_input(type='text' name='hkp_input' placeholder='Email / key id / fingerprint' value=(mode == "hkp" ? input : ""))
input#hkp_server(type='text' name='hkp_server' placeholder='https://keys.openpgp.org/ (default)')
.modes.modes--plaintext(class=(mode == "plaintext" ? "modes--visible" : ""))
textarea#plaintext_input(name='plaintext_input')
.modes.modes--keybase(class=(mode == "keybase" ? "modes--visible" : ""))
input#keybase_username(type='text' name='keybase_username' placeholder='username' value=(mode == "keybase" ? username : ""))
input#keybase_fingerprint(type='text' name='keybase_fingerprint' placeholder='fingerprint' value=(mode == "keybase" ? fingerprint : ""))

View file

@ -6,7 +6,7 @@ block js
script(type='application/javascript' src='/static/scripts.js' charset='utf-8') script(type='application/javascript' src='/static/scripts.js' charset='utf-8')
block content block content
section.profile section.profile.narrow
noscript noscript
p Keyoxide requires JavaScript to function. p Keyoxide requires JavaScript to function.
span#profileUid(style='display: none;') #{uid} span#profileUid(style='display: none;') #{uid}

25
views/verify.pug Normal file
View file

@ -0,0 +1,25 @@
extends templates/base.pug
block js
script(type='application/javascript' src='/static/openpgp.min.js' charset='utf-8')
script(type='application/javascript' src='/static/doip.js' charset='utf-8')
script(type='application/javascript' src='/static/scripts.js' charset='utf-8')
block content
section.narrow
noscript
p Keyoxide requires JavaScript to function.
h1 Verify
form#form-verify(method='post')
h3 Signer
label(for='modeSelect') Mode:
include partials/key_selector
h3 Signature
textarea#signature(name='signature')
h3 Result
p#result
p#resultContent
input.bigBtn(type='submit' name='submit' value='VERIFY SIGNATURE')