Skip to content

Add copy-to-clipboard button for email in contact section - #162

Open
sahrxdev wants to merge 1 commit into
github-samples:mainfrom
sahrxdev:main
Open

sahrxdev wants to merge 1 commit into
github-samples:mainfrom
sahrxdev:main

Conversation

@sahrxdev

Copy link
Copy Markdown

What this does

Adds a "COPY EMAIL" button next to the social links in the contact
section. Clicking it copies the email address to the clipboard and
shows "COPIED!" feedback for 2 seconds before reverting to the
default label.

Why

Makes it easier for visitors to grab your contact email without
manually selecting and copying text.

How I tested it

Ran the dev server locally and clicked the button — confirmed the
email copies correctly and the "COPIED!" state displays and reverts
as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant