Skip to content

Commit

Permalink
style : info css ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
jiHeeFlee committed Nov 23, 2024
1 parent 3c6125e commit 8ee96fd
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions src/components/MyPage/MyInfo.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
import styled from "styled-components";
import themeGet from "../../utils/themeGet";

const MyInfoComponent = ({ title, content }) => {
return (
<Container>
<TitleDiv>{title}</TitleDiv>
<ContentDiv>{content}</ContentDiv>
</Container>
);
};

export default MyInfoComponent;

const Container = styled.div`
width: 40%;
display: flex;
justify-content: space-between;
flex-direction: row;
justify-content: left;
flex-wrap: wrap;
gap: 40px;
`;

const TitleDiv = styled.div`
display: flex;
margin: 0;
padding: 0;
color: ${themeGet("color.300")};
font-size: ${themeGet("fonts.sub_head.size")};
font-weight: bold;
`;

const ContentDiv = styled.div`
display: inline-block;
color: ${themeGet("color.400")};
font-size: ${themeGet("fonts.sub_head.size")};
`;
const MyInfoComponent = ({ title, content }) => {
return (
<Container>
<TitleDiv>{title}</TitleDiv>
<ContentDiv>{content}</ContentDiv>
</Container>
);
};

export default MyInfoComponent;
`;

0 comments on commit 8ee96fd

Please sign in to comment.