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-16 16:33:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3f5c0a35a587bfb9d637c544fc48f5ce8e0df93
e3f5c0a3
1 parent
642216e0
add link and update style
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
10 deletions
front/src/Components/Header.js
front/src/Components/Header.js
View file @
e3f5c0a
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faComments
}
from
"@fortawesome/free-solid-svg-icons"
;
...
...
@@ -12,15 +13,16 @@ const Nav = styled.nav`
width: 100%;
position: fixed;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
background-color: rgba(255, 255, 255);
z-index: 100;
`
;
const
HeaderBox
=
styled
.
div
`
height: 100%;
width: 100%;
display: flex;
justify-content: space-
around
;
justify-content: space-
between
;
align-items: center;
margin: 0
auto
;
margin: 0
px 200px
;
`
;
const
HeaderTitleBox
=
styled
.
div
`
...
...
@@ -29,32 +31,49 @@ const HeaderTitleBox = styled.div`
align-items: center;
svg {
font-size: 1.5rem;
margin-right: 10px;
}
`
;
const
HeaderTitle
=
styled
.
span
`
font-size: 1.5rem;
font-weight: 600;
`
;
const
HeaderMenuNav
=
styled
.
nav
`
display: flex;
justify-content: flex-start;
width: 100%;
height: 80%;
`
;
const
HeaderMenuList
=
styled
.
ul
`
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
`
;
const
HeaderMenuItem
=
styled
.
li
`
&::before {
content:
${(
props
)
=>
props
.
text
}
;
}
font-size: 1.2rem;
width: auto
;
padding: 1rem;
`
;
const
StartBox
=
styled
.
div
`
background-color: #1b1464;
display: flex;
align-items: center;
`
;
const
StartButton
=
styled
.
button
`
background-color: #3dc1d3;
color: #f1f2f6;
font-size: 20px;
font-size: 18px;
font-weight: 500;
width: 150px;
border: none;
border-radius: 10px;
cursor: pointer;
`
;
export
default
()
=>
{
...
...
@@ -68,9 +87,22 @@ export default () => {
<
/HeaderTitleBox
>
<
HeaderMenuNav
>
<
HeaderMenuList
>
<
HeaderMenuItem
>
About
This
<
/HeaderMenuItem
>
<
HeaderMenuItem
>
<
Link
to
=
"/"
>
About
This
<
/Link
>
<
/HeaderMenuItem
>
<
HeaderMenuItem
>
<
Link
to
=
"/"
>
Difference
<
/Link
>
<
/HeaderMenuItem
>
<
HeaderMenuItem
>
<
Link
to
=
"/"
>
Documentation
<
/Link
>
<
/HeaderMenuItem
>
<
HeaderMenuItem
>
<
Link
to
=
"/"
>
Support
US
<
/Link
>
<
/HeaderMenuItem
>
<
/HeaderMenuList
>
<
StartBox
>
Start
<
/StartBox
>
<
StartBox
>
<
StartButton
>
Start
<
/StartButton
>
<
/StartBox
>
<
/HeaderMenuNav
>
<
/HeaderBox
>
<
/Nav
>
...
...
Please
register
or
login
to post a comment