Skip to content

Commit 4867758

Browse files
chore: progress bar step number font 변경
1 parent 0f4e3f5 commit 4867758

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

apps/client/src/shared/components/jobSelectionFunnel/FunnelProgress.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ interface FunnelProgressProps {
77

88
const FunnelProgress = ({ currentIndex, totalSteps }: FunnelProgressProps) => {
99
const maxIndex = Math.max(1, totalSteps - 1);
10-
const percent = Math.max(
11-
0,
12-
Math.min(100, (currentIndex / maxIndex) * 100)
13-
);
10+
const percent = Math.max(0, Math.min(100, (currentIndex / maxIndex) * 100));
1411

1512
return (
1613
<div className="relative flex h-[2rem] w-[26.9rem] items-center justify-center">
17-
<div className="absolute left-[0.6rem] right-[0.6rem] top-1/2 h-[0.7rem] -translate-y-1/2 rounded-full bg-gray100">
14+
<div className="bg-gray100 absolute left-[0.6rem] right-[0.6rem] top-1/2 h-[0.7rem] -translate-y-1/2 rounded-full">
1815
<div
19-
className="h-full rounded-full bg-main400 transition-[width] duration-300"
16+
className="bg-main400 h-full rounded-full transition-[width] duration-500"
2017
style={{ width: `${percent}%` }}
2118
/>
2219
</div>
@@ -28,7 +25,9 @@ const FunnelProgress = ({ currentIndex, totalSteps }: FunnelProgressProps) => {
2825
key={`funnel-progress-${index}`}
2926
className={cn(
3027
'flex size-[2rem] items-center justify-center rounded-full text-[1.2rem] font-semibold leading-[1.5]',
31-
isActive ? 'bg-main400 text-white' : 'bg-gray100 text-[#999999]'
28+
isActive
29+
? 'bg-main400 text-white'
30+
: 'bg-gray100 text-font-ltgray-4'
3231
)}
3332
>
3433
{index + 1}

0 commit comments

Comments
 (0)