186 lines
4.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Add .onion link -->
<meta http-equiv="onion-location" content="http://w6rshvdkwg3m757xjsk6avsbwphi3znwlvqpnbcchol6h7wxfzyabayd.onion/pgp">
<!-- Encourage indexing -->
<meta name="robots" content="index, follow">
<meta property="og:title" content="PGP Key | pkrm.dev"/>
<meta property="og:url" content="https://pkrm.dev/pgp"/>
<meta property="og:type" content="website"/>
<meta property="og:description" content="Copy or download by PGP public key."/>
<title>PGP Key | pkrm.dev</title>
</head>
<body>
<nav>
<div class="navbar-left">
<a href="/">~$&nbsp;&nbsp;&nbsp;cd /home</a>
</div>
<div class="navbar-right">
<a href="/about">About</a>
<a href="/contact">Contact</a>
</div>
</nav>
<div class="container">
<h1>Copy my key below, or click <a href="/parker.asc" style="text-decoration: underline; color: #9F9FAA;">here</a> to download it.</h1>
<p>
-----BEGIN PGP PUBLIC KEY BLOCK-----
<br><br>
xjMEZI06YRYJKwYBBAHaRw8BAQdAxymP7jguJxjtKKqGQ/fSXGwZVzOiix6iRS1F
6BVMu+3NG1BhcmtlciBNIDxjb250YWN0QHBrcm0uZGV2PsKTBBMWCgA7FiEEWLdr
i7q4eU0h4leclc0uDH4ynyoFAmSNOmECGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC
HgcCF4AACgkQlc0uDH4ynyrBIAEAu7y2oebvsBb+tJXPUOZkjqE+rsAwiDgHLj3U
gYMM4XUBALPsZ4IgA5mWhTDTV00QLHmVtybCJzCdc7LzyvQH78cHzjgEZI06YRIK
KwYBBAGXVQEFAQEHQLBpSX+qSOtSFVrp9+VfJGHsoPaIhoxIjz44byrtLXZ4AwEI
B8J4BBgWCgAgFiEEWLdri7q4eU0h4leclc0uDH4ynyoFAmSNOmECGwwACgkQlc0u
DH4ynyqQhAEAuo1HGXEKkBUzji+cCW3wF/oqg0cQklQzfKUkifLhiC8A/2gdilxS
AYHKY0lEJandkOjid/otDdiIZCUBt5mXjncL
=ni8o
<br>
-----END PGP PUBLIC KEY BLOCK-----
</p>
</div>
<footer>PGP Fingerprint: 58B7 6B8B BAB8 794D 21E2 579C 95CD 2E0C 7E32 9F2A</footer>
</body>
</html>
<style>
/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');
body {
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
background-color: #242528;
color: #9F9FAA;
}
/* Navbar styles */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #212223;
color: #9F9FAA;
}
nav a {
text-decoration: none;
color: #9F9FAA;
font-size: 1.5rem;
margin: 0 1rem;
}
nav a:hover {
color: #fff;
}
.navbar-left {
display: flex;
justify-content: flex-start;
align-items: center;
margin-left: 15%;
}
.navbar-right {
display: flex;
justify-content: flex-end;
align-items: center;
margin-right: 15%;
}
/* Navbar media query for mobile */
@media only screen and (max-width: 600px) {
nav a {
margin: 0;
font-size: 1rem;
}
.navbar-left {
margin: 0 1rem;
}
.navbar-right {
margin: 0 1rem;
}
.navbar-right a {
margin-left: 1rem;
}
}
/* Container styles */
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.25rem;
text-align: center;
width: 600px;
word-break: break-all;
}
.container p {
text-align: left;
}
/* Continer media query for mobile */
@media only screen and (max-width: 600px) {
.container {
font-size: 1.25rem;
width: 300px;
}
.container p {
margin: 1rem 0 2rem 0;
}
}
/* Footer styles */
footer {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
font-size: 1rem;
text-align: center;
margin-bottom: 2rem;
width: 90vw;
}
/* Footer media query for mobile */
@media only screen and (max-width: 600px) {
footer {
bottom: -2rem;
}
}
</style>
<script>
// Get the h1
const h1 = document.querySelector('h1');
// Get the p tag
const p = document.querySelector('p');
// If the user is on mobile, remove the p tag and change the h1
if (window.innerWidth <= 600) {
p.remove();
h1.innerHTML = 'Click <a href="/parker.asc" style="text-decoration: underline; color: #9F9FAA;">here</a> to download my PGP key.';
h1.style.wordBreak = 'normal';
}
</script>