-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] 과외방 상세 UI
- Loading branch information
Showing
3 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,45 @@ | ||
const DetailButton = () => { | ||
return <div>Hedaer</div>; | ||
import 강의자료함 from '/강의자료함.png'; | ||
|
||
interface DetailButtonProps { | ||
type: string; | ||
} | ||
|
||
const DetailButton = ({ type }: DetailButtonProps) => { | ||
let title = ''; | ||
let description = ''; | ||
|
||
switch (type) { | ||
case 'materials': | ||
title = '강의 자료함'; | ||
description = '강의 자료를 확인하세요'; | ||
break; | ||
case 'homework': | ||
title = '주차별 숙제'; | ||
description = '이번주 숙제를 확인하세요'; | ||
break; | ||
case 'stats': | ||
title = '성적 통계'; | ||
description = '성적을 확인하세요'; | ||
break; | ||
case 'counseling': | ||
title = '상담 일지'; | ||
description = '상담 기록을 확인하세요'; | ||
break; | ||
case 'payment': | ||
title = '입금'; | ||
description = '다음 입금일은 2025.01.12입니다.'; | ||
break; | ||
} | ||
|
||
return ( | ||
<div className="bg-slate-200 p-4 rounded-[20px] flex-col items-start flex gap-6"> | ||
{type !== 'payment' && <img src={강의자료함} className="h-[80px] w-[80px]"></img>} | ||
<div className="m-0"> | ||
<h3 className="text-[18px] font-bold">{title}</h3> | ||
<p className="text-[13px]">{description}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DetailButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters