From 6e46e045b4f55f28b98cc1d64d66ccdf610350d4 Mon Sep 17 00:00:00 2001 From: Kinga Koterska Date: Thu, 18 Jul 2019 15:02:47 +0300 Subject: [PATCH] buildingInfo and blogPage --- .../EditListingDescriptionPanel.js | 9 +- src/containers/BlogPage/BlogPage.css | 57 +++++++++++ src/containers/BlogPage/BlogPage.js | 98 +++++++++++++++++++ src/containers/ListingPage/ListingPage.js | 2 + .../ListingPage/SectionBuildingInfoMaybe.css | 37 +++++++ .../ListingPage/SectionBuildingInfoMaybe.js | 31 ++++++ src/containers/index.js | 1 + .../EditListingDescriptionForm.css | 6 ++ .../EditListingDescriptionForm.js | 16 +++ src/marketplace.css | 2 +- src/routeConfiguration.js | 6 ++ src/translations/en.json | 5 +- 12 files changed, 265 insertions(+), 5 deletions(-) create mode 100644 src/containers/BlogPage/BlogPage.css create mode 100644 src/containers/BlogPage/BlogPage.js create mode 100644 src/containers/ListingPage/SectionBuildingInfoMaybe.css create mode 100644 src/containers/ListingPage/SectionBuildingInfoMaybe.js diff --git a/src/components/EditListingDescriptionPanel/EditListingDescriptionPanel.js b/src/components/EditListingDescriptionPanel/EditListingDescriptionPanel.js index 3b1dc8cf..d2f77ab1 100644 --- a/src/components/EditListingDescriptionPanel/EditListingDescriptionPanel.js +++ b/src/components/EditListingDescriptionPanel/EditListingDescriptionPanel.js @@ -42,14 +42,17 @@ const EditListingDescriptionPanel = props => {

{panelTitle}

{ - const { title, description, category } = values; + const { title, description, category, buildingInfo } = values; const updateValues = { title: title.trim(), description, - publicData: { category }, + publicData: { + category, + buildingInfo, + }, }; onSubmit(updateValues); diff --git a/src/containers/BlogPage/BlogPage.css b/src/containers/BlogPage/BlogPage.css new file mode 100644 index 00000000..51f08605 --- /dev/null +++ b/src/containers/BlogPage/BlogPage.css @@ -0,0 +1,57 @@ +@import '../../marketplace.css'; + +.pageTitle { + text-align: center; +} + +.staticPageWrapper { + width: calc(100% - 48px); + max-width: 1056px; + margin: 24px auto; + + @media (--viewportMedium) { + width: calc(100% - 72px); + margin: 72px auto; + } +} + +.coverImage { + width: 100%; + height: 528px; + border-radius: 4px; + object-fit: cover; + margin: 32px 0 40px; +} + +.contentWrapper { + display: flex; + flex-wrap: wrap; + + @media (--viewportMedium) { + flex-wrap: nowrap; + } +} + +.contentSide { + font-style: italic; + + @media (--viewportMedium) { + width: 193px; + margin-right: 103px; + margin-top: 8px; + } +} + +.contentMain { + width: 90%; + + @media (--viewportMedium) { + max-width: 650px; + } +} + +.subtitle { + @apply --marketplaceH3FontStyles; + margin-top: 48px; + margin-bottom: 24px; +} diff --git a/src/containers/BlogPage/BlogPage.js b/src/containers/BlogPage/BlogPage.js new file mode 100644 index 00000000..763044a4 --- /dev/null +++ b/src/containers/BlogPage/BlogPage.js @@ -0,0 +1,98 @@ +import React from 'react'; +import config from '../../config'; +import { twitterPageURL } from '../../util/urlHelpers'; +import { StaticPage, TopbarContainer } from '../../containers'; +import { + LayoutSingleColumn, + LayoutWrapperTopbar, + LayoutWrapperMain, + LayoutWrapperFooter, + Footer, + ExternalLink, +} from '../../components'; + +import css from './BlogPage.css'; +//import image from './about-us-1056.jpg'; + +const BlogPage = () => { + const { siteTwitterHandle, siteFacebookPage } = config; + const siteTwitterPage = twitterPageURL(siteTwitterHandle); + + // prettier-ignore + return ( + + + + + + + +

Experience the unique Finnish home sauna.

+ + +
+
+

Did you know that Finland has 3.2 million saunas - almost one sauna per person!

+
+ +
+

+ Most of the Finnish saunas are located at the homes of individuals - indeed, most + people in Finland live in an apartment with sauna in it. In addition, lots of people + have lakeside summer cottages, which also typically come with a separate sauna + building near the waterfront. +

+ +

+ To truly experience a Finnish sauna, you need to look beyond the public saunas, and + instead visit a real home or cottage sauna. Saunatime makes this possible for + everyone. All our saunas are owned by individuals willing to let tourists and other + curious visitors to enter their sacred spaces. +

+ +

Are you a sauna owner?

+ +

+ Saunatime offers you a good way to earn some extra cash! If you're not using your + sauna every evening, why not rent it to other people while it's free. And even if + you are using your sauna every evening (we understand, it's so good), why not invite + other people to join you when the sauna is already warm! A shared sauna experience + is often a more fulfilling one. +

+ +

+ Create your own marketplace like Saunatime +

+

+ Saunatime is brought to you by the good folks at{' '} + Sharetribe. Would you like + to create your own marketplace platform a bit like Saunatime? Or perhaps a mobile + app? With Sharetribe it's really easy. If you have a marketplace idea in mind, do + get in touch! +

+

+ You can also checkout our{' '} + Facebook and{' '} + Twitter. +

+
+
+
+ + +