const PrevButton = ({ step }) => {
const prev = step === 1 ? "/" : `/step/${step - 1}`
return (
<Link href={prev}>
<button type="button">
<ChevronLeftIcon className="h-10 w-10 -ml-3" />
</button>
</Link>
)
}
프로젝트 완료 후에도 간직하고 싶은 잘했던 것 / 좋았던 것
ex) "~기술 적용을 했더니 효율적으로 ~를 할 수 있었다.”
프로젝트 중 겪었던 어려움
ex) "~기능 적용 중 ~이슈가 발생하였다.”
const NextButton = ({ isDisable, text, onClick, color, size }) => {
const commonCss = "px-7 py-3 text-lg border-solid border-2 rounded-full"
const sizeType = size === "half" ? "w-1/2" : "w-full"
const colorType = {
red: "bg-red-400 text-white border-red-400",
white: "bg-white text-gray-800 border-gray-800",
gray: "bg-gray-300 text-white border-gray-300",
disabled: "bg-gray-300 text-gray-600 border-gray-300",
}
return (
<button
disabled={isDisable}
className={
isDisable
? `${commonCss} ${colorType.disabled} ${sizeType}`
: `${commonCss} ${colorType[color]} ${sizeType}`
}
onClick={onClick}
>
{text}
</button>
)
}
NextButton.defaultProps = {
color: "red",
}
export { NextButton }
Problem 중 해결된 사항에 대한 해결 방법 / 해결되지 않은 사항에 대한 피드백
ex) "~기능 적용 중 발생한 ~이슈 해결을 위해 ~를 하였다.”
<Button text="여기 텍스트" />
<Button>아이콘도 넣을 수 있어요!<SomeIcon /></Button>
<button
disabled
className={
isDisable? `${commonCss} ${colorType.disabled} ${sizeType}`
: `${commonCss} ${colorType[color]} ${sizeType}`
}
onClick={onClick}>
{children}
</button>
const buttonStyle = `${button} ${disabled ? buttonDisabled : ""} ${
buttonColor[color]
} ${buttonSize}`
<button disabled={disabled} className={buttonStyle} onClick={onClick}>
{children}
</button>
```