Skip to content
Snippets Groups Projects
Commit 42d6d827 authored by Bereczki Sandor's avatar Bereczki Sandor
Browse files

Fix footer

Footer should be always fixed to the bottom, though you may need to use margins at the bottom element.
parent 1eafdf4f
No related branches found
No related tags found
No related merge requests found
html, body, #root {
height: 100%;
}
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="stylesheet" href="index.css">
<!-- <!--
Notice the use of %PUBLIC_URL% in the tags above. Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build. It will be replaced with the URL of the `public` folder during the build.
......
...@@ -4,10 +4,16 @@ import Main from './Main'; ...@@ -4,10 +4,16 @@ import Main from './Main';
import Footer from './Footer'; import Footer from './Footer';
const App = () => ( const App = () => (
<div> <div style={{ minHeight: '100%', position: 'relative' }}>
<Header /> <header id='header' >
<Main /> <Header />
<Footer /> </header>
<main id='main'>
<Main />
</main>
<footer id='footer' style={{ position: 'absolute', width: '100%', bottom: '0' }}>
<Footer />
</footer>
</div> </div>
); );
......
import React from 'react'; import React from 'react';
import { Container, Segment } from 'semantic-ui-react'; import { Container, Segment } from 'semantic-ui-react';
const Footer = () => ( const Footer = () => (
<Segment inverted attached={'bottom'} vertical style={{clear: 'both'}} textAlign='center'> <Segment inverted vertical textAlign='center' >
<Container> <Container>
<p textalign='center'>Created by DevTeam &copy; 2017-2018.</p> <p textalign='center' >Created by DevTeam &copy; 2017-2018.</p>
</Container> </Container>
</Segment> </Segment>
); );
export default Footer; export default Footer;
...@@ -72,7 +72,6 @@ class News extends Component { ...@@ -72,7 +72,6 @@ class News extends Component {
render() { render() {
return ( return (
<div> <div>
<Segment style={{ padding: '3em 3em' }} vertical> <Segment style={{ padding: '3em 3em' }} vertical>
{/* { this.props.user.is_superuser ? <AddNewsForm /> : ''} */} {/* { this.props.user.is_superuser ? <AddNewsForm /> : ''} */}
<Container text textAlign='center'> <Container text textAlign='center'>
......
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