From 19efcd9c50cbdc14d86bfd331dd488c514472127 Mon Sep 17 00:00:00 2001 From: rafayhanan Date: Tue, 28 May 2024 14:08:46 +0500 Subject: [PATCH] Added social media icons --- index.html | 46 ++++++++++-------------- styles.css | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 6a1e950..409b9bf 100644 --- a/index.html +++ b/index.html @@ -11,10 +11,10 @@

RAFAY

@@ -39,7 +39,7 @@

Software Developer based in Islamabad, Pakistan

-
+

About Me

I am Muhammad Rafay. I am 21 years old and I live in Islamabad, Pakistan. @@ -53,7 +53,7 @@

About Me

-
+

Skills

@@ -100,12 +100,12 @@

Skills

-
+

-
+

Contact Me

@@ -157,7 +157,7 @@

Contact Me

@@ -257,8 +249,6 @@

Contact Me

Copyright © 2024. All Rights Reserved.

- - \ No newline at end of file diff --git a/styles.css b/styles.css index 4aec610..63d7c3a 100644 --- a/styles.css +++ b/styles.css @@ -243,6 +243,7 @@ nav ul li a:hover { background-color: #171717; /* background-color: #0a192f; */ border-radius: 20px; + } .form-heading { @@ -331,6 +332,109 @@ nav ul li a:hover { } .contact-me{ + display: flex; + justify-content:left; +} + + + +/*Social Media */ +ul { + list-style: none; +} + +.example-2 { display: flex; justify-content: center; + align-items: center; + flex-direction: column; } +.example-2 .icon-content { + margin: 0 10px; + position: relative; + padding: 0.5rem; +} +.example-2 .icon-content .tooltip { + position: absolute; + top: 100%; + right: 110%; + transform: translateY(200%); + color: #fff; + padding: 6px 10px; + border-radius: 5px; + opacity: 0; + visibility: hidden; + font-size: 14px; + transition: all 0.3s ease; +} +.example-2 .icon-content:hover .tooltip { + opacity: 1; + visibility: visible; + top: -50px; +} +.example-2 .icon-content a { + position: relative; + overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + width: 50px; + height: 50px; + border-radius: 50%; + color: #4d4d4d; + background-color: #fff; + transition: all 0.3s ease-in-out; +} +.example-2 .icon-content a:hover { + box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%); +} +.example-2 .icon-content a svg { + position: relative; + z-index: 1; + width: 30px; + height: 30px; +} +.example-2 .icon-content a:hover { + color: white; +} +.example-2 .icon-content a .filled { + position: absolute; + top: auto; + bottom: 0; + left: 0; + width: 100%; + height: 0; + background-color: #000; + transition: all 0.3s ease-in-out; +} +.example-2 .icon-content a:hover .filled { + height: 100%; +} + +.example-2 .icon-content a[data-social="linkedin"] .filled, +.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip { + background-color: #0274b3; +} + +.example-2 .icon-content a[data-social="github"] .filled, +.example-2 .icon-content a[data-social="github"] ~ .tooltip { + background-color: #24262a; +} +.example-2 .icon-content a[data-social="instagram"] .filled, +.example-2 .icon-content a[data-social="instagram"] ~ .tooltip { + background: linear-gradient( + 45deg, + #405de6, + #5b51db, + #b33ab4, + #c135b4, + #e1306c, + #fd1f1f + ); +} +.example-2 .icon-content a[data-social="email"] .filled, +.example-2 .icon-content a[data-social="email"] ~ .tooltip { + background-color: #ff0000; +} + +