-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
125 additions
and
40 deletions.
There are no files selected for viewing
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,57 @@ | ||
import { styled } from "styled-components"; | ||
|
||
import SearchBox from "./SearchBox"; | ||
|
||
const titleText: string = "비교차트"; | ||
|
||
const CompareChartSection = () => { | ||
return ( | ||
<Container> | ||
<UpperBar> | ||
<Title>{titleText}</Title> | ||
<CloseBtn>✕</CloseBtn> | ||
</UpperBar> | ||
<SearchBox /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default CompareChartSection; | ||
|
||
const Container = styled.div` | ||
position: fixed; | ||
left: 0px; | ||
transition: 0.3s left ease-in-out; | ||
min-width: 248px; | ||
height: 100%; | ||
border: 1px solid black; | ||
`; | ||
|
||
const UpperBar = styled.div` | ||
position: relative; | ||
width: 100%; | ||
height: 43px; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
border-bottom: 1px solid darkgray; | ||
`; | ||
|
||
const Title = styled.h2` | ||
font-size: 17px; | ||
font-weight: 500; | ||
`; | ||
|
||
const CloseBtn = styled.button` | ||
position: absolute; | ||
right: 10px; | ||
width: 28px; | ||
height: 95%; | ||
border: none; | ||
font-size: 17px; | ||
font-weight: 500; | ||
color: #525252; | ||
background-color: #ffff; | ||
`; |
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,15 @@ | ||
import { styled } from "styled-components"; | ||
|
||
const SearchBox = () => { | ||
return <Container></Container>; | ||
}; | ||
|
||
export default SearchBox; | ||
|
||
const Container = styled.div` | ||
width: 100%; | ||
height: 39px; | ||
padding-left: 12px; | ||
padding-right: 12px; | ||
border-bottom: 1px solid darkgray; | ||
`; |
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