Skip to content

Commit a1e9b6d

Browse files
authored
Merge pull request #83 from DDD-Community/feat/#58
[feat/#58] 디자인 QA 수정
2 parents 9268d49 + 6494487 commit a1e9b6d

11 files changed

+70
-134
lines changed

src/components/Crew/CrewRanking.tsx

+31-15
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,57 @@
11
import Crew1stCrownIcon from "@assets/icons/crew-1st-crown.svg?react"
22

33
const RankPillar = ({ rank, name, score, height }: any) => {
4-
const rankStyleMap: { gap: string; bgColor: string; fontSize: string }[] = [
4+
const rankStyleMap: { gap: number | string; bgColor: string; fontSize: string; fontWeight: string }[] = [
55
{
6-
gap: "6",
6+
gap: 24,
77
bgColor: "#8BBAFE",
88
fontSize: "32px",
9+
fontWeight: "600",
910
},
1011
{
11-
gap: "6",
12+
gap: 24,
1213
bgColor: "#DCEBFD",
1314
fontSize: "22px",
15+
fontWeight: "500",
1416
},
1517
{
16-
gap: "4",
18+
gap: 16,
1719
bgColor: "#DCEBFD",
1820
fontSize: "22px",
21+
fontWeight: "500",
1922
},
2023
]
2124

2225
const style = rankStyleMap[rank - 1]
2326

2427
return (
25-
<div className="flex flex-col items-center text-zinc-800" style={{ height }}>
28+
<div className="flex flex-col items-center text-zinc-800">
2629
<div
27-
className={`flex w-[180px] flex-grow flex-col items-center justify-end py-6 gap-${style.gap} rounded-[12px]`}
30+
className={`flex w-[180px] flex-col items-center rounded-[12px] py-6`}
2831
style={{
29-
minHeight: "100px",
3032
backgroundColor: style.bgColor,
33+
gap: style.gap,
34+
height,
3135
}}
3236
>
33-
<div className="flex flex-col items-center">
34-
{rank === 1 && <Crew1stCrownIcon className="mb-2 h-6 w-6" />}
35-
<div className={`font-medium text-[${rankStyleMap[rank - 1].fontSize}]`}>{rank}</div>
37+
<div className="flex flex-col items-center gap-2">
38+
{rank === 1 && (
39+
<div className="">
40+
<Crew1stCrownIcon className="h-6 w-6" />
41+
</div>
42+
)}
43+
<div
44+
className={`font-medium`}
45+
style={{
46+
fontSize: style.fontSize,
47+
fontWeight: style.fontWeight,
48+
}}
49+
>
50+
{rank}
51+
</div>
3652
</div>
37-
<div className="text-xl font-semibold">{name}</div>
38-
<div className="text-[15px] font-normal ">틀어짐 {score}</div>
53+
<div className="text-[20px] font-semibold">{name}</div>
54+
<div className="text-[15px] font-normal ">자세 경고 {score}</div>
3955
</div>
4056
</div>
4157
)
@@ -60,9 +76,9 @@ const CrewRanking = ({ rankings, myRank }: { rankings: any[]; myRank: any }) =>
6076
<div className="flex h-full gap-12">
6177
{/* 1, 2, 3등 랭킹 */}
6278
<div className="flex h-full flex-1 items-end gap-3">
63-
<RankPillar rank={1} name={topThree[0].name} score={topThree[0].score} height="100%" />
64-
<RankPillar rank={2} name={topThree[1].name} score={topThree[1].score} height="82%" />
65-
<RankPillar rank={3} name={topThree[2].name} score={topThree[2].score} height="72%" />
79+
<RankPillar rank={1} name={topThree[0].name} score={topThree[0].score} height="220px" />
80+
<RankPillar rank={2} name={topThree[1].name} score={topThree[1].score} height="180px" />
81+
<RankPillar rank={3} name={topThree[2].name} score={topThree[2].score} height="158px" />
6682
</div>
6783

6884
{/* 전체 랭킹 목록 */}

src/components/Crew/MyCrew/CrewRanking.tsx

-85
This file was deleted.

src/components/Crew/MyCrew/MyCrewRankingContainer.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import SendInvitationIcon from "@assets/icons/crew-send-invitation.svg?react"
22
import CrewUserIcon from "@assets/icons/crew-user-icon.svg?react"
33
import { Link } from "react-router-dom"
4-
import CrewRanking from "./CrewRanking"
4+
import CrewRanking from "../CrewRanking"
55

66
import RoutePath from "@/constants/routes.json"
77
import MyCrewHeader from "./MyCrewHeader"
@@ -58,9 +58,7 @@ export default function MyCrewRankingContainer(props: MyCrewRankingContainerProp
5858
</div>
5959

6060
{/* 랭킹 표시 */}
61-
<div className="mt-4 h-[220px]">
62-
{ranks.length > 0 && myRank && <CrewRanking rankings={ranks} myRank={myRank} />}
63-
</div>
61+
<div className="mt-4">{ranks.length > 0 && myRank && <CrewRanking rankings={ranks} myRank={myRank} />}</div>
6462
</div>
6563
</div>
6664
)

src/components/Posture/GuidePopup/GuidePopupModal.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ const GuidePopupModal = ({ onClose }: { onClose: () => void }): ReactElement =>
2525
{step === 1 && (
2626
<>
2727
<SnapshotGuide />
28-
<button className="w-[354px] rounded-full bg-[#1A75FF] px-4 py-3 text-white" onClick={onClose}>
29-
모니터링 시작하기
28+
<button
29+
className="h-[50px] w-[354px] rounded-full bg-[#1A75FF] px-[39px] py-3 text-white"
30+
onClick={onClose}
31+
>
32+
확인
3033
</button>
3134
</>
3235
)}

src/components/Posture/GuidePopup/ServiceIntroduction.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ export default function ServiceIntroduction() {
55
<div className="h-2 w-2 rounded-full bg-[#1A75FF]"></div>
66
<div className="h-2 w-2 rounded-full bg-zinc-300"></div>
77
</div>
8-
<div className="mb-6">
9-
<div className="mb-3 text-center text-[30px] font-bold leading-10 text-[#1E2535]">
8+
<div className="mb-6 flex flex-col items-center">
9+
<div className="mb-3 text-center text-[30px] font-bold leading-10 leading-10 text-[#1E2535]">
1010
자세공작소는 실시간 모니터링으로 <br />
1111
바른 자세 유지를 돕는 서비스입니다
1212
</div>
13-
<span className="text-[14px] font-normal text-zinc-500">
13+
<span className="text-[14px] font-normal leading-[22px] text-zinc-500">
1414
더 세밀한 모니터링을 위해, 최초 1회 자세 기준점 설정이 필요합니다.
1515
</span>
1616
</div>
1717
{/* content */}
18-
<div className="mb-8 flex gap-4">
18+
<div className="mb-8 flex h-[172px] gap-4">
1919
<div className="flex w-80 flex-col items-center rounded-[17px] bg-[#EFEFF0] px-10 py-6">
2020
<div className="mb-4 h-[24px] w-[24px] rounded-full bg-[#5A9CFF] text-center text-[15px] font-semibold text-white">
2121
1

src/components/Posture/GuidePopup/SnapshotGuide.tsx

+15-11
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,46 @@ import CloseCrewPanelIcon from "@assets/images/posture-snapshot-guide.png"
33
export default function SnapshotGuide() {
44
return (
55
<>
6-
<div className="mb-6 flex gap-2">
6+
<div className="mb-8 flex gap-2">
77
<div className="h-2 w-2 rounded-full bg-zinc-300"></div>
88
<div className="h-2 w-2 rounded-full bg-[#1A75FF]"></div>
99
</div>
1010
<div className="mb-6">
11-
<div className="mb-3 text-center text-[30px] font-bold text-[#1E2535]">바른 자세를 취해주세요</div>
11+
<div className="text-center text-[30px] font-bold leading-10 text-[#1E2535]">바른 자세를 취해주세요</div>
1212
</div>
1313
{/* content */}
14-
<div className="mb-8 flex items-center gap-8">
14+
<div className="mb-6 flex items-center gap-8">
1515
<div className="flex h-[254px] w-[284px] flex-col items-center justify-end rounded-[17px] bg-[#EFEFF0]">
1616
<img src={CloseCrewPanelIcon} alt="스냅샷 가이드" />
1717
</div>
1818
<div className="flex flex-col gap-5">
19-
<div className="flex gap-3">
19+
<div className="flex items-center gap-3">
2020
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white">
2121
1
2222
</span>
23-
<span className="font-[20px] font-semibold text-zinc-800">머리와 목을 일직선으로 곧게 펴기</span>
23+
<span className="font-[20px] font-semibold leading-[30px] text-zinc-800">
24+
머리와 목을 일직선으로 곧게 펴기
25+
</span>
2426
</div>
25-
<div className="flex gap-3">
27+
<div className="flex items-center gap-3">
2628
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white">
2729
2
2830
</span>
29-
<span className="font-[20px] font-semibold text-zinc-800">양쪽 어깨 일직선 유지하기</span>
31+
<span className="font-[20px] font-semibold leading-[30px] text-zinc-800">양쪽 어깨 일직선 유지하기</span>
3032
</div>
31-
<div className="flex gap-3">
33+
<div className="flex items-center gap-3">
3234
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white">
3335
3
3436
</span>
35-
<span className="font-[20px] font-semibold text-zinc-800">팔은 책상 위에 수평으로 두기</span>
37+
<span className="font-[20px] font-semibold leading-[30px] text-zinc-800">팔은 책상 위에 수평으로 두기</span>
3638
</div>
37-
<div className="flex gap-3">
39+
<div className="flex items-center gap-3">
3840
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white">
3941
4
4042
</span>
41-
<span className="font-[20px] font-semibold text-zinc-800">등과 허리는 등받이에 지지하기</span>
43+
<span className="font-[20px] font-semibold leading-[30px] text-zinc-800">
44+
등과 허리는 등받이에 지지하기
45+
</span>
4246
</div>
4347
</div>
4448
</div>

src/layouts/AnalysisLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Outlet } from "react-router-dom"
22

33
export default function AnalysisLayout() {
44
return (
5-
<div className="min-h-full bg-[#F9F9FD] px-28 py-12">
5+
<div className="min-h-full min-w-[1216px] bg-[#F9F9FD] px-28 py-12">
66
<Outlet />
77
</div>
88
)

src/layouts/BaseLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const BaseLayout: React.FC = () => {
88
<SideNav />
99

1010
{/* Main Content */}
11-
<main id="main-content" className="relative min-w-[652px] flex-1 overflow-y-auto">
11+
<main id="main-content" className="relative flex-1 overflow-y-auto">
1212
<Outlet />
1313
<div id="modal-root"></div>
1414
</main>

src/layouts/MonitoringLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Outlet } from "react-router-dom"
22

33
export default function MonitoringLayout() {
44
return (
5-
<div className="h-full bg-zinc-900 p-3">
5+
<div className="h-full min-w-[652px] bg-zinc-900 p-3 ">
66
<Outlet />
77
</div>
88
)

src/pages/AnalysisDashboard.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ const AnalysisDashboard = () => {
9999
{isError && <div>데이터를 불러오는 것에 실패했습니다</div>}
100100

101101
{!isLoading && !isError && todayAnalysis && (
102-
<div className=" mb-8">
102+
<div className="mb-8">
103103
<div className="flex">
104104
{/* 고정된 전체 틀어짐 횟수 카드 */}
105105
<div className="relative">
106106
<div className="mr-[15px] flex h-[266px] w-[230px] flex-col items-center rounded-lg bg-zinc-800 text-white">
107-
<p className="mt-8 text-sm text-[#5A9CFF]">전체 자세 경고 횟수</p>
108-
<div className="mt-2 flex items-center">
109-
<span className="text-4xl font-bold">{totalCount}</span>
110-
<span className="ml-1 text-sm"></span>
107+
<span className="mt-8 text-[15px] text-[#5A9CFF]">전체 자세 경고 횟수</span>
108+
<div className="flex items-center gap-1">
109+
<span className="text-[40px] font-medium">{totalCount}</span>
110+
<span className="text-[15px] font-semibold"></span>
111111
</div>
112112
<div className="absolute bottom-[25px] flex h-24 justify-center">
113113
<TotalCountChartIcon />
@@ -133,10 +133,10 @@ const AnalysisDashboard = () => {
133133
<div className="relative overflow-hidden rounded-lg bg-gray-100">
134134
<img src={image} alt={title} className="h-full w-full" />
135135
<div className="absolute inset-0 flex flex-col items-center pt-8 text-black">
136-
<p className="text-lg font-semibold">{title}</p>
136+
<span className="text-[15px] font-semibold">{title}</span>
137137
<div className="flex items-center gap-1">
138-
<div className="mb-2 pt-2 text-4xl font-bold">{getPoseCount(type)}</div>
139-
<div className="text-lg"></div>
138+
<div className="text-[40px] font-medium">{getPoseCount(type)}</div>
139+
<div className="text-[15px] font-semibold"></div>
140140
</div>
141141
</div>
142142
</div>

src/pages/MyCrew.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import CrewRanking from "@/components/Crew/MyCrew/CrewRanking"
1+
import CrewRanking from "@/components/Crew/CrewRanking"
22
import MyCrewHeader from "@/components/Crew/MyCrew/MyCrewHeader"
33
import { useModals } from "@/hooks/useModals"
44
import useMyGroup from "@/hooks/useMyGroup"
@@ -106,7 +106,7 @@ export default function MyCrew() {
106106
{/* 랭킹 헤더 */}
107107
<div className="mt-10">
108108
<div className="flex items-center justify-between">
109-
<span className="text-xl font-semibold text-zinc-700">바른자세 랭킹</span>
109+
<span className="text-[20px] font-semibold text-zinc-700">바른자세 랭킹</span>
110110
<div className="flex gap-2 text-[13px] font-normal text-zinc-400">
111111
<span>최근 1시간</span>
112112
<span>|</span>

0 commit comments

Comments
 (0)