Skip to content

Commit

Permalink
change icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Abdo committed Aug 13, 2023
1 parent 9e2285f commit 609b097
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
42 changes: 30 additions & 12 deletions src/components/socialMedia/SocialMedia.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import React from "react";
import "./SocialMedia.scss";
import {socialMediaLinks} from "../../portfolio";
// import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
// import { icon } from '@fortawesome/fontawesome-svg-core/import.macro'
import { FaEnvelope, FaFacebook, FaGithub, FaGitlab, FaHackerrank, FaInstagram, FaKaggle, FaLinkedinIn, FaMedium, FaStackOverflow, FaTwitter, FaYoutube } from "react-icons/fa6";

const fontStyles = {fontSize: '25px', verticalAlign:'middle'};

export default function socialMedia() {
if (!socialMediaLinks.display) {
Expand All @@ -15,7 +20,9 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-github"></i>
{/* <i className="fab fa-github"> </i> */}
<i><FaGithub style={fontStyles}/></i>

<span></span>
</a>
) : null}
Expand All @@ -27,7 +34,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-linkedin-in"></i>
{/* <i className="fab fa-linkedin-in"> </i> */}
<i><FaLinkedinIn style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -39,7 +47,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fas fa-envelope"></i>
{/* <i className="fas fa-envelope"></i> */}
<i><FaEnvelope style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -51,7 +60,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-gitlab"></i>
{/* <i className="fab fa-gitlab"></i> */}
<i><FaGitlab style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -63,7 +73,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-youtube"></i>
{/* <i className="fab fa-youtube"></i> */}
<i><FaYoutube style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -76,7 +87,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-facebook"></i>
{/* <i className="fab fa-facebook"></i> */}
<i><FaFacebook style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -88,7 +100,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-instagram"></i>
{/* <i className="fab fa-instagram"></i> */}
<i><FaInstagram style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -100,7 +113,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-twitter"></i>
{/* <i className="fab fa-twitter"></i> */}
<i><FaTwitter style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -112,7 +126,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-medium"></i>
{/* <i className="fab fa-medium"></i> */}
<i><FaMedium style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -124,7 +139,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-stack-overflow"></i>
{/* <i className="fab fa-stack-overflow"></i> */}
<i><FaStackOverflow style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -136,7 +152,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-hackerrank" ></i>
{/* <i className="fab fa-hackerrank" ></i> */}
<i><FaHackerrank style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand All @@ -148,7 +165,8 @@ export default function socialMedia() {
target="_blank"
rel="noopener noreferrer"
>
<i className="fab fa-kaggle"></i>
{/* <i className="fab fa-kaggle"></i> */}
<i><FaKaggle style={fontStyles}/></i>
<span></span>
</a>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion src/components/socialMedia/SocialMedia.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
display: inline-block;
font-size: 1.3rem;
height: 2.6rem;
line-height: 2.6rem;
line-height: 2.4rem;
margin: 0 5px;
position: relative;
text-align: center;
Expand Down

0 comments on commit 609b097

Please sign in to comment.