Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
MAC_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-13 21:52:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5afdccfa3e4ebed20883661233f9b3f5eb352adc
5afdccfa
1 parent
3400528a
기초적인 마크업
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
4 deletions
src/App.js
src/components/Header.js
src/components/Image.js
src/App.js
View file @
5afdccf
import
styled
from
"styled-components"
;
import
Header
from
"./components/Header"
;
import
Image
from
"./components/Image"
;
function
App
()
{
return
(
<
div
className
=
"App"
>
<
Container
>
<
Header
/>
<
/div
>
<
Image
/>
<
/Container
>
);
}
const
Container
=
styled
.
div
`
display: flex;
flex-direction: column;
align-items: center;
`
;
export
default
App
;
...
...
src/components/Header.js
View file @
5afdccf
import
styled
from
"styled-components"
;
const
Header
=
()
=>
{
return
<
Container
><
/Container>
;
return
<
Container
>
Gif
Generator
<
/Container>
;
};
const
Container
=
styled
.
div
`
width: 100%;
height: 4
rem;
padding: 1.5
rem;
background-color: white;
box-shadow:
${({
theme
})
=>
theme
.
boxShadow
.
normal
}
;
text-align: center;
font-size: 1.6rem;
font-weight: 500;
font-style: italic;
`
;
export
default
Header
;
...
...
src/components/Image.js
0 → 100644
View file @
5afdccf
import
styled
from
"styled-components"
;
const
Image
=
()
=>
{
return
(
<
Container
>
<
ImgBox
/>
<
Menu
/>
<
/Container
>
);
};
const
Menu
=
()
=>
{
return
(
<
div
style
=
{{
width
:
"15rem"
,
marginLeft
:
"2rem"
}}
>
<
Box
/>
<
Box
/>
<
Box
/>
<
Box
/>
<
/div
>
);
};
const
Container
=
styled
.
div
`
width: 100%;
display: flex;
justify-content: center;
`
;
const
ImgBox
=
styled
.
div
`
width: 40rem;
height: 30rem;
background-color: white;
box-shadow:
${({
theme
})
=>
theme
.
boxShadow
.
normal
}
;
border-radius: 2rem;
margin-top: 2rem;
`
;
const
Box
=
styled
.
div
`
width: 100%;
height: 10rem;
margin-top: 2rem;
border-radius: 1rem;
background-color: white;
box-shadow:
${({
theme
})
=>
theme
.
boxShadow
.
normal
}
;
`
;
export
default
Image
;
Please
register
or
login
to post a comment