Skip to content

How to make a sticky footer that has padding from body with react-router? #1523

@rahul1346

Description

@rahul1346

Im trying to have a sticky footer but it is not sticky. Any ideas?

Here is my router handler:

var React  = require('react');
var Navbar = require('./Navbar.js');
var Footer = require('./Footer');
var Router = require('react-router');

var RouteHandler = Router.RouteHandler;

var App = React.createClass({
  render: function () {
    return (
      <div className="app-wrapper">
        <Navbar />
            <div>
                <RouteHandler />
            </div>
        <Footer />
      </div>
    );
  }
});

module.exports = App;

And this is the footer.js:

var React  = require('react');
var Router = require('react-router');
var Link = Router.Link;
var Navigation = require('react-router').Navigation;


var Footer = React.createClass({

  mixins: [Navigation],

  render: function () {

    return (
    <footer>
      <div id="credits">
        <div className="container text-center">
          <div className="row">
            <div className="col-md-5">
              <li>&copy; 2015</li>
              <li><Link to="contactus">Contact Us</Link></li>
              <li><Link to="about">About</Link></li>
            </div>
            <div className="col-md-5" id="social-networks">
              <a href="#"><i className="fa fa-2x fa-facebook-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-twitter-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-google-plus-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-youtube-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-vimeo-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-pinterest-square"></i></a>
              <a href="#"><i className="fa fa-2x fa-linkedin-square"></i></a>
            </div>
          </div>
        </div>
      </div>
    </footer>
      );
    }
  });

module.exports = Footer;

Any idea the best way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions