generated from Team-INSERT/Repository-generator-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(SettingHeader): 설정 컴포넌트 헤더 퍼블리싱
- Loading branch information
1 parent
bd0ad57
commit 1928a24
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
src/components/common/Modal/SettingModal/SettingHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |