diff --git a/pages/company/company.pixy b/pages/company/company.pixy index 19457548..25e7d96d 100644 --- a/pages/company/company.pixy +++ b/pages/company/company.pixy @@ -9,6 +9,9 @@ component CompanyPage(company *arn.Company, user *arn.User) each link in company.Links li a(href=link.URL, target="_blank", rel="noopener")= link.Title + + if company.Location.Latitude != 0 && company.Location.Longitude != 0 + iframe.company-location.lazy(data-src="https://www.google.com/maps/embed/v1/place?q=" + toString(company.Location.Latitude) + "," + toString(company.Location.Longitude) + "&key=AIzaSyAsx6fhqRGaMLTixIJMIZBU4Mg6HJmvQf0") component CompanyTabs(company *arn.Company, user *arn.User) .tabs diff --git a/pages/company/company.scarlet b/pages/company/company.scarlet index 56fb428d..1255ff3c 100644 --- a/pages/company/company.scarlet +++ b/pages/company/company.scarlet @@ -1,3 +1,7 @@ .company-description max-width 700px - margin 0 auto \ No newline at end of file + margin 0 auto + +.company-location + width 100% + height 300px \ No newline at end of file