Forked from
KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
388 commits behind the upstream repository.
-
Bereczki Sandor authoredBereczki Sandor authored
Home.js 3.37 KiB
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>
);
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>
);
}
}