Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대휘
/
Do-gether
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대휘
2020-06-04 02:01:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e0135f655e98e23e367097c4eb80a4bbbd03e26a
e0135f65
1 parent
3771bd52
Adjusted the Card
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
23 deletions
client/src/components/BodyLayout.js
client/src/components/TodoCard.js
client/src/index.js
client/src/components/BodyLayout.js
View file @
e0135f6
import
React
from
"react"
;
import
{
makeStyles
}
from
"@material-ui/core/styles"
;
import
Grid
from
"@material-ui/core/Grid"
;
import
Container
from
"@material-ui/core/Container"
;
import
Icon
from
'@material-ui/core/Icon'
;
import
Grid
from
"@material-ui/core/Grid"
;
import
Icon
from
"@material-ui/core/Icon"
;
import
TodoCard
from
"./TodoCard.js"
;
const
data
=
{
date
:
"2020-99-99"
,
title
:
"머휘의 TODO LSIT"
,
todo
:[
"응가하기"
,
"똥싸기"
,
"변누기"
]
}
const
data
=
{
date
:
"2020-99-99"
,
name
:
"daehwi"
,
isPublic
:
true
,
title
:
"열글자까지가능합니다."
,
todo
:
[
"응가하기"
,
"똥싸기"
,
"변누기"
],
};
const
useStyles
=
makeStyles
((
theme
)
=>
({
root
:
{
flexGrow
:
1
,
backgroundColor
:
"#e9e9e9"
,
paddingTop
:
"4rem"
,
marginTop
:
"0"
backgroundColor
:
"#e9e9e9"
,
paddingTop
:
"4rem"
,
marginTop
:
"0"
,
},
item
:
{
marginLeft
:
"auto"
,
...
...
@@ -32,7 +34,7 @@ export default function CenteredGrid() {
<
Container
className
=
{
classes
.
root
}
maxwidth
=
"sm"
>
<
Grid
className
=
{
classes
.
item
}
container
spacing
=
{
3
}
>
<
Grid
item
xs
=
"6"
sm
=
"6"
md
=
"3"
>
<
TodoCard
data
=
{
data
}
/
>
<
TodoCard
data
=
{
data
}
/
>
<
/Grid
>
<
Grid
item
xs
=
"6"
sm
=
"6"
md
=
"3"
alignItems
=
"center"
>
<
Icon
style
=
{{
fontSize
:
60
}}
>
add_circle
<
/Icon
>
...
...
client/src/components/TodoCard.js
View file @
e0135f6
...
...
@@ -14,38 +14,54 @@ const useStyles = makeStyles({
float
:
"left"
,
},
icon
:
{
marginRight
:
"1%"
,
fontSize
:
18
,
marginTop
:
"auto"
,
float
:
"right"
,
color
:
"black"
,
},
title
:
{
clear
:
"both"
,
float
:
"left"
,
},
checkBox
:
{
clear
:
"both"
,
float
:
"left"
,
},
pos
:
{
marginBottom
:
12
,
percent
:
{
color
:
"#00BB00"
,
float
:
"right"
,
},
});
export
default
function
TodoCard
(
props
)
{
const
classes
=
useStyles
();
const
data
=
props
.
data
;
return
(
<
Card
className
=
{
classes
.
root
}
>
<
CardContent
>
<
Typography
className
=
{
classes
.
date
}
color
=
"textSecondary"
gutterBottom
>
{
props
.
data
.
date
}
{
data
.
date
}
&
middot
;
{
data
.
name
}
&
middot
;
{
data
.
isPublic
}
<
/Typography
>
<
Icon
className
=
{
classes
.
icon
}
color
=
"primary"
>
settings
<
/Icon
>
<
Typography
className
=
{
classes
.
title
}
variant
=
"h5"
component
=
"h2"
>
{
props
.
data
.
title
}
<
Typography
className
=
{
classes
.
title
}
variant
=
"h6"
>
{
data
.
title
}
<
/Typography
>
{
props
.
data
.
todo
.
map
((
todo
)
=>
{
<
Typography
className
=
{
classes
.
percent
}
variant
=
"h6"
>
99
%
<
/Typography
>
{
data
.
todo
.
map
((
todo
)
=>
{
return
(
<
div
>
<
FormControlLabel
control
=
{
<
Checkbox
/>
}
label
=
{
todo
}
/
>
<
/div
>
<
FormControlLabel
className
=
{
classes
.
checkBox
}
control
=
{
<
Checkbox
/>
}
label
=
{
todo
}
/
>
);
})}
<
/CardContent
>
...
...
client/src/index.js
View file @
e0135f6
import
React
from
"react"
;
import
ReactDOM
from
"react-dom"
;
import
"./index.css"
;
import
App
from
"./App"
;
ReactDOM
.
render
(
...
...
Please
register
or
login
to post a comment