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-15 20:28:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ca3e6c750aa65e98904d534fa5884153ed6246c
5ca3e6c7
1 parent
0d21628b
add header style
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
18 deletions
front/src/Components/Header.js
front/src/Components/Header.js
View file @
5ca3e6c
...
...
@@ -3,22 +3,42 @@ import styled from "styled-components";
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faComments
}
from
"@fortawesome/free-solid-svg-icons"
;
const
Header
=
styled
.
header
`
display: block;
`
;
const
Nav
=
styled
.
nav
`
height: 70px;
width: 100%;
position: fixed;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
`
;
const
HeaderBox
=
styled
.
div
`
height: 100%;
width: 100%;
display: flex;
justify-content: space-
between
;
justify-content: space-
around
;
align-items: center;
margin: 0 auto;
`
;
const
HeaderTitleBox
=
styled
.
div
`
display: flex;
height: 100%;
align-items: center;
svg {
font-size: 1.5rem;
}
`
;
const
HeaderTitle
=
styled
.
span
`
font-size: 1
5px
;
font-size: 1
.5rem
;
`
;
const
HeaderMenu
Box
=
styled
.
di
v
`
const
HeaderMenu
Nav
=
styled
.
na
v
`
display: flex;
justify-content: flex-start;
`
;
const
HeaderMenuList
=
styled
.
ul
`
...
...
@@ -26,7 +46,9 @@ const HeaderMenuList = styled.ul`
`
;
const
HeaderMenuItem
=
styled
.
li
`
content:
${(
props
)
=>
props
.
text
}
;
&::before {
content:
${(
props
)
=>
props
.
text
}
;
}
`
;
const
StartBox
=
styled
.
div
`
...
...
@@ -37,19 +59,21 @@ const StartBox = styled.div`
export
default
()
=>
{
return
(
<
HeaderBox
>
<
HeaderTitleBox
>
<
FontAwesomeIcon
>
<
faComments
/>
<
/FontAwesomeIcon
>
<
HeaderTitle
>
KhuChat
<
/HeaderTitle
>
<
/HeaderTitleBox
>
<
HeaderMenuBox
>
<
HeaderMenuList
>
<
HeaderMenuItem
text
=
{
"About This"
}
/
>
<
/HeaderMenuList
>
<
/HeaderMenuBox
>
<
StartBox
>
Start
<
/StartBox
>
<
/HeaderBox
>
<
Header
>
<
Nav
>
<
HeaderBox
>
<
HeaderTitleBox
>
<
FontAwesomeIcon
icon
=
{
faComments
}
/
>
<
HeaderTitle
>
KhuChat
<
/HeaderTitle
>
<
/HeaderTitleBox
>
<
HeaderMenuNav
>
<
HeaderMenuList
>
<
HeaderMenuItem
>
About
This
<
/HeaderMenuItem
>
<
/HeaderMenuList
>
<
StartBox
>
Start
<
/StartBox
>
<
/HeaderMenuNav
>
<
/HeaderBox
>
<
/Nav
>
<
/Header
>
);
};
...
...
Please
register
or
login
to post a comment