pkrm.dev/contact/index.html
2023-07-01 20:51:38 -05:00

167 lines
4.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- import font awesome through CDN link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
<title>Contact | pkrm.dev</title>
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#000" />
<meta name="apple-mobile-web-app-title" content="Parker M. | Contact" />
<meta property="og:title" content="Parker M. | Contact" />
<meta property="og:url" content="https://pkrm.dev" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Fill out this form in order to contact me." />
<meta name="description" content="Fill out this form in order to contact me." />
<meta name="robots" content="index, follow" />
<meta name="http-equiv" content="X-Robots-Tag : index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="twitter:card" content="summary" />
<script src="/contact/script.js" defer></script>
</head>
<body>
<a href="/" id="back-home">Back Home</a>
<div class="container">
<p id="attention">ATTENTION: To send any sensitive information, please email me at contact@pkrm.dev and encrypt the message with my <a href="/parker-m.asc" id="pgp-key">PGP Public Key</a>. This form should not be thought of as a secure way of communication.</p>
<form name="contact" onsubmit="event.preventDefault(); checkForm();">
<input name="name" placeholder="Name">
<input name="email" placeholder="Email">
<textarea name="message" placeholder="Message"></textarea>
<button>Send</button>
</form>
<p class="response">This is placeholder text in order to take up space so that elements stay in place.</p>
</div>
</body>
</html>
<style>
* {
font-family: 'Kanit', sans-serif;
margin: 0;
scroll-behavior: smooth;
}
body{
overflow-x: hidden;
background-image: url(/bg.png);
background-size: cover;
color: #fff;
}
#back-home {
font-weight: bold;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
padding-top: 5vh;
font-size: 4vh;
color: #fff;
text-decoration: none;
}
a:hover {
cursor: pointer;
opacity: 0.6;
}
/* "Back Home" media query for mobile */
@media only screen and (max-width: 600px) {
#back-home {
font-size: 6vh;
padding-top: 8vh;
width: 90%;
display: flex;
justify-content: center;
align-items: center;
}
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Container media query for mobile */
@media only screen and (max-width: 600px) {
.container {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
}
}
#attention {
font-size: 2vh;
text-align: center;
margin: 1vh;
}
#pgp-key {
color: #fff;
text-decoration: underline;
font-size: 2vh;
}
form {
display: flex;
flex-direction: column;
border-radius: 10px;
}
form input, form textarea, form button {
color: white;
background-color: #242424;
border: 2px solid #242424;
border-radius: 10px;
padding: 1vh;
margin: 1vh;
width: 50vw;
font-size: 3vh;
resize: none;
}
form button {
width: 20vw;
}
form button:hover {
cursor: pointer;
background-color: #333;
}
/* Form media query for mobile */
@media only screen and (max-width: 600px) {
form input, form textarea, form button {
width: 70vw;
font-size: 3vh;
}
form button {
width: 50vw;
margin-left: 50%;
transform: translateX(-50%);
}
}
.response {
font-size: 2.5vh;
text-align: center;
visibility: hidden;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/@mojs/curve-editor"></script>
<script src="https://cdn.jsdelivr.net/npm/@mojs/core"></script>