Skip to content

Commit

Permalink
Merge pull request #4 from Hongmoon-gak/feature/moreinfo
Browse files Browse the repository at this point in the history
[FEAT] MoreInfo proto (#3)
  • Loading branch information
jh2ee authored Jul 21, 2023
2 parents 42430cc + 17d2233 commit acb36e6
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 7 deletions.
24 changes: 24 additions & 0 deletions job1/src/Component/InfoCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

import styled from "styled-components";

function InfoCard(props){
return(
<Card>
<img src={props.img} alt={props.name} />
<p>{props.name}</p>
<a href='tel:{props.tel}' >Tel: {props.tel}</a>
</Card>
)
}

export default InfoCard;

const Card=styled.div`
width: 16.1875rem;
height: 22.6875rem;
margin: 2rem;
flex-shrink: 0;
border-radius: 1.5rem;
background: var(--neutral-colors-white, #FFF);
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.12);
`
40 changes: 40 additions & 0 deletions job1/src/Main/MoreInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

import InfoCard from "../Component/InfoCard";

import styled from "styled-components";

function MoreInfo(){
return(
<div align="center">
<div>
<h3>해결 방법을 찾지 못했나요?</h3>
<p>아래 기관에서 전문적인 도움을 받아보세요</p>
</div>
<MoreInfoContainer>
<InfoCard
img=''
name='고용노동부 고객 상담 센터'
tel='1350'
/>
<InfoCard
img=''
name='직장 내 괴롭힘 상담센터'
tel='1522-9000'
/>
<InfoCard
img=''
name='근로 복지 공단'
tel='1588-0075'
/>
</MoreInfoContainer>
</div>
)
}

export default MoreInfo;

const MoreInfoContainer=styled.div`
display: flex;
justify-content: center;
align-items: center;
`
16 changes: 9 additions & 7 deletions job1/src/View/Home.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import Preview from "../Main/Preview";
import MoreInfo from "../Main/MoreInfo";

function Home() {
return (
<div>
home
<Preview />
</div>
);
function Home(){
return(
<div>
home
<Preview />
<MoreInfo/>
</div>
)
}

export default Home;

0 comments on commit acb36e6

Please sign in to comment.