diff --git a/web/components/Listings.js b/web/components/Listings.js index 88bde65..2128f53 100644 --- a/web/components/Listings.js +++ b/web/components/Listings.js @@ -23,6 +23,15 @@ export default class Listings extends React.Component { renderListings () { const {listings = (new Map())} = this.props; + if (listings.size === 0) { + return (
+

Nema rezultata

+
+ Nema oglasa koji ispunjavaju vaše uslove pretrage. +
+
) + } + const rendered = []; for(const l of listings.values()) { diff --git a/web/dist/main.css b/web/dist/main.css index 899f3db..d076e67 100644 --- a/web/dist/main.css +++ b/web/dist/main.css @@ -340,6 +340,10 @@ html { text-align: right; } +.listings-no-results { + text-align: center; +} + .property-list-item { padding: 0; border-bottom: 1px solid rgb(230, 230, 230); @@ -794,3 +798,20 @@ html { .hide { display: none; } + +h4 { + margin: 25px 0; + color: #2d3138; + font-size: 20px; + font-weight: 400; + letter-spacing: .33px; +} + +h5 { + margin: 20px 0; + color: #2d3138; + font-size: 16px; + font-weight: 400; + line-height: 27px; + letter-spacing: .26px; +}