Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승윤
2021-04-30 00:26:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
90ea89891a324de7df2ab811d97332c1d83ea14c
90ea8989
1 parent
32d33617
feat: Button 컴포넌트 설정 요소 추가
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
frontend/src/components/common/Button.js
node_modules/.yarn-integrity
frontend/src/components/common/Button.js
View file @
90ea898
...
...
@@ -3,18 +3,29 @@ import styled from 'styled-components';
import
{
buttonColorMap
}
from
'../../lib/styles/palette'
;
const
ButtonBlock
=
styled
.
button
`
width: 20%;
width:
${
props
=>
props
.
width
||
'80px'
}
;
height:
${
props
=>
props
.
height
||
'40px'
}
;
font-size:
${
props
=>
props
.
fontsize
||
'15px'
}
;
background-color:
${
props
=>
buttonColorMap
[
props
.
color
].
background
}
;
&:hover {
background-color:
${
props
=>
buttonColorMap
[
props
.
color
].
hoverBackground
}
;
}
color:
${
props
=>
buttonColorMap
[
props
.
color
].
color
}
;
float:
${
props
=>
props
.
float
||
''
}
;
border-radius: 0.3em;
cursor: pointer;
border: 1px
${
props
=>
buttonColorMap
[
props
.
color
].
background
}
;
`
;
const
Button
=
({
children
,
color
,
float
})
=>
{
const
Button
=
({
children
,
color
,
float
,
width
,
height
,
fontsize
})
=>
{
return
(
<
ButtonBlock
color
=
{
color
}
float
=
{
float
}
>
<
ButtonBlock
color
=
{
color
||
'blue'
}
float
=
{
float
}
width
=
{
width
}
height
=
{
height
}
fontsize
=
{
fontsize
}
>
{
children
}
<
/ButtonBlock>
);
...
...
node_modules/.yarn-integrity
0 → 100644
View file @
90ea898
{
"systemParams"
:
"darwin-x64-88"
,
"modulesFolders"
:
[],
"flags"
:
[],
"linkedModules"
:
[],
"topLevelPatterns"
:
[],
"lockfileEntries"
:
{},
"files"
:
[],
"artifacts"
:
{}
}
\ No newline at end of file
Please
register
or
login
to post a comment