Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] MoreInfo proto (#3) #4

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;