Skip to content

Commit

Permalink
[#13] Feat InformationPage - 직원소개 컴포넌트 props화
Browse files Browse the repository at this point in the history
  • Loading branch information
ppacman committed Mar 17, 2023
1 parent 521b8eb commit c97541e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 440 deletions.
102 changes: 0 additions & 102 deletions src/components/infoPage/Geumju.tsx

This file was deleted.

103 changes: 0 additions & 103 deletions src/components/infoPage/Haeyeon.tsx

This file was deleted.

107 changes: 0 additions & 107 deletions src/components/infoPage/Hyoseong.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit c97541e

Please sign in to comment.