Skip to content

Commit

Permalink
Add notice
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed Jun 7, 2024
1 parent a5a5ceb commit 7e580d5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions components/notice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Box } from 'theme-ui'
import { Link } from '@carbonplan/components'

const Notice = () => {
return (
<Box
sx={{
color: 'secondary',
fontSize: [1],
}}
>
<Box sx={{ pointerEvents: 'none' }}>
This is an experimental tool for exploring data. Learn more on{' '}
<Link
sx={{ color: 'secondary' }}
href='https://github.com/carbonplan/ncview-js'
>
GitHub
</Link>
.
</Box>
</Box>
)
}

export default Notice
4 changes: 4 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import LoadingStates from '../components/loading-states'
import Map from '../components/map'
import Plots from '../components/plots'
import Selectors from '../components/selectors'
import Notice from '../components/notice'

const Index = () => {
return (
Expand All @@ -27,6 +28,9 @@ const Index = () => {
<Container>
<Row>
<Sidebar expanded side='left' width={4} footer={<Plots />}>
<Notice />
<SidebarDivider sx={{ my: 4 }} />

<Flex sx={{ flexDirection: 'column', gap: 3 }}>
<Dataset />
<Selectors />
Expand Down

0 comments on commit 7e580d5

Please sign in to comment.