-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac9e3e1
commit 06bbbce
Showing
10 changed files
with
605 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,14 @@ import React from "react"; | |
import Layout from "../components/Layout"; | ||
|
||
function Home() { | ||
const copyText = () => { | ||
const textField = document.createElement("textarea"); | ||
textField.innerText = "[email protected]"; | ||
document.body.appendChild(textField); | ||
textField.select(); | ||
document.execCommand("copy"); | ||
textField.remove(); | ||
}; | ||
return ( | ||
<div> | ||
<Layout> | ||
|
@@ -41,6 +49,9 @@ function Home() { | |
<Link | ||
href={`mailto:[email protected]`} | ||
className={styles.links} | ||
style={{ cursor: "crosshair" }} | ||
title="Copy to clipboard" | ||
onClick={copyText} | ||
> | ||
[email protected] | ||
</Link> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
06bbbce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
my-new-portfolio – ./
my-new-portfolio-adekunle27.vercel.app
my-new-portfolio-git-main-adekunle27.vercel.app
my-new-portfolio-pi.vercel.app
06bbbce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
my-portfolio-szd5 – ./
my-portfolio-szd5-git-main-adekunle27.vercel.app
my-portfolio-szd5.vercel.app
my-portfolio-szd5-adekunle27.vercel.app