Skip to content

Commit

Permalink
Modify CSS for categories and work experience cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Mildred14 committed Dec 13, 2024
1 parent a5909b6 commit 44830ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export const Card = ({name, imgIcon, id, selected, status}) => {
}

return (
<div className={`card card-${id}`} key={id}>
<a className="more-info" onClick={handleClick} title="more-info">
<a className={`more-info card card-${id}`} onClick={handleClick} title="more-info" key={id}>
<div className="img-wrapper">
<img src={plusIcon} width="30"/>
</a>
</div>
<div>
<img src={imgIcon} className="img-category" />
</div>
Expand All @@ -24,6 +24,6 @@ export const Card = ({name, imgIcon, id, selected, status}) => {
{name}
</p>
</div>
</div>
</a>
)
}
6 changes: 6 additions & 0 deletions src/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
box-sizing: border-box;
}

& > .img-wrapper {
text-align: end;
padding: 20px 20px 0 0;
box-sizing: border-box;
}

& > .title {
width: 100%;
display: flex;
Expand Down
5 changes: 4 additions & 1 deletion src/components/WorkExperience/WorkExperience.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
align-items: center;

> .work-experience--card {
border: 1px solid utilities.$grayLight;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
display: flex;
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -82,5 +82,8 @@
}
}
}
}

.work-experience--card:hover {
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

0 comments on commit 44830ac

Please sign in to comment.