Skip to content

Commit

Permalink
Design: 스타일링 피드백 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGUMMY1 committed Dec 3, 2024
1 parent dd970d2 commit a3a62cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/Layout/TabNav/TabNav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
.tabs {
display: flex;
position: relative;
gap: 5px;
border-bottom: 1px solid $gray10;
padding: 4px 20px 0;

.button {
width: 60px;
width: 70px;
padding-bottom: 6px;
background-color: $white;
color: $gray50;
Expand All @@ -61,7 +60,7 @@
position: absolute;
bottom: 0;
height: 2px;
width: 60px;
width: 70px;
background-color: $blue60;
transform: translateX(0);
transition:
Expand All @@ -73,7 +72,7 @@
position: absolute;
bottom: 0;
height: 2px;
width: 60px;
width: 70px;
background-color: $green80;
transform: translateX(0);
transition:
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/TabNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function TabNav({ showmenu = true }: TabNavProps) {
useEffect(() => {
const tabIndex = tab === 'lesson' ? 0 : 1;
setUnderlineStyle({
transform: `translateX(${tabIndex * 65}px)`,
transform: `translateX(${tabIndex * 70}px)`,
backgroundColor: toggle === 'special' ? '$green80' : '$blue60',
});
}, [tab, toggle]);
Expand Down

0 comments on commit a3a62cb

Please sign in to comment.