import Layout from "../components/Layout";
import Container from "../components/Container";
import PageTitle from "../components/page/PageTitle";
import ContactForm from "../components/contact/ContactForm";
import MailIcon from "../components/icons/svg/mail.svg";
import LockIcon from "../components/icons/svg/lock.svg";

export default function Contact() {
  return (
    <Layout>
      <Container title="Contact Me">
        <PageTitle
          title={
            <>
              <MailIcon /> Contact Me
            </>
          }
        />
        <div>
          <p>
            Fill out this quick form and I'll get back to you as soon as I can! You can also{" "}
            <a href="mailto:jake@jarv.is">email me directly</a>, send me a{" "}
            <a
              href="https://twitter.com/messages/compose?recipient_id=229769022"
              target="_blank"
              rel="noopener nofollow noreferrer"
            >
              direct message on Twitter
            </a>
            , or <a href="sms:+1-617-917-3737">text me</a>.
          </p>
          <p>
            <LockIcon /> You can grab my public key here:{" "}
            <a href="/pubkey.asc" title="My Public PGP Key" target="_blank" rel="pgpkey authn noopener">
              <code>6BF3 79D3 6F67 1480 2B0C 9CF2 51E6 9A39</code>
            </a>
            .
          </p>
          <ContactForm />
        </div>
        <style jsx>{`
          div {
            max-width: 600px;
            margin: 0 auto;
            font-size: 0.9em;
            line-height: 1.7;
          }

          code {
            background: none;
            border: 0;
            padding: 0;
            word-spacing: -0.175em;
            white-space: normal;
          }
        `}</style>
      </Container>
    </Layout>
  );
}
