-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f89b7bb
commit b5bf551
Showing
4 changed files
with
51 additions
and
0 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,15 @@ | ||
import React, { useState } from 'react'; | ||
import * as S from './GraphBox.style'; | ||
|
||
const GraphBox = ({ category, children }) => { | ||
return ( | ||
<> | ||
<S.Wrapper> | ||
<S.Label>{category}</S.Label> | ||
<S.Box>{children}</S.Box> | ||
</S.Wrapper> | ||
</> | ||
); | ||
}; | ||
|
||
export default GraphBox; |
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,33 @@ | ||
import styled, { css } from 'styled-components'; | ||
|
||
export const Wrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
margin: 20px 0; | ||
`; | ||
|
||
export const Label = styled.div` | ||
position: relative; | ||
font-size: 28px; | ||
font-weight: 600; | ||
color: #0d0d0d; | ||
text-align: left; | ||
`; | ||
|
||
export const Box = styled.div` | ||
max-width: 100%; | ||
position: relative; | ||
border-radius: 20px; | ||
border: 1px solid #aecfff; | ||
box-sizing: border-box; | ||
overflow: auto; | ||
padding: 20px; | ||
margin: 28px 0; | ||
height: 332px; | ||
* { | ||
max-width: 100%; | ||
height: auto; | ||
display: block; | ||
} | ||
`; |
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 @@ | ||
export { default as GraphBox } from './GraphBox'; |
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