Skip to content

Commit ce88be5

Browse files
authored
Merge pull request #109 from Team-return/#108-add-company-name
feat :: 취업률 페이지 기업명 추가
2 parents 3618014 + 2381b4b commit ce88be5

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

src/components/jobRate/JobCurrentSituation.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function JobCurrentSituation({ year }: { year: number }) {
2828
);
2929
}
3030
return (
31-
<div className="w-full grid grid-cols-2 gap-10">
31+
<div className="w-full grid grid-cols-2 gap-10 ">
3232
{data?.classes.map((classItem) => {
3333
return (
3434
<div key={classItem.class_id} className="flex flex-col gap-4">
@@ -41,17 +41,22 @@ export default function JobCurrentSituation({ year }: { year: number }) {
4141
</span>
4242
</header>
4343

44-
<div className="px-[18px] py-5 border border-[#E5E5E5] bg-[#fff] rounded-md grid grid-cols-4 gap-2">
44+
<div className="pt-[12px] px-[18px] pb-[16px] border border-[#E5E5E5] bg-[#fff] rounded-md grid grid-cols-4 gap-2">
4545
{classItem.employment_rate_response_list.map((data) => (
4646
<div
4747
key={data.id}
48-
className="bg-[#fff] border border-[#F7F7F7] rounded-md w-[100px] h-[44px] p-1 flex justify-center"
48+
className="bg-[#fff] rounded-md p-1 flex flex-col items-center justify-center gap-1"
4949
>
50-
<img
51-
src={`${BASE_URL}/${data.logo_url}`}
52-
alt={`${data.company_name} 로고`}
53-
className="rounded-md"
54-
/>
50+
<div className="w-[100px] h-[40px] overflow-hidden rounded-md flex items-center justify-center bg-white shadow-[0px_4px_20px_rgba(112,144,176,0.12)]">
51+
<img
52+
src={`${BASE_URL}/${data.logo_url}`}
53+
alt={`${data.company_name} 로고`}
54+
className="object-contain w-[100px] h-[40px]"
55+
/>
56+
</div>
57+
<div className="text-[#7F7F7F] text-caption truncate text-center w-[100px]">
58+
{data.company_name}
59+
</div>
5560
</div>
5661
))}
5762
</div>

src/components/jobRate/JobPieChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function JobPieChart({ year }: { year: number }) {
9595
</Pie>
9696
</PieChart>
9797
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center text-b2 font-b text-primaryBlue03">
98-
{((passedCount / totalStudentCount) * 100).toFixed(1)}
98+
{((passedCount / totalStudentCount) * 100).toFixed(1)}%
9999
</div>
100100
</div>
101101
</div>
@@ -104,7 +104,7 @@ export default function JobPieChart({ year }: { year: number }) {
104104
<div className="flex flex-col gap-3 items-center">
105105
<p className="text-primaryBlue03 font-m text-caption">전체 취업률</p>
106106
<p className="text-primaryBlue03 font-m text-h6">
107-
{((passedCount / totalStudentCount) * 100).toFixed(1)}
107+
{((passedCount / totalStudentCount) * 100).toFixed(1)}%
108108
</p>
109109
</div>
110110
<div className="w-[1px] h-[26px] bg-[#E5E5E5]"></div>

0 commit comments

Comments
 (0)