Skip to content

Commit

Permalink
chore(SettingHeader): 설정 컴포넌트 헤더 퍼블리싱
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Jul 30, 2023
1 parent bd0ad57 commit 1928a24
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/components/common/Modal/SettingModal/SettingHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import Setting from "@/global/assets/svgs/Setting";
import XIcon from "@/global/assets/svgs/XIcon";
import { font } from "@/styles/font";
import React from "react";
import styled from "styled-components";

const SettingHeader = () => {
return (
<Header>
<HGroup>
<Setting width={16} height={16} />
<SettingTitle />
</HGroup>
<CloseButton>
<XIcon />
</CloseButton>
</Header>
);
};

const Header = styled.header`
width: 100%;
padding: 10px 0 10px 18px;
display: flex;
align-items: center;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
`;

const HGroup = styled.hgroup`
display: flex;
align-items: center;
gap: 6px;
`;

const SettingTitle = styled.div`
${font.p2};
font-weight: 500;
&:after {
content: "설정";
}
`;

const CloseButton = styled.button`
margin: 0 20px 0 auto;
`;

export default SettingHeader;

0 comments on commit 1928a24

Please sign in to comment.