-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
130 Add modal to message about outdated data in CPE
- created advisory modal with copy and inline styling - added the modal to three pages: - landing page - capital project map page - capital projects table data page - added functionality to dismiss/close the modal
- Loading branch information
1 parent
41cbd26
commit 63bd4d7
Showing
6 changed files
with
301 additions
and
91 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Modal } from 'react-bootstrap'; | ||
|
||
const AdvisoryModal = ({ handleClose }) => ( | ||
<Modal | ||
show | ||
onHide={handleClose} | ||
style={{ top: '5em' }} | ||
> | ||
<Modal.Header | ||
className="advisory-modal-header" | ||
style={{ paddingTop: '45px' }} | ||
/> | ||
|
||
<Modal.Body> | ||
<div style={{ margin: '0 3em', fontSize: '18px' }}> | ||
The Capital Projects section of the Capital Planning Explorer is no | ||
longer being updated with the latest data (the most recent data | ||
available in this application are from April 2023). To download the | ||
latest Capital Projects data, please refer to | ||
<a href="https://data.cityofnewyork.us/City-Government/Capital-Projects-Database-CPDB-Projects/fi59-268w/about_data"> | ||
NYC Open Data | ||
</a> | ||
or | ||
<a href="https://www.nyc.gov/site/planning/data-maps/open-data.page"> | ||
Bytes of the Big Apple | ||
</a> | ||
. Other sections of the Capital Planning Explorer are still being | ||
actively updated, and we encourage you to stay tuned for future | ||
enhancements to this platform. | ||
</div> | ||
</Modal.Body> | ||
|
||
<Modal.Footer className="advisory-modal-footer"> | ||
<div className="btn dcp-orange" onClick={handleClose}> | ||
Close | ||
</div> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
|
||
AdvisoryModal.propTypes = { | ||
handleClose: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default AdvisoryModal; |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
color: #d96b27; | ||
} | ||
|
||
.modal-body h5, { | ||
.modal-body h5 { | ||
font-family: 'Oswald'; | ||
font-size: 17px; | ||
} | ||
|
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.