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-23 05:43:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dab65464a330fd474cac2ddd21643c592400b17c
dab65464
1 parent
04620c24
create CategoryPresenter.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
front/src/Routes/Category/CategoryPresenter.js
front/src/Routes/Category/CategoryPresenter.js
0 → 100644
View file @
dab6546
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faArrowDown
,
faPlus
}
from
"@fortawesome/free-solid-svg-icons"
;
const
CategoryContainer
=
styled
.
div
`
display: flex;
justify-content: center;
align-items: center;
svg {
font-size: 20px;
}
span {
margin-left: 10px;
font-size: 20px;
}
border-top: 1px solid rgba(255, 255, 255, 0.5);
`
;
const
ItemListContainer
=
styled
.
div
`
display: flex;
flex-direction: row;
width: 100%;
padding: 15px;
`
;
const
ItemList
=
styled
.
ul
`
align-items: center;
svg {
margin: 0px 10px;
}
`
;
const
Item
=
styled
.
li
``
;
const
ItemText
=
styled
.
span
`
font-family: "Ubuntu", sans-serif;
`
;
const
StyledLink
=
styled
(
Link
)
`
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
text-decoration: none;
color: white;
cursor: pointer;
&:hover {
background-color: white;
color: #667aff;
}
`
;
export
default
({
location
})
=>
{
return
(
<>
<
CategoryContainer
>
<
ItemListContainer
>
<
ItemList
>
<
FontAwesomeIcon
icon
=
{
faArrowDown
}
/> Categor
y
<
FontAwesomeIcon
icon
=
{
faPlus
}
/
>
<
StyledLink
>
<
Item
>
<
ItemText
>
#
Music
<
/ItemText
>
<
/Item
>
<
/StyledLink
>
<
/ItemList
>
<
/ItemListContainer
>
<
/CategoryContainer
>
<
/
>
);
};
Please
register
or
login
to post a comment