diff --git a/build/main.css b/build/main.css index bd8c829..cdd9cee 100644 --- a/build/main.css +++ b/build/main.css @@ -761,6 +761,90 @@ p { /* ============***End of Blog styles***============ */ +/* ============***Beginning of Contact Section styles***============ */ +.contact { + color: var(--light-text-color); + padding-bottom: var(--padding-60); +} + +.contact .contact__container { + display: grid; + place-content: center; + grid-template-columns: repeat(2, 50%); + font-size: 1.2rem; + justify-items: center; + +} + +@media screen and (max-width: 700px) { + .contact .contact__container { + grid-template-columns: 100%; + grid-template-rows: 1fr 1fr; + grid-row-gap: 30px; + } + } + +.contact__phone, .contact__address, .contact__email { + padding: var(--padding-35) 0; +} + +.contact__icons { + display: inline-block; + font-size: 1.3rem; + text-transform: uppercase; + margin: 10px 0; +} + +.contact__icons i{ + font-size: 1.8rem; + color: var(--secondary-color); + border: 1px solid var(--secondary-color); + padding: 10px; + height: 50px; + width: 50px; + text-align: center; + border-radius: 50%; +} + +#map { + height: 100%; + width: 100%; +} + +/* removes blue border from map */ +.gm-style iframe + div { border:none!important; } + +/* HTML marker styles */ +.price-tag { + background-color: #293946; + border-radius: 8px; + color: var(--primary-color); + font-size: .9rem; + padding: 10px 15px; + text-transform: uppercase; + position: relative; + } + + .price-tag::after { + content: ""; + position: absolute; + left: 50%; + top: 100%; + transform: translate(-50%, 0); + width: 0; + height: 0; + border-left: 8px solid transparent; + border-right: 8px solid transparent; + border-top: 8px solid #293946; + } + +@media screen and (min-width: 1300px) { + #map { + height: 100%; + width: 130%; + } + } +/* ============***End of Contact styles***============ */ /* Key Frames Animations */ @keyframes logo-animation { to { diff --git a/build/main.js b/build/main.js index 94f0da9..5e9edf6 100644 --- a/build/main.js +++ b/build/main.js @@ -5,6 +5,7 @@ const closeNav = document.querySelector("[data-closeNav]"); const navContainer = document.querySelector("[data-navContainer]"); const navItemsContainer = document.querySelector("[data-navItemsContainer]"); + let map; // set nav container width to 100% function openNavigation() { @@ -21,5 +22,53 @@ // Attatched eventlisteners openNav.addEventListener("click", openNavigation); closeNav.addEventListener("click", closeNavigation); + + // Initialize Google Maps + // Initialize and add the map +async function initMap() { + // The location of Uluru + const position = { lat: 32.736423619825, lng: -117.16049728303148 }; + // Request needed libraries. + //@ts-ignore + const { Map } = await google.maps.importLibrary("maps"); + const { AdvancedMarkerElement } = await google.maps.importLibrary("marker"); + + // The map, centered at Uluru + map = new Map(document.getElementById("map"), { + zoom: 18, + center: position, + mapId: "578717aaf820052d", + }); + + // create marker + const priceTag = document.createElement("div"); + + priceTag.className = "price-tag"; + priceTag.textContent = "Pilates Journeys"; + + // The marker, positioned at Pilates Journeys + const marker = new AdvancedMarkerElement({ + map: map, + position: position, + content: priceTag, + title: "Pilates Journeys", + }); +} + +initMap(); + + + // function initMap() { + // map = new google.maps.Map(document.getElementById("map"), { + // center: { lat: 32.736423619825, lng: -117.16049728303148 }, + // zoom: 14, + // }); + + // const marker = new google.maps.marker.AdvancedMarkerElement({ + // map, + // position: {lat: 32.736423619825, lng: -117.16049728303148}, + // }); + // } + // window.initMap = initMap; })() \ No newline at end of file diff --git a/index.html b/index.html index c5016ea..2498b45 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@ + @@ -214,13 +215,32 @@