Skip to content

Commit

Permalink
feat(skills): add soft skills & featured ones
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Jul 13, 2024
1 parent 681531f commit 86a83e5
Show file tree
Hide file tree
Showing 9 changed files with 289 additions and 242 deletions.
Binary file added public/images/skills/communication.webp
Binary file not shown.
Binary file added public/images/skills/featured.webp
Binary file not shown.
Binary file added public/images/skills/glpi.webp
Binary file not shown.
Binary file added public/images/skills/management.webp
Binary file not shown.
Binary file added public/images/skills/training.webp
Binary file not shown.
510 changes: 270 additions & 240 deletions src/data/skills.ts

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/sections/Skills/Skills.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@

.skill {
&-item {
position: relative;
border-radius: 1.5rem;
box-shadow: 0 0.2rem 1rem rgba(colors.$primary, 10%);
box-sizing: border-box;
Expand All @@ -111,6 +112,14 @@
width: 100%;
align-items: center;

&__featured {
height: 12px;
width: 12px;
position: absolute;
left: 48px;
top: 0;
}

&__logo {
display: flex;
justify-content: center;
Expand Down
9 changes: 8 additions & 1 deletion src/sections/Skills/Skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ export function Skills () {
{
filteredSkills.map(skill => (
<div key={skill.id} className="skill-item">
<div className="skill-item__logo">
{
skill.featured ?
<div className="skill-item__featured">
<img width="12" height="12" src='/images/skills/featured.webp' alt="Outil mis en place par moi-même" title="Outil mis en place par moi-même"/>
</div>
: null
}
<div className="skill-item__logo">
<img width="60" height="60" src={`/images/skills/${skill.id}.webp`} alt={skill.name} />
</div>
<div>
Expand Down
3 changes: 2 additions & 1 deletion src/types/Skill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export type Skill = {
name: string,
id: string,
detail: string,
tags: string[]
tags: string[],
featured?: boolean
}

0 comments on commit 86a83e5

Please sign in to comment.