From 289165f9d626f45beb565570557d1cab0c3c01a8 Mon Sep 17 00:00:00 2001 From: Josh Rutherford Date: Tue, 27 Jul 2021 12:08:37 -0500 Subject: [PATCH] Make contact link clickable in pdf. --- src/footer/Footer.tsx | 2 +- src/hero/Hero.tsx | 4 ++++ src/hero/hero.scss | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/footer/Footer.tsx b/src/footer/Footer.tsx index 78c3c7e..f45d64b 100644 --- a/src/footer/Footer.tsx +++ b/src/footer/Footer.tsx @@ -13,7 +13,7 @@ import highFive from "./high-five.png"; import "./footer.scss"; -const address = "contact@joshrutherford.me"; +export const address = "contact@joshrutherford.me"; const RESET_MS = 4000; export function Footer() { diff --git a/src/hero/Hero.tsx b/src/hero/Hero.tsx index 179bbc9..256c05e 100644 --- a/src/hero/Hero.tsx +++ b/src/hero/Hero.tsx @@ -1,4 +1,5 @@ import { useState } from "react"; +import { address } from "../footer/Footer"; import "./hero.scss"; import waving from "./waving.png"; @@ -20,6 +21,9 @@ export function Hero() {

Josh Rutherford

Software Developer

+ + {address} +

I’m a curiosity-driven developer with over 8 years of experience. I've diff --git a/src/hero/hero.scss b/src/hero/hero.scss index 787d95a..d00fc67 100644 --- a/src/hero/hero.scss +++ b/src/hero/hero.scss @@ -8,6 +8,13 @@ $horizontal_breakpoint: 724px; gap: 2rem; grid-template-columns: (minmax(auto, 30rem)); max-width: 55rem; + position: relative; + + .address { + position: absolute; + top: 0.25rem; + right: 0; + } h1 { font-size: 3.5rem;