-
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.
๐๏ธ Chore : ์์ธ์ ๋ณด ๋ชจ๋ฌ ๊ตฌํ ๋ฐ mbti์ ํ ์ปดํฌ๋ํธ ์์ (#30)
- Loading branch information
Showing
5 changed files
with
145 additions
and
10 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
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,61 @@ | ||
.join-detail { | ||
padding: 20px; | ||
} | ||
|
||
.join-detail h2 { | ||
font-size: 18px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.join-detail h3 { | ||
font-size: 1.0rem; | ||
margin-bottom: 10px; | ||
font-weight: 600; | ||
} | ||
|
||
.gender-selector, .birth-date-selector, .mbti-selector { | ||
margin-bottom: 20px; | ||
padding-bottom: 20px; | ||
border-bottom: 1px solid #EEEEEE; | ||
} | ||
|
||
.gender-options { | ||
display: flex; | ||
justify-content: left; | ||
gap: 20px; | ||
} | ||
|
||
.gender-options label { | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
} | ||
|
||
.gender-options input[type="radio"] { | ||
margin-left: 15px; | ||
} | ||
|
||
.birth-date-selector { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
} | ||
|
||
.birth-date-selector h3 { | ||
align-self: flex-start; | ||
} | ||
|
||
.birth-date-selector input { | ||
width: 400px; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
text-align: center; | ||
align-self: center; | ||
} | ||
|
||
.mbti-selector { | ||
width: 100%; | ||
border-bottom: none; | ||
} |
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,67 @@ | ||
import { useState } from 'react'; | ||
import BottomModal from '@components/BottomModal/BottomModal'; | ||
import MbtiSelector from '@components/MbtiSelector/MbtiSelector'; | ||
import './JoinDetail.css'; | ||
|
||
const JoinDetail: React.FC = () => { | ||
const [gender, setGender] = useState<'male' | 'female'>('male'); | ||
const [birthDate, setBirthDate] = useState(''); | ||
const [mbti, setMbti] = useState(''); | ||
|
||
const handleMbtiChange = (selectedMbti: string) => { | ||
setMbti(selectedMbti); | ||
}; | ||
|
||
const handleSubmit = () => { | ||
console.log({ gender, birthDate, mbti }); | ||
}; | ||
|
||
return ( | ||
<BottomModal onClick={handleSubmit} buttonText="ํ์ธ"> | ||
<div className="join-detail"> | ||
<div className="gender-selector"> | ||
<h3>์ฑ๋ณ</h3> | ||
<div className="gender-options"> | ||
<label> | ||
๋จ | ||
<input | ||
type="radio" | ||
name="gender" | ||
value="male" | ||
checked={gender === 'male'} | ||
onChange={() => setGender('male')} | ||
/> | ||
|
||
</label> | ||
<label> | ||
์ฌ | ||
<input | ||
type="radio" | ||
name="gender" | ||
value="female" | ||
checked={gender === 'female'} | ||
onChange={() => setGender('female')} | ||
/> | ||
|
||
</label> | ||
</div> | ||
</div> | ||
<div className="birth-date-selector"> | ||
<h3>์๋ ์์ผ</h3> | ||
<input | ||
type="date" | ||
value={birthDate} | ||
onChange={(e) => setBirthDate(e.target.value)} | ||
placeholder="YYYY.MM.DD" | ||
/> | ||
</div> | ||
<div className="mbti-selector"> | ||
<h3>MBTI</h3> | ||
<MbtiSelector onMbtiChange={handleMbtiChange} /> | ||
</div> | ||
</div> | ||
</BottomModal> | ||
); | ||
}; | ||
|
||
export default JoinDetail; |
File renamed without changes.
File renamed without changes.