add of skill card

This commit is contained in:
Giovanni-Josserand 2025-08-21 11:28:21 +02:00
parent 31f78e4b11
commit b3fa402f7b
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import "../styles/SkillCard.css";
function SkillCard({ text }) {
return (
<div className="skill-card">
<img src={`/assets/images/skills/${text}.svg`} alt={text} />
<p>{text}</p>
</div>
);
}
export default SkillCard;

24
src/styles/SkillCard.css Normal file
View File

@ -0,0 +1,24 @@
.skill-card {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
padding: 0.25rem 0.75rem;
font-size: 0.875rem;
width: fit-content;
white-space: nowrap;
flex-shrink: 0;
gap: 0.5rem;
background-color: #171717;
color: white;
border: solid rgba(100,100,100) 0.001rem;
height: 1.5rem;
margin: 0.5% 2%;
}
.skill-card img {
width: 1rem;
height: 1.125rem;
pointer-events: none;
}