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-05-20 01:14:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34249439b1964594a13573bd12e7ea523f8e9df5
34249439
1 parent
ecdbb136
update Header Component
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
front/src/Components/Header.js
front/src/Components/Header.js
View file @
3424943
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faComments
,
faSignOutAlt
}
from
"@fortawesome/free-solid-svg-icons"
;
const
HeaderContainer
=
styled
.
div
``
;
const
HeaderContainer
=
styled
.
div
`
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
position: fixed;
top: 0;
svg {
font-size: 30px;
}
box-shadow: 1px 1px 20px #8395a7;
background-color: #667aff;
`
;
const
HeaderTitle
=
styled
.
span
``
;
const
TitleBox
=
styled
.
div
`
display: flex;
flex-direction: row;
padding: 20px 10px;
color: white;
svg {
margin-right: 5px;
opacity: 0.7;
}
`
;
const
HeaderSpan
=
styled
.
span
`
font-family: "Raleway", sans-serif;
font-size: 30px;
`
;
export
default
({
text
})
=>
{
return
(
<
HeaderContainer
>
<
HeaderTitle
>
{
text
}
<
/HeaderTitle
>
<
TitleBox
>
<
FontAwesomeIcon
icon
=
{
faComments
}
/
>
<
HeaderSpan
>
{
text
}
<
/HeaderSpan
>
<
/TitleBox
>
<
TitleBox
>
<
FontAwesomeIcon
icon
=
{
faSignOutAlt
}
/
>
<
/TitleBox
>
<
/HeaderContainer
>
);
};
...
...
Please
register
or
login
to post a comment