Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

event alert message styling, add alert icon

Ed Platoc684e7b86be1
diff --git a/web/css/events.css b/web/css/events.css
index b74f1e24a..50b6e1ccf 100644
--- a/web/css/events.css
+++ b/web/css/events.css
@@ -9,6 +9,7 @@
.event-container {
.no-events {
+ text-align: center;
color: #eee;
font-size: 16px;
padding: 20px;
@@ -365,10 +366,12 @@
.events-loading-text {
display: block;
+ text-align: center;
color: #fff;
padding: 10px;
- margin: 10px auto;
+ margin: 50px auto;
font-size: 18px;
+ line-height: 22px;
height: 100px;
}
diff --git a/web/js/containers/sidebar/events.js b/web/js/containers/sidebar/events.js
index 6dd291e1c..89c01f2da 100644
--- a/web/js/containers/sidebar/events.js
+++ b/web/js/containers/sidebar/events.js
@@ -5,6 +5,7 @@ import { get as lodashGet } from 'lodash';
import {
Dropdown, DropdownToggle, DropdownMenu, DropdownItem,
} from 'reactstrap';
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Event from '../../components/sidebar/event';
import Scrollbars from '../../components/util/scrollbar';
import {
@@ -50,7 +51,7 @@ function Events(props) {
const errorOrLoadingText = isLoading
? 'Loading...'
: hasRequestError
- ? 'There has been an ERROR retrieving events from the EONET events API'
+ ? 'There has been an ERROR retrieving events from the EONET events API. Please try again later.'
: '';
const eventsForSelectedCategory = !isLoading && (eventsData || []).filter((event) => {
@@ -96,6 +97,7 @@ function Events(props) {
<div id="wv-events">
{(isLoading || hasRequestError) && (
<div className="events-loading-text">
+ {hasRequestError && (<FontAwesomeIcon icon="exclamation-triangle" fixedWidth />)}
{errorOrLoadingText}
</div>
)}