From 2abe3265169027c7098fbffef9fd2c7864705e16 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 20 Oct 2017 18:19:07 +0300 Subject: [PATCH] Footer to ListingPage --- src/containers/ListingPage/ListingPage.css | 6 +- src/containers/ListingPage/ListingPage.js | 275 +++++----- .../__snapshots__/ListingPage.test.js.snap | 495 +++++++++--------- 3 files changed, 410 insertions(+), 366 deletions(-) diff --git a/src/containers/ListingPage/ListingPage.css b/src/containers/ListingPage/ListingPage.css index e015703e..3e27ea24 100644 --- a/src/containers/ListingPage/ListingPage.css +++ b/src/containers/ListingPage/ListingPage.css @@ -1,10 +1,10 @@ @import '../../marketplace.css'; .pageRoot { - display: block; + display: flex; padding-bottom: 90px; @media (--viewportLarge) { - padding-bottom: 24px; + padding-bottom: 0; } } @@ -393,6 +393,8 @@ } .openBookingForm { + /* Ensure that mobile button is over Footer too */ + z-index: 9; position: fixed; bottom: 0; left: 0; diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index 1340d879..3e94b998 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -5,7 +5,6 @@ import { FormattedMessage, intlShape, injectIntl } from 'react-intl'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; -import classNames from 'classnames'; import config from '../../config'; import routeConfiguration from '../../routeConfiguration'; import * as propTypes from '../../util/propTypes'; @@ -28,6 +27,11 @@ import { NamedRedirect, Modal, ImageCarousel, + LayoutSingleColumn, + LayoutWrapperTopbar, + LayoutWrapperMain, + LayoutWrapperFooter, + Footer, } from '../../components'; import { BookingDatesForm, TopbarContainer } from '../../containers'; @@ -182,10 +186,17 @@ export class ListingPageComponent extends Component { return ( - {topbar} -

- -

+ + {topbar} + +

+ +

+
+ +