Skip to content

Commit

Permalink
feat(about): Enhancement hover
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Mar 28, 2024
1 parent 071f900 commit 81c08ce
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 26 deletions.
9 changes: 2 additions & 7 deletions src/features/about/work/card/content/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ const CompanyContentProject: FunctionComponent<CompanyContentProjectProps> = (

return (
<div className="project">
<div className="headline">
<div className="headline" onClick={handleDetailClick}>
<div className="title-wrap">
<div
className={`title ${open ? 'unfold' : 'fold'}`}
onClick={handleDetailClick}
>
{name}
</div>
<div className={`title ${open ? 'unfold' : 'fold'}`}>{name}</div>
<ProjectDate
startDate={startDate}
endDate={endDate}
Expand Down
8 changes: 2 additions & 6 deletions src/features/about/work/card/content/Headline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ const ContentHeadline: FunctionComponent<ContentHeadlineProps> = ({
hover = true,
}) => {
return (
<div className="headline">
<div
id={name}
onClick={onClick}
className={`title${hover ? ' hover' : ''}`}
>
<div className={`headline${hover ? ' hover' : ''}`} onClick={onClick}>
<div id={name} className="title">
{name}
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/features/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ $target: #e73c7e;
margin: 10px 0;
color: $target;

:hover {
color: #e66295;
}

.min {
position: absolute;
top: -3rem;
Expand Down
16 changes: 8 additions & 8 deletions src/features/styles/ui/about/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@
user-select: none;
}

.hover {
cursor: pointer;

&:hover {
color: $base-color;
}
}

.date {
padding-left: 4px;
font-style: italic;
Expand All @@ -187,6 +179,14 @@
}
}

.hover {
cursor: pointer;

&:hover {
color: $highlight-color;
}
}

.position {
border-bottom: 1px dotted $min-color;
margin-bottom: 15px;
Expand Down
10 changes: 5 additions & 5 deletions src/features/styles/ui/about/project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
.headline {
display: flex;
flex-direction: column;
cursor: pointer;

&:hover {
color: $highlight-color;
}

.title-wrap {
width: 100%;
Expand All @@ -21,13 +26,8 @@
}

.title {
cursor: pointer;
font-size: 1.15rem;
font-weight: 500;

&:hover {
color: $sub-color;
}
}

.fold {
Expand Down

0 comments on commit 81c08ce

Please sign in to comment.