Skip to content

Commit

Permalink
[FEAT] MoreInfo proto (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jh2ee committed Jul 19, 2023
1 parent c1a2890 commit 6ea85c2
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 0 deletions.
218 changes: 218 additions & 0 deletions job1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions job1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.1",
"react-scripts": "5.0.1",
"styled-components": "^6.0.4",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
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;
`
Loading

0 comments on commit 6ea85c2

Please sign in to comment.