-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from thebeetoken/vic/ENG-1033b
Lay out /work/listings/:id
- Loading branch information
Showing
4 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from 'react'; | ||
import { Button, Col, Row } from 'reactstrap'; | ||
|
||
import { Listing } from 'networking/listings'; | ||
import { formatPrice } from 'utils/formatter'; | ||
|
||
const BookingBar = ({ | ||
pricePerNightUsd | ||
}: Listing) => ( | ||
<Row className="w-100 p-2 align-items-center justify-content-between"> | ||
<Col> | ||
{formatPrice(pricePerNightUsd)} per night | ||
</Col> | ||
<Button>Request to Book</Button> | ||
</Row> | ||
); | ||
|
||
export default BookingBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
import * as React from 'react'; | ||
import { Col, Container, Fade, Row } from 'reactstrap'; | ||
|
||
import ListingGallery from './ListingGallery'; | ||
import ListingInformation from './ListingInformation'; | ||
import BookingCard from './BookingCard'; | ||
import BookingBar from './BookingBar'; | ||
|
||
import { Listing } from 'networking/listings'; | ||
|
||
const ListingPage = (listing: Listing) => (<> | ||
<ListingGallery {...listing} /> | ||
<ListingInformation {...listing} /> | ||
<BookingCard {...listing} /> | ||
</>); | ||
const ListingPage = (listing: Listing) => ( | ||
<Fade> | ||
<ListingGallery {...listing} /> | ||
<Container> | ||
<Row> | ||
<Col> | ||
<ListingInformation {...listing} /> | ||
</Col> | ||
<Col> | ||
<div className="sticky-top bee-top d-none d-lg-block"> | ||
<BookingCard {...listing} /> | ||
</div> | ||
</Col> | ||
</Row> | ||
</Container> | ||
<footer className="fixed-bottom bg-white d-lg-none"> | ||
<BookingBar {...listing} /> | ||
</footer> | ||
</Fade> | ||
); | ||
export default ListingPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters