Skip to content

Commit

Permalink
[#13] Feat InformationPage - 페이지 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
ppacman committed Mar 17, 2023
1 parent 3bf7d7f commit f337622
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 42 deletions.
52 changes: 52 additions & 0 deletions src/components/infoPage/InfoCardWrapp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import styled from "styled-components";
import React from "react";
import InfoCard from "./InfoCard";

const InfoCardWrapp = () => {
return (
<InfoCardWrapper>
<InfoCard
name="김 효 성"
task="Front"
number="010-3388-3951"
emailAdress="[email protected]"
/>

<InfoCard
name="조 금 주"
task="Front"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="박 청 조"
task="Back"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="박 해 연"
task="Back"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="최 준 형 "
task="Front"
number="010-0000-0000"
emailAdress="[email protected]"
/>
</InfoCardWrapper>
);
};

export default InfoCardWrapp;
const InfoCardWrapper = styled.div`
position: relative;
display: flex;
justify-content: space-around;
margin-bottom: 80px;
`;
45 changes: 3 additions & 42 deletions src/components/infoPage/InformationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import information from "../../assets/img/information/information.png";
import schedule from "../../assets/img/information/schedule.png";
import Scheduler from "./Scheduler";
import InfoCard from "./InfoCard";
import InfoCardWrapp from "./InfoCardWrapp";

const InformationPage = () => {
return (
Expand All @@ -13,42 +14,7 @@ const InformationPage = () => {
<Image src={information} alt={""} width={50} />
<InfoHeadText>직원정보</InfoHeadText>
</InfoHead>
<StickWrapper>
<InfoCard
name="김 효 성"
task="Front"
number="010-3388-3951"
emailAdress="[email protected]"
/>

<InfoCard
name="조 금 주"
task="Front"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="박 청 조"
task="Back"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="박 해 연"
task="Back"
number="010-0000-0000"
emailAdress="[email protected]"
/>

<InfoCard
name="최 준 형 "
task="Front"
number="010-0000-0000"
emailAdress="[email protected]"
/>
</StickWrapper>
<InfoCardWrapp />
<ScheduleHead>
<Image src={schedule} alt={""} width={50} />
<ScheduleHeadText>스케쥴</ScheduleHeadText>
Expand All @@ -72,12 +38,7 @@ const InfoHeadText = styled.p`
font-weight: bolder;
margin-left: 20px;
`;
const StickWrapper = styled.div`
position: relative;
display: flex;
justify-content: space-around;
margin-bottom: 80px;
`;

const ScheduleHead = styled.div`
display: flex;
margin: 40px;
Expand Down

0 comments on commit f337622

Please sign in to comment.