forked from eunji-0623/GlobalNomad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,770 additions
and
458 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Build # workflow 의 이름 | ||
|
||
on: push # workflow 의 실행 시점 | ||
|
||
jobs: | ||
build: # job 의 이름 | ||
runs-on: ubuntu-latest # 실행할 OS 환경 | ||
steps: # job 의 세부 단계 | ||
# step1 : 코드 체크아웃 | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# step2 : Node.js 설치 | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
# step3 : 빌드 | ||
- name: Build Next.js app | ||
run: npm run build |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { InputBoxProps } from './InputBox.types'; | ||
|
||
/* | ||
label: label은 optional입니다. | ||
type: 옵셔널이며 기본은 text입니다. | ||
placeholder: placeholder입니다. | ||
name: register의 필드 명입니다. 데이터를 담는 변수명 입니다. | ||
validation: 옵셔널이며 유효성 검사 조건을 담는 변수입니다. | ||
register, errors: 해당 input을 담는 리액트 훅 폼의 register와 errors객체를 넣어주세요. | ||
*/ | ||
|
||
export default function TextArea({ | ||
label = '', | ||
type = 'text', | ||
placeholder, | ||
name, | ||
validation = {}, | ||
register, | ||
errors, | ||
readOnly = false, | ||
}: InputBoxProps) { | ||
return ( | ||
<div className="flex flex-col gap-[16px] relative"> | ||
{label && <label className="text-[24px] font-bold">{label}</label>} | ||
<textarea | ||
className={`border ${errors[name] ? 'border-var-red2' : ''} py-[16px] px-[20px] rounded-md border-var-gray6 w-full h-[346px] resize-none`} | ||
type={type} | ||
placeholder={placeholder} | ||
{...register(name, { ...validation, readOnly })} | ||
readOnly={readOnly} | ||
/> | ||
{/* 에러 메세지 */} | ||
{errors[name] && ( | ||
<span className="text-[12px] text-var-red2"> | ||
{errors[name]?.message} | ||
</span> | ||
)} | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.