diff --git a/src/code/index.html b/src/code/index.html
index 2336d70..174b719 100644
--- a/src/code/index.html
+++ b/src/code/index.html
@@ -26,6 +26,9 @@
SocialRepo
diff --git a/src/code/index.js b/src/code/index.js
index eec9bc0..09a8009 100644
--- a/src/code/index.js
+++ b/src/code/index.js
@@ -78,6 +78,15 @@ const socialLinks = getSocialLinks();
// ============== Home ==============
function showCopyMessage(key) {
console.log(`Copied ${key} to clipboard!`);
+ const copyConfirm = document.getElementById('copyConfirm');
+const copyText = copyConfirm.querySelector('.copy-text');
+copyText.textContent = `✅${key} profile copied.`;
+copyConfirm.style.display = 'flex';
+
+setTimeout(() => {
+ copyConfirm.style.display = 'none';
+}, 3000);
+
};
function createImage(key) {
diff --git a/src/code/style.css b/src/code/style.css
index 1fd6433..28dc629 100644
--- a/src/code/style.css
+++ b/src/code/style.css
@@ -542,3 +542,23 @@ table td {
transform: scale(0.9);
transition-duration: 100ms;
}
+.copy-confirm {
+ display: none;
+ position: absolute;
+ bottom: 20px;
+ left: 50%;
+ transform: translateX(-50%);
+ background-color: var(--primary-color);
+ color: var(--text-color);
+ padding: 0.5rem 1rem;
+ border-radius: 5px;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
+ font-size: 1rem;
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+}
+
+.copy-confirm .check {
+ font-size: 1.2rem;
+}