Newer
Older
import React, { Component } from "react";
import { NavLink } from "react-router-dom";
import {
Button,
Container,
Grid,
Header,
Icon,
List,
Menu,
Segment,
Visibility
} from "semantic-ui-react";
const FixedMenu = () => (
<Menu fixed="top" size="large">
<Container>
<Menu.Item as={NavLink} to="/home">
Home
</Menu.Item>
<Menu.Item as={NavLink} to="/roster">
Roster
</Menu.Item>
<Menu.Item as={NavLink} to="/schedule">
Schedule
</Menu.Item>
<Menu.Menu position="right">
<Menu.Item className="item">
<Button>Log in</Button>
</Menu.Item>
</Menu.Menu>
</Container>
</Menu>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
export default class Home extends Component {
state = {};
hideFixedMenu = () => this.setState({ visible: false });
showFixedMenu = () => this.setState({ visible: true });
render() {
const { visible } = this.state;
return (
<div>
{visible ? <FixedMenu /> : null}
<Visibility
onBottomPassed={this.showFixedMenu}
onBottomVisible={this.hideFixedMenu}
once={false}
>
<Segment
inverted
textAlign="center"
style={{ minHeight: 700, padding: "1em 0em" }}
vertical
>
<Container text>
<Header
as="h1"
content="KSZK"
inverted
style={{
fontSize: "4em",
fontWeight: "normal",
marginBottom: 0,
marginTop: "3em"
}}
/>
<Header
as="h2"
content="Főoldal"
inverted
style={{ fontSize: "1.7em", fontWeight: "normal" }}
/>
<Button primary size="huge">
Get Started
<Icon name="right arrow" />
</Button>
</Container>
</Segment>
</Visibility>
<Segment inverted vertical style={{ padding: "5em 0em" }}>
<Container>
<Grid divided inverted stackable>
<Grid.Row>
<Grid.Column width={3}>
<Header inverted as="h4" content="About" />
<List link inverted>
<List.Item as="a">Sitemap</List.Item>
<List.Item as="a">Contact Us</List.Item>
<List.Item as="a">Religious Ceremonies</List.Item>
<List.Item as="a">Gazebo Plans</List.Item>
</List>
</Grid.Column>
<Grid.Column width={3}>
<Header inverted as="h4" content="Services" />
<List link inverted>
<List.Item as="a">Banana Pre-Order</List.Item>
<List.Item as="a">DNA FAQ</List.Item>
<List.Item as="a">How To Access</List.Item>
<List.Item as="a">Favorite X-Men</List.Item>
</List>
</Grid.Column>
<Grid.Column width={7}>
<Header as="h4" inverted>
Footer Header
</Header>
<p>Created by DevTeam 2017.</p>
</Grid.Column>
</Grid.Row>
</Grid>
</Container>
</Segment>
</div>
);
}
}