Skip to content

Commit c0d42b0

Browse files
authored
Feat: 달성률 게이지 위에 현재까지 챌린지 달성률(%) 표시 (#409)
Related to: #393
1 parent 072963b commit c0d42b0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/Certification/MyCurrentCertification/CurrentAchivementRate/CurrentAchivementRate.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ function CurrentAchivementRate({
2525
<div className="absolute left-[85%] -translate-x-1/2 bottom-0 translate-y-10 w-0 h-0 border-b-[#FDEDE1] border-b-[1.5rem] border-l-[1.3rem] border-r-[1.3rem] border-l-transparent border-r-transparent" />
2626
<div
2727
className={cls(
28-
"relative rounded-l-[1rem] h-full",
29-
successPercent >= 85 ? "bg-[#37E788]" : " bg-_coral-70",
30-
successPercent === 100 ? "rounded-r-[1rem]" : ""
28+
"relative rounded-l-[1rem] h-full rounded-[1rem]",
29+
successPercent >= 85 ? "bg-[#37E788]" : " bg-_coral-70"
3130
)}
3231
style={{ width: `${successPercent}%` }}
3332
>
34-
<p className="text-[1.1rem] font-normal absolute bottom-0 translate-y-9 right-0 translate-x-1/2">
33+
<p className="-translate-y-8 right-0 translate-x-1/2 absolute text-[1.1rem] font-medium">
34+
{successPercent}%
35+
</p>
36+
<p className="text-[1.1rem] font-normal absolute bottom-0 translate-y-8 right-0 translate-x-1/2">
3537
{currentAttempt}/{totalAttempt}
3638
</p>
3739
</div>

0 commit comments

Comments
 (0)