diff --git a/public/assets/locales/en/translations.json b/public/assets/locales/en/translations.json index 8df1f11..d075efa 100644 --- a/public/assets/locales/en/translations.json +++ b/public/assets/locales/en/translations.json @@ -58,6 +58,17 @@ "Contact-Error1": "Please select an item in the list.", "Contact-Error2": "Please fill out this field.", "Contact-Error3": "Invalid email address.", + + "Search-Bar":"Search your location", + "Budget":"Select Budget", + "Beds": "Number of Beds", + "Baths": "Number of Beds", + + "Any": "Any", + "Listing-Button": "Show Listing", + "listing_desc": "{{desc}}", + "listing_address": "{{address}}", + "Listing1-address": "8720 Russell Road", "Listing2-address": "1490 Youville Drive", "Listing3-address": "100 Charlie Rogers Place", diff --git a/public/assets/locales/fr/translations.json b/public/assets/locales/fr/translations.json index e6e59ed..732e6e0 100644 --- a/public/assets/locales/fr/translations.json +++ b/public/assets/locales/fr/translations.json @@ -64,6 +64,18 @@ "Contact-Error1": "Veuillez sélectionner un élément dans la liste.", "Contact-Error2": "Veuillez remplir ce champ.", "Contact-Error3": "Adresse e-mail invalide.", + + "Search-Bar": "Rechercher", + "Budget":"Sélectionnez Budget", + "Beds": "Nombre de lits", + "Baths": "Nombre de bains", + "Any": "quelconque", + "Listing-Button": "Afficher la liste", + + "listing_desc": "{{desc}}", + "listing_address": "{{address}}", + + "Listing1-address": "8720, chemin Russell", "Listing2-address": "1490, promenade Youville", "Listing3-address": "100, place Charlie Rogers", diff --git a/src/homePage/Homepage.css b/src/homePage/Homepage.css index 018d5c6..5e8dad6 100644 --- a/src/homePage/Homepage.css +++ b/src/homePage/Homepage.css @@ -1,7 +1,11 @@ -.colored-section { - background-color: #e7dec8; - color: #000000; - white-space: nowrap; +.big-heading{ + font-family: 'Source Sans Pro',sans-serif!important; + font-weight: bold; + font-size: 40px; + text-shadow: rgb(0 0 0 / 10%) 0 5px 10px; + text-align: center; + color:rgb(53, 53, 53); + } diff --git a/src/images/banner.jpg b/src/images/banner.jpg new file mode 100644 index 0000000..00107bd Binary files /dev/null and b/src/images/banner.jpg differ diff --git a/src/images/login_bg1.jpg b/src/images/login_bg1.jpg new file mode 100644 index 0000000..ff36b22 Binary files /dev/null and b/src/images/login_bg1.jpg differ diff --git a/src/images/login_bg2.jpg b/src/images/login_bg2.jpg new file mode 100644 index 0000000..3cf762f Binary files /dev/null and b/src/images/login_bg2.jpg differ diff --git a/src/images/login_bg3.jpg b/src/images/login_bg3.jpg new file mode 100644 index 0000000..185b986 Binary files /dev/null and b/src/images/login_bg3.jpg differ diff --git a/src/listings-page/ListingsPage.js b/src/listings-page/ListingsPage.js index 87e94a3..969688c 100644 --- a/src/listings-page/ListingsPage.js +++ b/src/listings-page/ListingsPage.js @@ -17,7 +17,7 @@ import { ComboboxList, ComboboxOption, } from "@reach/combobox"; -import { formatRelative } from "date-fns"; +//import { formatRelative } from "date-fns"; import Select from "react-select"; import "@reach/combobox/styles.css"; @@ -26,6 +26,9 @@ import * as listingData from "./data/property-data.json"; import "./ListingsPage.css"; import compassImg from "./compass.svg"; +import { useTranslation } from "react-i18next"; +import Cookies from "js-cookie"; +import i18next from "i18next"; const libraries = ["places"]; @@ -45,6 +48,10 @@ const center = { }; export default function ListingsPage() { + const {t} = useTranslation(); + + + const price_filter = [ { value: null, @@ -75,15 +82,15 @@ export default function ListingsPage() { }, { value: 1, - label: "One Bed", + label: "1", }, { value: 2, - label: "Two Beds", + label: "2", }, { value: 3, - label: "Three Beds", + label: "3", } ]; @@ -95,23 +102,24 @@ export default function ListingsPage() { }, { value: 1, - label: "One Bath", + label: "1", }, { value: 2, - label: "Two Baths", + label: "2", }, { value: 3, - label: "Three Baths", + label: "3", } ]; //console.log(data1[0]); + const { isLoaded, loadError } = useLoadScript({ googleMapsApiKey: `https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key= - AIzaSyC5TiZoTEwEcB_HUZRhe_rXrcSWW1Z5x8I`, + AIzaSyC5TiZoTEwEcB_HUZRhe_rXrcSWW1Z5x8I`, libraries, }); @@ -119,7 +127,7 @@ export default function ListingsPage() { const [selectedBeds, setSelectedBeds] = useState(null); const [selectedBaths, setSelectedBaths] = useState(null); - const [markers, setMarkers] = React.useState([]); + //const [markers, setMarkers] = React.useState([]); const [selected, setSelected] = React.useState(null); const [budget, setBudget] = useState(null); @@ -157,6 +165,7 @@ export default function ListingsPage() { setBath(e.value); }; + return (
@@ -167,7 +176,7 @@ export default function ListingsPage() {