Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat/#32] 상용 환경에서 랭킹 컬러가 잘 보이지 않는 이슈 해결 #55

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const getTodayPoseAnalysis = async (): Promise<TodayAnalysisData> => {

export const getTotalPoseAnalysis = async (): Promise<TodayAnalysisData[]> => {
try {
const res = await axiosInstance.get("/pose-counts?sort=date,desc")
const res = await axiosInstance.get("/pose-counts?sort=date,asc")
return res.data.data
} catch (e) {
throw e
Expand Down
11 changes: 7 additions & 4 deletions src/components/Crew/CrewRanking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ const RankPillar = ({ rank, name, score, height }: any) => {
},
]

const style = rankStyleMap[rank - 1]

return (
<div className="flex flex-col items-center text-zinc-800" style={{ height }}>
<div
className={`flex w-[180px] flex-grow flex-col items-center justify-end py-6 gap-${
rankStyleMap[rank - 1].gap
} rounded-[12px] bg-[${rankStyleMap[rank - 1].bgColor}]`}
style={{ minHeight: "100px" }} // 최소 높이 설정
className={`flex w-[180px] flex-grow flex-col items-center justify-end py-6 gap-${style.gap} rounded-[12px]`}
style={{
minHeight: "100px",
backgroundColor: style.bgColor,
}}
>
<div className="flex flex-col items-center">
{rank === 1 && <Crew1stCrownIcon className="mb-2 h-6 w-6" />}
Expand Down
Loading