diff --git a/src/components/SearchAttributes/SearchAttributes.css b/src/components/SearchAttributes/SearchAttributes.css new file mode 100644 index 00000000..ee2e0c3b --- /dev/null +++ b/src/components/SearchAttributes/SearchAttributes.css @@ -0,0 +1,52 @@ +@import '../../marketplace.css'; + +.searchResultSummary { + display: none; + + @media (--viewportMedium) { + display: block; + margin: 8px 24px 14px 24px; + } + + @media (--viewportLarge) { + margin: 8px 36px 14px 36px; + } +} + +.searchResultSummaryMobile { + display: flex; + justify-content: space-between; + + background-color: var(--matterColorBright); + width: 100vw; + padding: 1px 24px 14px 24px; + + /* sticky result summary in mobile */ + position: sticky; + top: 0; + z-index: 9; + + @media (--viewportMedium) { + display: none; + } +} + +.mapIcon { + /* Font */ + @apply --marketplaceTinyFontStyles; + font-weight: var(--fontWeightBold); + + /* background map image */ + background-image: url(./images/map_icon@2x.png); + background-size: cover; + + border-radius: 3px; + width: 72px; + height: 35px; + margin-top: 23px; + padding: 9px 22px; +} + +.error { + color: var(--failColor); +} diff --git a/src/components/SearchAttributes/SearchAttributes.js b/src/components/SearchAttributes/SearchAttributes.js new file mode 100644 index 00000000..952c48c4 --- /dev/null +++ b/src/components/SearchAttributes/SearchAttributes.js @@ -0,0 +1,66 @@ +import React from 'react'; +import { FormattedMessage } from 'react-intl'; + +import css from './SearchAttributes.css'; + +const SearchAttributes = props => { + const { listingsAreLoaded, resultsCount, searchInProgress, searchListingsError, onMapIconClick} = props; + + const searchError = ( +