diff --git a/helpers/fetch-json.js b/helpers/fetch-json.js new file mode 100644 index 000000000..962062b34 --- /dev/null +++ b/helpers/fetch-json.js @@ -0,0 +1,20 @@ +/** + * An asynchronous helper function that wraps the standard node.js fetch API. + * This function calls an API url passed as the first and mandatory parameter, + * there is an optional payload parameter to send a json object, eg. a filter. + * It then calls the API and returns the response body parsed as a json object. + * @example
<%= house.postal_code%> <%= house.city %>
+<%= house.m2 %> m² / <%= house.m2_garden %> m² <%= house.rooms %> kamers
+<%= house.agent %>
+€ <%= house.price %> k.k. +
<%- house.description %>
++ In dit overzicht vind je al je favoriete huizen terug. Maak het jezelf + makkelijker door huizen te bewaren en notities toe te voegen over het + huis, de buurt en andere belangrijke details voor je zoektocht. +
+ + + + +Alle leden van de favorieten lijst.
+ +Een makelaar kan je helpen om de opties te bekijken die relevant zijn voor jou.
+ Vind een makelaar +Deze pagina komt later pas. Op dit moment is de relevante pagina hier te vinden: Favorieten
+<%- include('partials/footer') %> +<%- include('partials/foot') %> \ No newline at end of file diff --git a/views/partials/breadcrumbs.ejs b/views/partials/breadcrumbs.ejs new file mode 100644 index 000000000..410a1f8c5 --- /dev/null +++ b/views/partials/breadcrumbs.ejs @@ -0,0 +1,15 @@ + + + diff --git a/views/partials/card/house-card.ejs b/views/partials/card/house-card.ejs new file mode 100644 index 000000000..2ca3cb942 --- /dev/null +++ b/views/partials/card/house-card.ejs @@ -0,0 +1,41 @@ +<%= house.postal_code + house.city %>
+€<%= house.price %> k.k.
+<%= house.agent %>
+ + <%- include('./rating-form', {house: house, rating: rating}) %> +