-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from MinseoKangQ/develop
Develop
- Loading branch information
Showing
7 changed files
with
126 additions
and
7 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
} | ||
|
||
.username-input { | ||
width: 20%; | ||
width: 30%; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
|
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,19 @@ | ||
.introduce-container { | ||
margin: 20px 0; | ||
text-align: left; | ||
} | ||
|
||
.introduction-input { | ||
width: 80%; | ||
height: 100px; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
resize: vertical; | ||
font-family: 'Font Name', sans-serif; | ||
font-size: 14px; | ||
} | ||
|
||
.introduce-container h3 { | ||
margin: 50px 0px 20px 0px; | ||
} |
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,34 @@ | ||
import { useState } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './Introduce.css'; | ||
|
||
function Introduce({ setUserIntroduction }) { | ||
const [introduction, setIntroduction] = useState(''); | ||
|
||
const handleChange = (e) => { | ||
setIntroduction(e.target.value); | ||
}; | ||
|
||
const handleBlur = () => { | ||
setUserIntroduction(introduction); | ||
}; | ||
|
||
return ( | ||
<div className="introduce-container"> | ||
<h3>👋 Tell me about yourself</h3> | ||
<textarea | ||
value={introduction} | ||
onChange={handleChange} | ||
onBlur={handleBlur} | ||
className="introduction-input" | ||
placeholder="Hello, I am a user!" | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
Introduce.propTypes = { | ||
setUserIntroduction: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default Introduce; |
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