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-14 22:35:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5a6a651a75147a3abd60133f6b51546e1bbb012e
5a6a651a
1 parent
92b1f131
change some icons in MenuIcons.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
13 deletions
front/src/Components/MenuList/MenuIcons.js
front/src/Components/MenuList/MenuIcons.js
View file @
5a6a651
...
...
@@ -3,11 +3,11 @@ import styled from "styled-components";
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faUser
,
faHome
,
faCalendarCheck
,
faComment
,
faCog
,
faSignOutAlt
,
faQuestionCircle
,
faTags
,
}
from
"@fortawesome/free-solid-svg-icons"
;
const
UserIconBox
=
styled
.
div
`
...
...
@@ -18,35 +18,69 @@ const UserIconBox = styled.div`
justify-content: center;
align-items: center;
font-size: 30px;
margin: 15px 0px;
opacity: 0.8;
color: white;
cursor: pointer;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
`
;
const
FuncIconBox
=
styled
.
div
`
width: 100%;
height: 60%;
font-size: 30px;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin: 10px 0px;
opacity: 0.8;
color: white;
`
;
// 개별 아이콘을 상자로 묶기 위한 변수
const
IconBox
=
styled
.
div
`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
svg {
font-size: 20px;
margin-right: 5px;
}
`
;
const
ExitIconBox
=
styled
.
div
`
width: 100%;
height: 15%;
font-size: 30px;
display: flex;
flex-direction:
column
;
flex-direction:
row
;
align-items: center;
justify-content: flex-end;
margin-top: 20px;
justify-content: center;
opacity: 0.8;
color: white;
cursor: pointer;
transition: 0.3s;
&:hover {
color: #667aff;
background-color: white;
}
svg {
font-size: 20px;
margin-right: 5px;
}
`
;
const
IconName
=
styled
.
span
`
font-size: 10px;
`
;
export
default
()
=>
{
...
...
@@ -56,13 +90,26 @@ export default () => {
<
FontAwesomeIcon
icon
=
{
faUser
}
/
>
<
/UserIconBox
>
<
FuncIconBox
>
<
FontAwesomeIcon
icon
=
{
faHome
}
/
>
<
FontAwesomeIcon
icon
=
{
faCalendarCheck
}
/
>
<
FontAwesomeIcon
icon
=
{
faComment
}
/
>
<
FontAwesomeIcon
icon
=
{
faCog
}
/
>
<
IconBox
>
<
FontAwesomeIcon
icon
=
{
faComment
}
/
>
<
IconName
/>
One
To
One
Chat
<
/IconBox
>
<
IconBox
>
<
FontAwesomeIcon
icon
=
{
faQuestionCircle
}
/
>
<
IconName
/>
Random
Chat
<
/IconBox
>
<
IconBox
>
<
FontAwesomeIcon
icon
=
{
faTags
}
/
>
<
IconName
/>
Category
Chat
<
/IconBox
>
<
IconBox
>
<
FontAwesomeIcon
icon
=
{
faCog
}
/
>
<
IconName
/>
Profile
Setting
<
/IconBox
>
<
/FuncIconBox
>
<
ExitIconBox
>
<
FontAwesomeIcon
icon
=
{
faSignOutAlt
}
/
>
<
IconName
/>
Log
Out
<
/ExitIconBox
>
<
/
>
);
...
...
Please
register
or
login
to post a comment