-
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
716c3b4
commit abb9aab
Showing
2 changed files
with
35 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
<template> | ||
<div class="px-5-touch"> | ||
<div v-if="offline"> | ||
<div class="container content is-large"> | ||
<div class="offline mx-6 my-6 px-6 py-6"> | ||
<h3 class="title is-3"> | ||
Northern Climate Reports offline for maintenance | ||
</h3> | ||
<div class="content is-size-4"> | ||
<p> | ||
We’re sorry! Northern Climate Reports is currently offline for | ||
system maintenance. We’re working to complete this maintenance | ||
and have Northern Climate Reports back online as soon as possible, | ||
but we don’t have an estimated time for completion. Please | ||
check back soon, or reach out to us at | ||
<a href="mailto:[email protected]" | ||
>[email protected]</a | ||
> | ||
with questions. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div v-else class="px-5-touch"> | ||
<client-only> | ||
<div v-show="!this.reportIsVisible"> | ||
<div class="container mt-5"> | ||
|
@@ -25,7 +47,12 @@ | |
</client-only> | ||
</div> | ||
</template> | ||
<style lang="scss" scoped></style> | ||
<style lang="scss" scoped> | ||
.offline { | ||
border: 0.1px solid #888; | ||
background-color: #e7b69a; | ||
} | ||
</style> | ||
<script> | ||
import MapWrapper from '~/components/MapWrapper' | ||
import Report from '~/components/Report' | ||
|
@@ -42,6 +69,11 @@ export default { | |
LatLngSelector, | ||
PlaceSelector, | ||
}, | ||
data() { | ||
return { | ||
offline: process.env.offline, | ||
} | ||
}, | ||
computed: { | ||
...mapGetters(['reportIsVisible']), | ||
}, | ||
|
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