ㄱㄱㄱ
This commit is contained in:
@@ -1,12 +1,118 @@
|
||||
type ResultRow = {
|
||||
programTitle: string;
|
||||
courseTitle: string;
|
||||
completedAt: string;
|
||||
score: string;
|
||||
instructor: string;
|
||||
feedbackLink?: string;
|
||||
certificateLink?: string;
|
||||
};
|
||||
|
||||
const mockResults: ResultRow[] = [
|
||||
{
|
||||
programTitle: "XR 안전 기본 과정",
|
||||
courseTitle: "{강좌명}",
|
||||
completedAt: "2025-09-10",
|
||||
score: "-",
|
||||
instructor: "이공필",
|
||||
},
|
||||
{
|
||||
programTitle: "건설 현장 안전 실무",
|
||||
courseTitle: "{강좌명}",
|
||||
completedAt: "2025-09-10",
|
||||
score: "70 / 100",
|
||||
instructor: "이공필",
|
||||
feedbackLink: "#",
|
||||
certificateLink: "#",
|
||||
},
|
||||
{
|
||||
programTitle: "전기 설비 위험성 평가",
|
||||
courseTitle: "{강좌명}",
|
||||
completedAt: "2025-09-10",
|
||||
score: "70 / 100",
|
||||
instructor: "이공필",
|
||||
feedbackLink: "#",
|
||||
certificateLink: "#",
|
||||
},
|
||||
];
|
||||
|
||||
export default function ResultsPage() {
|
||||
return (
|
||||
<main className="flex w-full flex-col">
|
||||
<div className="flex h-[100px] items-center px-8">
|
||||
<h1 className="text-[24px] font-bold leading-[1.5] text-[#1b2027]">학습 결과</h1>
|
||||
</div>
|
||||
<div className="px-8 pb-20">
|
||||
<p className="text-[16px] leading-[1.5] text-[#4c5561]">콘텐츠 준비 중입니다.</p>
|
||||
</div>
|
||||
|
||||
<section className="px-8 pb-20">
|
||||
<div className="rounded-[8px]">
|
||||
<div className="w-full overflow-x-auto rounded-[8px] border border-[#dee1e6]">
|
||||
<table className="min-w-full border-collapse">
|
||||
<colgroup>
|
||||
<col />
|
||||
<col />
|
||||
<col style={{ width: 140 }} />
|
||||
<col style={{ width: 140 }} />
|
||||
<col style={{ width: 140 }} />
|
||||
<col style={{ width: 76 }} />
|
||||
<col style={{ width: 76 }} />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr className="h-12 bg-gray-50 text-left">
|
||||
<th className="border-r border-[#dee1e6] px-4 text-[14px] font-semibold leading-[1.5] text-[#4c5561]">교육 과정명</th>
|
||||
<th className="border-r border-[#dee1e6] px-4 text-[14px] font-semibold leading-[1.5] text-[#4c5561]">강좌명</th>
|
||||
<th className="border-r border-[#dee1e6] px-4 text-[14px] font-semibold leading-[1.5] text-[#4c5561]">수강 완료일</th>
|
||||
<th className="border-r border-[#dee1e6] px-4 text-[14px] font-semibold leading-[1.5] text-[#4c5561]">평가 점수(점)</th>
|
||||
<th className="border-r border-[#dee1e6] px-4 text-[14px] font-semibold leading-[1.5] text-[#4c5561]">평가 강사</th>
|
||||
<th className="border-r border-[#dee1e6] px-4 text-center text-[14px] font-semibold leading-[1.5] text-[#4c5561]">피드백</th>
|
||||
<th className="px-4 text-center text-[14px] font-semibold leading-[1.5] text-[#4c5561]">수료증</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{mockResults.map((row, idx) => (
|
||||
<tr
|
||||
key={`${row.programTitle}-${idx}`}
|
||||
className={idx === 1 ? "h-12 bg-[rgba(236,240,255,0.5)]" : "h-12"}
|
||||
>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.programTitle}
|
||||
</td>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.courseTitle}
|
||||
</td>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.completedAt}
|
||||
</td>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.score}
|
||||
</td>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.instructor}
|
||||
</td>
|
||||
<td className="border-t border-r border-[#dee1e6] px-4 text-center text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.feedbackLink ? (
|
||||
<a href={row.feedbackLink} className="text-[12px] text-blue-500 underline underline-offset-[3px]">
|
||||
확인하기
|
||||
</a>
|
||||
) : (
|
||||
"-"
|
||||
)}
|
||||
</td>
|
||||
<td className="border-t border-[#dee1e6] px-4 text-center text-[15px] leading-[1.5] text-[#1b2027]">
|
||||
{row.certificateLink ? (
|
||||
<a href={row.certificateLink} className="text-[12px] text-blue-500 underline underline-offset-[3px]">
|
||||
확인하기
|
||||
</a>
|
||||
) : (
|
||||
"-"
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user