Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
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
sdy
2020-07-21 16:45:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
718e872d38a8516fe916505ac4a664ac9305e59c
718e872d
1 parent
106c6945
create news route
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
front/src/Routes/News.js
front/src/Routes/News.js
0 → 100644
View file @
718e872
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
Header
from
"../Components/Header"
;
import
Footer
from
"../Components/Footer"
;
const
Main
=
styled
.
main
`
display: flex;
flex-direction: column;
`
;
const
Section
=
styled
.
section
`
padding-top: 8rem;
padding-bottom: 5rem;
max-width: none;
&.title-section {
background-color: black;
}
`
;
const
SectionBox
=
styled
.
div
`
max-width: 80%;
margin: 0 auto;
&.title-section-box {
max-width: 100%;
}
`
;
const
DescriptionBox
=
styled
.
div
`
display: flex;
flex-direction: column;
`
;
const
TitleBox
=
styled
.
div
`
text-align: center;
font-size: 2rem;
font-weight: 600;
margin-bottom: 20px;
&.top-title-box {
color: white;
}
`
;
export
default
()
=>
{
return
(
<>
<
Header
/>
<
Main
>
<
Section
className
=
"title-section"
>
<
SectionBox
className
=
"title-section-box"
>
<
DescriptionBox
>
<
TitleBox
className
=
"top-title-box"
>
What
'
s
New
?
<
/TitleBox
>
<
/DescriptionBox
>
<
/SectionBox
>
<
/Section
>
<
/Main
>
<
Footer
/>
<
/
>
);
};
Please
register
or
login
to post a comment