From 3f6cb07c9a0708ef0fca7009d0b2efee3bad9996 Mon Sep 17 00:00:00 2001 From: manpreetsingh04m Date: Thu, 27 Jun 2024 22:03:29 +0530 Subject: [PATCH 1/3] Styling created --- src/code/style.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/code/style.css b/src/code/style.css index 1fd6433..bcf96aa 100644 --- a/src/code/style.css +++ b/src/code/style.css @@ -6,21 +6,21 @@ box-sizing: border-box; /* font-family: "Source Sans 3", sans-serif; */ font-family: "Raleway", sans-serif; - transition: all 300ms ease; + transition: all 400ms ease; list-style-type: none; } :root { - --primary-color: #7029ff; - --secondary-color: #b58fff; - --accent-color: #d0beff; - --text-color: #eeeeee; + --primary-color: #a47df2; + --secondary-color: #c3b0e8; + --accent-color: #ab98d8; + --text-color: #faf1f1; --text-color-2: #242327; } body { - width: 500px; - height: 450px; + width: 600px; + height: 600px; font-family: Arial, Helvetica, sans-serif; text-align: center; scroll-behavior: smooth; @@ -77,8 +77,8 @@ nav li button { } nav li button:active { - transform: scale(0.9); - transition-duration: 100ms; + transform: scale(0.7); + transition-duration: 120ms; } #info-btn { @@ -312,7 +312,7 @@ table td { #images { display: flex; - gap: 1.5rem; + gap: 1.7rem; } #images img { @@ -345,7 +345,7 @@ table td { font-size: 0.9rem; outline: none; border: none; - background-color: var(--accent-color); + background-color: white; color: var(--primary-color); font-weight: 600; text-align: center; From fdee0f556ced1cd615f35747a71bba595f7741a4 Mon Sep 17 00:00:00 2001 From: manpreetsingh04m Date: Thu, 27 Jun 2024 22:18:50 +0530 Subject: [PATCH 2/3] name hover effect over app --- src/code/index.js | 18 ++++++++++++++++++ src/code/style.css | 15 +++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/code/index.js b/src/code/index.js index eec9bc0..6d9851b 100644 --- a/src/code/index.js +++ b/src/code/index.js @@ -91,8 +91,26 @@ function createImage(key) { const socialLinksContainer = document.getElementById("socialLinks"); function createSocialLink(key, value) { const li = document.createElement("li"); + // Here this will be a div which will come over the top of the icon and it will show the name of the app + const div = document.createElement("div") const img = createImage(key); + div.classList.add('div-hover-effect') + //^ making the string short if it overflows (based upon its length) + if (key.length>8){ + div.textContent = `${key.substr(0,8)+"..."}` + }else{ + div.textContent = key + } + li.addEventListener("mouseenter",()=>{ + img.style.display = 'none' + div.style.display = 'flex' + }) + li.addEventListener('mouseleave',()=>{ + img.style.display = 'block' + div.style.display = 'none' + }) img.onload = () => { + li.appendChild(div) li.appendChild(img); li.addEventListener("click", () => { navigator.clipboard.writeText(value); // Copy the value to clipboard diff --git a/src/code/style.css b/src/code/style.css index bcf96aa..8b16634 100644 --- a/src/code/style.css +++ b/src/code/style.css @@ -184,6 +184,21 @@ p { height: 100%; } +.div-hover-effect{ + /* position: absolute; + top: 105%; */ + display: none; + justify-content: center; + align-items: center; + height: inherit; + width: inherit; + border-radius: inherit; + font-size: 11px; + font-weight: 700; + color: white; + background-color: transparent; + overflow: hidden; +} /* ============== Info Panel ============== */ #info { From 38c17852c99d5242004383c7690511f733cdc4e7 Mon Sep 17 00:00:00 2001 From: manpreetsingh04m Date: Thu, 27 Jun 2024 22:44:15 +0530 Subject: [PATCH 3/3] Comfirmation message popup shown --- src/code/index.html | 3 +++ src/code/index.js | 9 +++++++++ src/code/style.css | 21 +++++++++++++++++++++ 3 files changed, 33 insertions(+) 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

+
+ +