-
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
c08e5a4
commit 3ad95da
Showing
8 changed files
with
46 additions
and
124 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
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 |
---|---|---|
@@ -1,95 +1,32 @@ | ||
import React from 'react'; | ||
import { ModalStyle } from './style.js'; | ||
import { ModalStyle, CloseStyle } from './style.js'; | ||
|
||
class MapModal extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
// btn.onclick = function() { | ||
// modal.style.display = "block"; | ||
// } | ||
|
||
}; | ||
} | ||
|
||
/* | ||
on map click | ||
OR | ||
"Get Directions" click | ||
event handler opens MapModal | ||
*/ | ||
render() { | ||
// const { | ||
// street, cityStateZip, phone, website, | ||
// } = this.props.data; | ||
|
||
return ( | ||
|
||
// <!-- The Modal --> | ||
<ModalStyle> | ||
<ModalStyle style={{ display: this.props.toggleMap }}> | ||
<div id="myModal" className="modal"> | ||
|
||
<span className="close">Close ×</span> | ||
{/* <!-- Modal content --> */} | ||
<div className="modal-content"> | ||
<img src="https://s3-us-west-1.amazonaws.com/placeholders-kt/mapModal.png" alt="Map Placeholder" height="100%" width="100%" /> | ||
</div> | ||
<CloseStyle className="close"> | ||
<a onClick={this.props.closeClick}> | ||
Close × | ||
</a> | ||
</CloseStyle> | ||
<div className="modal-content"> | ||
<img src="https://s3-us-west-1.amazonaws.com/placeholders-kt/mapModal.png" alt="Map Placeholder" height="100%" width="100%" /> | ||
</div> | ||
</div> | ||
</ModalStyle> | ||
); | ||
} | ||
} | ||
|
||
|
||
/* Modal Content */ | ||
// .modal-content { | ||
|
||
// } | ||
|
||
// /* The Close Button */ | ||
// .close { | ||
// color: #aaaaaa; | ||
|
||
// font-size: 15px; | ||
// font-weight: normal; | ||
// padding: .05px; | ||
|
||
// } | ||
|
||
// .close:hover, | ||
// .close:focus { | ||
// color: white; | ||
// text-decoration: none; | ||
// cursor: pointer; | ||
// } | ||
|
||
// // <!-- Trigger/Open The Modal --> | ||
// <button id="myBtn">Get Directions</button> | ||
|
||
|
||
// // Get the modal | ||
// var modal = document.getElementById('myModal'); | ||
|
||
// // Get the button that opens the modal | ||
// var btn = document.getElementById("myBtn"); | ||
|
||
// // Get the <span> element that closes the modal | ||
// var span = document.getElementsByClassName("close")[0]; | ||
|
||
// // When the user clicks the button, open the modal | ||
// btn.onclick = function() { | ||
// modal.style.display = "block"; | ||
// } | ||
|
||
// // When the user clicks on <span> (x), close the modal | ||
// span.onclick = function() { | ||
// modal.style.display = "none"; | ||
// } | ||
|
||
// // When the user clicks anywhere outside of the modal, close it | ||
// window.onclick = function(event) { | ||
// if (event.target == modal) { | ||
// modal.style.display = "none"; | ||
// } | ||
// } | ||
|
||
export default MapModal; |
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
Oops, something went wrong.