Compare commits

..

No commits in common. 'b61cbadd15a26280a90ab235aa675641bf790885' and '4d3825dbeefe3a214f09eed5d65e24da47c24fe5' have entirely different histories.

  1. 22
      components/hiddenemail.tsx
  2. 36
      pages/index.tsx

@ -1,22 +0,0 @@
import React, { useState, useEffect } from "react";
const HiddenEmail = ({
email,
alt,
althref,
}: {
email: string;
alt: string;
althref: string;
}) => {
const [visible, setVisible] = useState(false);
useEffect(() => {
setVisible(true);
}, []);
return (
<a href={visible ? `mailto:${email}` : althref}>{visible ? email : alt}</a>
);
};
export default HiddenEmail;

@ -4,7 +4,6 @@ import Layout from "../components/layout";
import styled from "styled-components"; import styled from "styled-components";
import IconLink from "components/iconlink"; import IconLink from "components/iconlink";
import ScrollMe from "components/scrollme"; import ScrollMe from "components/scrollme";
import HiddenEmail from "components/hiddenemail";
import { faEnvelope } from "@fortawesome/free-solid-svg-icons"; import { faEnvelope } from "@fortawesome/free-solid-svg-icons";
import { faGit, faGithub } from "@fortawesome/free-brands-svg-icons"; import { faGit, faGithub } from "@fortawesome/free-brands-svg-icons";
@ -109,11 +108,10 @@ const Page: NextPageWithLayout = () => {
<Section> <Section>
<h2 id="about">/almqv</h2> <h2 id="about">/almqv</h2>
<p> <p>
I am a {secondsToYears(getAge())}-year-old{" "} I am a {secondsToYears(getAge())} year old{" "}
<em>Computer Science and Engineering student</em> with a passion for{" "} <em>Computer Science & Engineering student</em> with a passion for{" "}
<em>engineering</em>, <em>programming</em>, and <em>mathematics</em>. <em>physics</em>, <em>programming</em>, <em>mathematics</em> and
I also have an interest in <em>physics</em> and <em>*NIX</em>{" "} anything <em>*NIX</em> <Nem>(Linux, UNIX etc)</Nem> related.
<Nem>(Linux, UNIX, etc)</Nem> systems.
</p> </p>
{/*TODO: Add GitHub code frequency/contrib here*/} {/*TODO: Add GitHub code frequency/contrib here*/}
<p className="topmargin"> <p className="topmargin">
@ -157,7 +155,23 @@ const Page: NextPageWithLayout = () => {
<h2 id="contact">Contact</h2> <h2 id="contact">Contact</h2>
<p> <p>
You can contact me through email. And if you prefer it, you can You can contact me through email. And if you prefer it, you can
contact me using PGP. contact me using PGP. Do note that my{" "}
<em>email address below is encrypted</em> as a precaution against bots
et cetera. <em>Do not worry, it is easy to crack</em>. Alternatively
you could query for my email with my PGP fingerprint (key-id) on some
PGP key server (i.e. the{" "}
<a href="https://pgp.mit.edu/" target="_blank" rel="noreferrer">
MIT
</a>{" "}
or{" "}
<a
href="https://keyserver.ubuntu.com/"
target="_blank"
rel="noreferrer"
>
Ubuntu
</a>{" "}
key-server).
</p> </p>
<CList> <CList>
<li> <li>
@ -165,13 +179,7 @@ const Page: NextPageWithLayout = () => {
<Code>68B2 9768 49F0 3C72 38AE B081 E31A 99CE 3E75 A158</Code> <Code>68B2 9768 49F0 3C72 38AE B081 E31A 99CE 3E75 A158</Code>
</li> </li>
<li> <li>
Email:{" "} Email: <Code>cnlueXpkaXZmZ0B0em52eS5wYnoK</Code>
<HiddenEmail
email="elalmqvist@gmail.com"
alt="[hidden, solve this to view: cnlueXpkaXZmZ0B0em52eS5wYnoK]"
althref="#contact"
/>{" "}
{/* <Code>cnlueXpkaXZmZ0B0em52eS5wYnoK</Code> */}
</li> </li>
<li> <li>
GitHub:{" "} GitHub:{" "}

Loading…
Cancel
Save