nestiq-component-library 1.1.163 → 1.1.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  .property-card {
2
2
  width: 100%;
3
3
  max-width: 1280px;
4
+ height: auto;
4
5
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
5
6
  border-radius: 32px;
6
7
 
@@ -10,6 +11,16 @@
10
11
  }
11
12
  }
12
13
 
14
+ .priceValue,
15
+ .value {
16
+ white-space: nowrap;
17
+ }
18
+
19
+ .price_label,
20
+ .details {
21
+ white-space: nowrap;
22
+ }
23
+
13
24
  .listing-compact {
14
25
  max-width: 750px;
15
26
  gap: 32px;
@@ -90,7 +101,6 @@
90
101
  }
91
102
  .kontact-button-text {
92
103
  flex-grow: 0;
93
- font-family: Inter;
94
104
  font-size: 16px;
95
105
  font-weight: 500;
96
106
  font-stretch: normal;
@@ -212,7 +222,6 @@
212
222
 
213
223
  .details {
214
224
  font-size: 16px;
215
- text-align: center;
216
225
  color: #344041;
217
226
  }
218
227
 
@@ -224,7 +233,6 @@
224
233
 
225
234
  .value {
226
235
  font-size: 20px;
227
- text-align: center;
228
236
  font-weight: 500;
229
237
  display: flex;
230
238
  flex-direction: column;
@@ -49,6 +49,12 @@ interface PopupProps {
49
49
  onclickSuccess: () => void;
50
50
  onClick: () => void;
51
51
  onFloorPlanClick: (images: { url: string; title: string }[]) => void;
52
+ translations?: {
53
+ kaufpreis?: string;
54
+ wohnflache?: string;
55
+ zimmer?: string;
56
+ grundriss?: string;
57
+ };
52
58
  }
53
59
  export default function PropertyCard(props: PopupProps) {
54
60
  const [liked, setLiked] = useState(false);
@@ -129,6 +135,13 @@ export default function PropertyCard(props: PopupProps) {
129
135
  };
130
136
  // const boosted = "true";
131
137
 
138
+ const t = {
139
+ kaufpreis: props.translations?.kaufpreis || "Kaufpreis",
140
+ wohnflache: props.translations?.wohnflache || "Wohnfläche",
141
+ zimmer: props.translations?.zimmer || "Zimmer",
142
+ grundriss: props.translations?.grundriss || "Grundriss",
143
+ };
144
+
132
145
  return (
133
146
  <div className="d-flex flex-row property-card">
134
147
  <div className="d-flex flex-column col-md-6 col-lg-6">
@@ -174,7 +187,7 @@ export default function PropertyCard(props: PopupProps) {
174
187
  style={{ marginBottom: "16px" }}
175
188
  >
176
189
  <img src={iconLayers} className="" style={{ width: "18px" }} />{" "}
177
- Grundriss
190
+ {t.grundriss}
178
191
  </div>
179
192
  </div>
180
193
  </div>
@@ -235,7 +248,7 @@ export default function PropertyCard(props: PopupProps) {
235
248
  }}
236
249
  >
237
250
  {" "}
238
- <div className="location-wrapper mb-1">
251
+ <div className="location-wrapper">
239
252
  <img
240
253
  src={locationIcon}
241
254
  alt="Location Icon"
@@ -248,29 +261,49 @@ export default function PropertyCard(props: PopupProps) {
248
261
  </div>
249
262
  </div>
250
263
  <div
251
- className="d-flex flex-row gap-3 col-6 col-lg-8 justify-content-between "
264
+ className="d-flex flex-row justify-content-between mt-3"
252
265
  style={{
253
266
  paddingLeft: "32px",
254
267
  paddingRight: "32px",
255
268
  }}
256
269
  >
257
- <span className="priceValue col-lg-4 col-md-4 col-sm-6 ">
270
+ <span
271
+ className="priceValue col-lg-5 col-md-5 col-sm-6"
272
+ style={{ whiteSpace: "nowrap" }}
273
+ >
258
274
  {formatPrice(props.property?.evaluation?.askingPrice ?? 0)} €
259
- <div className="price_label">Kaufpreis</div>
275
+ <div className="price_label" style={{ whiteSpace: "nowrap" }}>
276
+ {t.kaufpreis}
277
+ </div>
260
278
  </span>
261
- <span className="text-dark value col-lg-5 col-md-5 col-sm-7">
279
+ <span
280
+ className="text-dark value col-lg-5 col-md-5 col-sm-7"
281
+ style={{ whiteSpace: "nowrap" }}
282
+ >
262
283
  {props.property.constructedArea} m²
263
- <div className="details">Wohnfläche</div>
284
+ <div className="details" style={{ whiteSpace: "nowrap" }}>
285
+ {t.wohnflache}
286
+ </div>
264
287
  </span>
265
- <span className="text-dark value col-lg-4 col-md-3 col-sm-6 text-truncate ">
288
+ <span
289
+ className="text-dark value text-center col-lg-2 col-md-2 col-sm-5 text-truncate"
290
+ style={{ whiteSpace: "nowrap" }}
291
+ >
266
292
  {+props.property?.rooms}
267
- <div className="details">Zimmer</div>
293
+
294
+ <div
295
+ className="details text-center"
296
+ style={{ whiteSpace: "nowrap" }}
297
+ >
298
+ {t.zimmer}
299
+ </div>
268
300
  </span>
269
- <span className="text-dark value col-lg-4 col-md-3 col-sm-4 text-truncate ">
301
+ {/* <span className="text-dark value col-lg-4 col-md-3 col-sm-4 text-truncate ">
270
302
  {+props.property.propertyArea} m²
271
303
  <div className="details">Grundstück</div>
272
- </span>
304
+ </span> */}
273
305
  </div>
306
+
274
307
  <div
275
308
  className="labelTopClass d-flex start-0 col-sm-5 col-lg-8 "
276
309
  style={{ padding: "0 28px" }}