Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Removed geostationary modal CSS and JS files, and CSS import

Karen Berbafc4bc01e8e3c
diff --git a/web/css/geostationary-modal.css b/web/css/geostationary-modal.css
deleted file mode 100644
index f4ba7cfb0..000000000
--- a/web/css/geostationary-modal.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* .geostationary-modal {
- & img {
- display: block;
- margin: 0 auto 10px;
- }
- & .figure {
- width: auto;
- max-width: 100%;
- height: auto;
- }
- & .figure-caption {
- font-style: italic;
- text-align: center;
- margin-bottom: 10px;
- }
- & p {
- margin-bottom: 10px;
- line-height: 16px;
- }
- & button {
- background: #295f92;
- margin: 5px auto 0;
- width: 200px;
- display: block;
- &:hover {
- background: #295f92;
- }
- }
-} */
diff --git a/web/js/app.js b/web/js/app.js
index d4e6addfb..c7914f51e 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -80,7 +80,6 @@ import '../css/mobile.css';
import '../css/measure.css';
import '../css/list.css';
import '../css/vectorMeta.css';
-// import '../css/geostationary-modal.css';
import '../css/orbitTracks.css';
import '../css/facets.css';
import '../css/recent-layers.css';
diff --git a/web/js/components/feature-alert/geostationary-modal.js b/web/js/components/feature-alert/geostationary-modal.js
deleted file mode 100644
index 4cc8c0ccd..000000000
--- a/web/js/components/feature-alert/geostationary-modal.js
+++ /dev/null
@@ -1,105 +0,0 @@
-import React from 'react';
-import { connect } from 'react-redux';
-import PropTypes from 'prop-types';
-import update from 'immutability-helper';
-// import {
-// Button,
-// Row,
-// Col,
-// } from 'reactstrap';
-import history from '../../main';
-
-class GeostationaryModalBody extends React.Component {
- constructor(props) {
- super(props);
- this.tryIt = this.tryIt.bind(this);
- }
-
- tryIt() {
- const { isMobile, prepareAnimate, closeModal } = this.props;
- prepareAnimate(isMobile);
- closeModal();
- }
-
- render() {
- // const { isMobile } = this.props;
-
- return '';
- // return (
- // <Row className="geostationary-modal">
- // <Col lg="6" md="12">
- // {!isMobile
- // && (
- // <figure className="figure">
- // <img src="" className="figure-img img-fluid rounded" />
- // <figcaption className="figure-caption mx-auto">
- // </figcaption>
- // </figure>
- // )}
- // </Col>
- // <Col lg="6" md="12">
- // <p></p>
-
- // {isMobile
- // ? <p> Click below to see geostationary in action! </p>
- // : (
- // <p>
- // The animation tool has also been updated to allow adjustments down to
- // the hour and minute. Click below to set up an animation to see
- // geostationary in action!
- // </p>
- // )}
-
- // </Col>
-
- // <Button
- // className="btn btn-lg"
- // onClick={this.tryIt}
- // >
- // Try it!
- // </Button>
-
- // </Row>
- // );
- }
-}
-
-const mapStateToProps = (state) => ({
- isMobile: state.browser.lessThan.medium,
-});
-
-const getLocation = (isMobile) => {
- const paramArr = [
- '',
- ];
-
- if (!isMobile) {
- paramArr.push('');
- }
- const urlParams = paramArr.reduce((prev, curr) => prev + curr, '');
- const search = urlParams.split('/?').pop();
- const location = update(history.location, {
- search: { $set: search },
- });
- return location;
-};
-
-const mapDispatchToProps = (dispatch) => ({
- prepareAnimate: (isMobile) => {
- dispatch({
- type: 'REDUX-LOCATION-POP-ACTION',
- payload: getLocation(isMobile),
- });
- },
-});
-
-export default connect(
- mapStateToProps,
- mapDispatchToProps,
-)(GeostationaryModalBody);
-
-GeostationaryModalBody.propTypes = {
- closeModal: PropTypes.func,
- isMobile: PropTypes.bool,
- prepareAnimate: PropTypes.func,
-};