Skip to content
Snippets Groups Projects
Commit b72b9948 authored by Chif Gergő's avatar Chif Gergő
Browse files

Add Statistics manu item to header, start statistics page with a tabular menu

parent b067d390
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,11 @@ const menuItems = [
to: '/schedule',
prefix: '',
},
{
text: 'Statisztika',
to: '/statistics',
prefix: '',
},
]
const FixedMenu = ({ user }) => (
......
import React, { Component } from 'react';
import { Container, Header, Segment } from 'semantic-ui-react';
import { Container, Header, Segment, Menu } from 'semantic-ui-react';
export default class Statistics extends Component {
state = { activeItem: 'events' }
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = this.state
return (
<div>
<Segment inverted textAlign='center' vertical>
<Container>
<Header
as='h1'
content='Statisztikák - Hamarosan'
inverted
style={{
fontSize: '3em',
fontWeight: 'normal',
marginBottom: 0,
marginTop: '0.5em',
}}
<Container textAlign="center">
<Menu tabular compact={true}>
<Menu.Item name='events' active={activeItem === 'events'} onClick={this.handleItemClick} />
<Menu.Item
name='trainees'
active={activeItem === 'trainees'}
onClick={this.handleItemClick}
/>
</Container>
</Segment>
<Segment inverted textAlign='center' vertical>
</Segment>
</Menu>
</Container>
</div>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment