Skip to content

Commit

Permalink
Make contact link clickable in pdf.
Browse files Browse the repository at this point in the history
  • Loading branch information
theruther4d committed Jul 27, 2021
1 parent 207ef5e commit 289165f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 4 additions & 0 deletions src/hero/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from "react";
import { address } from "../footer/Footer";
import "./hero.scss";
import waving from "./waving.png";

Expand All @@ -20,6 +21,9 @@ export function Hero() {
<h1>Josh Rutherford</h1>
<h2>Software Developer</h2>
</div>
<a className="address noscreen" href={`mailto:${address}`}>
{address}
</a>
</header>
<p className="content">
I’m a curiosity-driven developer with over 8 years of experience. I've
Expand Down
7 changes: 7 additions & 0 deletions src/hero/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 289165f

@vercel
Copy link

@vercel vercel bot commented on 289165f Jul 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.