-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2231fd
commit f5b9670
Showing
6 changed files
with
165 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ const ContactOne = () => { | |
</div> | ||
<div className="inner"> | ||
<h4 className="title">Our Email Address</h4> | ||
<p><a href="mailto:[email protected]">admin@covisart.com</a></p> | ||
<p><a href="mailto:[email protected]">contact@covisart.com</a></p> | ||
<p><a href="mailto:[email protected]">info@covisart.com</a></p> | ||
<p><a href="mailto:[email protected]">support@covisart.com</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react' | ||
import { GoogleMap, useJsApiLoader } from '@react-google-maps/api'; | ||
|
||
const containerStyle = { | ||
width: '400px', | ||
height: '400px' | ||
}; | ||
|
||
const center = { | ||
lat: -3.745, | ||
lng: -38.523 | ||
}; | ||
|
||
function Maps() { | ||
const { isLoaded } = useJsApiLoader({ | ||
id: 'google-map-script', | ||
googleMapsApiKey: "AIzaSyBPJffuk5iqp_6IjD42JZX1-NGBM3wPSbw" | ||
}) | ||
|
||
const [map, setMap] = React.useState(null) | ||
|
||
const onLoad = React.useCallback(function callback(map) { | ||
// This is just an example of getting and using the map instance!!! don't just blindly copy! | ||
const bounds = new window.google.maps.LatLngBounds(center); | ||
map.fitBounds(bounds); | ||
|
||
setMap(map) | ||
}, []) | ||
|
||
const onUnmount = React.useCallback(function callback(map) { | ||
setMap(null) | ||
}, []) | ||
|
||
return isLoaded ? ( | ||
<GoogleMap | ||
mapContainerStyle={containerStyle} | ||
center={center} | ||
zoom={10} | ||
onLoad={onLoad} | ||
onUnmount={onUnmount} | ||
> | ||
{ /* Child components, such as markers, info windows, etc. */ } | ||
<></> | ||
</GoogleMap> | ||
) : <></> | ||
} | ||
|
||
export default React.memo(Maps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters