Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I add custom icon in sofwareSkills section #638

Open
iamferozi opened this issue Sep 5, 2023 · 2 comments
Open

Can I add custom icon in sofwareSkills section #638

iamferozi opened this issue Sep 5, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@iamferozi
Copy link

Summary

How can i add custom icons in my softwareSkills sections? As according to the functionality I can only use icons available on fontawesome.com.

What's new?

redesign of a previous component

Motivation

i would be able to add custom icons in software skills section.

Additional context

No response

@iamferozi iamferozi added the enhancement New feature or request label Sep 5, 2023
@iamferozi iamferozi changed the title Cand add custom icon in sofwareSkills senction Can I add custom icon in sofwareSkills section Sep 6, 2023
@saadpasta
Copy link
Owner

No not right now we are using fontawesome so you can you fontAwesome icons

@Jolomi-Tosanwumi
Copy link
Contributor

Jolomi-Tosanwumi commented Oct 13, 2024

You can use devicon as proposed here. I also found out a way to add custom icons to skill (especially when they are not in both fontAwesome and devicon).

  1. Create a folder in src/assets and name it anything e.g. <icons>
  2. Download your svg icon (e.g. <my-icon.svg>) to the <icons> folder.
  3. Give the icon a className (e.g. <my-icon-className>) and add it to src/portfolio.js same way you added a fontAwesome icon. e.g.
...   
   {
     skillName: "my skill",
     fontAwesomeClassname: "<my-icon-className>"
   },
...
  1. Link <my-icon-className> to <my-icon.svg> by adding the code block below to src/components/softwareSkills/SoftwareSkill.scss
.<my-icon-className> {
  background-color: currentColor; /* Inherit the parent color */
  mask-image: url('../../assets/<icons>/<my-icon.svg>');
  mask-size: cover;  width: 50px; /* Adjust width */
  height: 50px; /* Adjust height */
  display: inline-block; /* Ensures it behaves like an inline element */
}

Repeat steps 2 - 4 to add more icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants