-
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.
[#13] Feat InformationPage - 직원소개 컴포넌트 props화
- Loading branch information
Showing
5 changed files
with
27 additions
and
440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,36 +7,37 @@ import phone from "../../assets/img/information/phone.png"; | |
import imac from "../../assets/img/information/imac.png"; | ||
import character from "../../assets/img/information/character.png" | ||
|
||
const Cheongjo = () => { | ||
type InfoProps = { | ||
name: string; | ||
task: string; | ||
number: string; | ||
emailAdress: string; | ||
}; | ||
|
||
const InfoCard = ({ name, task, number, emailAdress }: InfoProps) => ( | ||
<InfoBox> | ||
<Circle> | ||
<Image src={character} alt={''} width={80} /> | ||
</Circle> | ||
<Name>{name}</Name> | ||
<TaskBox> | ||
<Image src={imac} alt={''} width={35} /> | ||
<Task>{task}</Task> | ||
</TaskBox> | ||
<NumberBox> | ||
<Image src={phone} alt={''} width={20} /> | ||
<Number>{number}</Number> | ||
</NumberBox> | ||
<EmailBox> | ||
<Image src={email} alt={''} width={20}/> | ||
<Email>{emailAdress}</Email> | ||
</EmailBox> | ||
</InfoBox> | ||
); | ||
|
||
|
||
return ( | ||
<Wrapper> | ||
<InfoBox> | ||
<Circle> | ||
<Image src={character} alt = {''} width={80} /> | ||
</Circle> | ||
<Name>박 청 조</Name> | ||
<TaskBox> | ||
<Image src={imac} alt={""} width={35} /> | ||
<Task>Back</Task> | ||
</TaskBox> | ||
<NumberBox> | ||
<Image src={phone} alt={""} width={20} /> | ||
<Number>010-0000-0000</Number> | ||
</NumberBox> | ||
<EmailBox> | ||
<Image src={email} alt={""} width={20} /> | ||
<Email>[email protected]</Email> | ||
</EmailBox> | ||
</InfoBox> | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
export default Cheongjo; | ||
|
||
export default InfoCard; | ||
const Wrapper = styled.div` | ||
position: relative; | ||
display: flex; | ||
|
Oops, something went wrong.