Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
5b19eb10
Commit
5b19eb10
authored
Mar 28, 2017
by
sirinbaisa
Browse files
[#140654507]
#12
Styling Top Mnu
parent
d79c880a
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/css/custom.css
View file @
5b19eb10
...
...
@@ -75,6 +75,7 @@ font-family: 'Bungee Inline';
}
.formLogin
img
{
height
:
70px
!important
;
margin
:
5px
;
...
...
assets/js/components/TopMenu.jsx
View file @
5b19eb10
...
...
@@ -6,12 +6,10 @@ import Server from '../lib/Server';
import
Storage
from
'
../lib/Storage
'
;
export
default
class
TopMenu
extends
React
.
Component
{
<
<<<<<<
HEAD
state
=
{
activeItem
:
'
home
'
};
handleItemClick
=
(
e
,
{
name
}
)
=>
this.setState(
{
activeItem
:
name
}
)
render()
{
const
{
activeItem
}
=
this
.
state
;
=======
handleItemClick
=
(
e
,
{
name
})
=>
this
.
setState
({
activeItem
:
name
});
constructor
(
props
)
{
super
(
props
);
/* istanbul ignore next */
...
...
@@ -24,15 +22,15 @@ export default class TopMenu extends React.Component {
browserHistory
.
push
(
'
/login
'
);
});
};
>>>>>>>
83
ea6c3d4376e9644af1ae3104de3d496ee20b98
render
()
{
const
{
activeItem
}
=
this
.
state
;
return
(
<
Menu
color
=
"blue"
pointing
secondary
>
<
Image
as
=
"a"
size
=
"small"
src
=
"/assets/img/logo.png"
href
=
"/"
/>
<
Menu
.
Menu
position
=
"right"
>
<
Menu
.
Item
as
=
{
Link
}
to
=
"/lowongan"
name
=
"home"
onClick
=
{
this
.
handleItemClick
}
/>
<
Menu
.
Item
as
=
{
Link
}
to
=
"/profile"
name
=
"profil"
onClick
=
{
this
.
handleItemClick
}
/>
<
Menu
.
Item
as
=
{
Link
}
to
=
"/lowongan"
name
=
"home"
active
=
{
activeItem
===
'
home
'
}
onClick
=
{
this
.
handleItemClick
}
/>
<
Menu
.
Item
as
=
{
Link
}
to
=
"/profile"
name
=
"profil"
active
=
{
activeItem
===
'
profil
'
}
onClick
=
{
this
.
handleItemClick
}
/>
<
Menu
.
Item
as
=
{
Link
}
onClick
=
{
this
.
logout
}
name
=
"logout"
/>
</
Menu
.
Menu
>
</
Menu
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment