-
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
352f23b
commit ea37324
Showing
8 changed files
with
62 additions
and
16 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,3 @@ | ||
#root > main { | ||
margin-left: calc(60px + 1vw); | ||
} |
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,25 +1,17 @@ | ||
import { Devices } from './component/Devices.jsx' | ||
import { useParameters } from './context/Parameters.js' | ||
import { ExperimentalWarning } from './component/ExperimentalWarning.jsx' | ||
import { Sidebar } from './component/Sidebar.jsx' | ||
|
||
export const MapApp = () => { | ||
const parameters = useParameters() | ||
import './MapApp.css' | ||
|
||
export const MapApp = () => { | ||
return ( | ||
<> | ||
<Sidebar /> | ||
<ExperimentalWarning /> | ||
<main> | ||
<Devices /> | ||
</main> | ||
<aside style={{ 'margin-top': '2rem' }}> | ||
<h1>Parameters</h1> | ||
<dl> | ||
<dt> | ||
<code>devicesAPIURL</code> | ||
</dt> | ||
<dd> | ||
<code>{parameters.devicesAPIURL.toString()}</code> | ||
</dd> | ||
</dl> | ||
</aside> | ||
</> | ||
) | ||
} |
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,14 @@ | ||
.experimental-warning { | ||
position: absolute; | ||
top: 1rem; | ||
justify-content: center; | ||
width: 100vw; | ||
display: flex; | ||
} | ||
|
||
.experimental-warning div { | ||
background-color: #e7c27b; | ||
color: #333; | ||
padding: 0.5rem; | ||
border-radius: 4px; | ||
} |
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,7 @@ | ||
import './ExperimentalWarning.css' | ||
|
||
export const ExperimentalWarning = () => ( | ||
<aside class="experimental-warning"> | ||
<div role="alert">Work in progress!</div> | ||
</aside> | ||
) |
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,20 @@ | ||
nav.sidebar { | ||
background-color: var(--bg-blue-4); | ||
width: 60px; | ||
height: 100vh; | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
border-right: 1px solid var(--bg-blue-1); | ||
} | ||
|
||
nav.sidebar .logo { | ||
padding: 10px; | ||
} | ||
|
||
nav.sidebar hr { | ||
border-top: 1px solid var(--bg-blue-8); | ||
border-bottom: 1px solid var(--bg-blue-1); | ||
width: 100%; | ||
padding: 0; | ||
} |
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,10 @@ | ||
import './Sidebar.css' | ||
|
||
export const Sidebar = () => ( | ||
<nav class="sidebar"> | ||
<a href="/map"> | ||
<img src="/assets/logo.svg" class="logo" alt="hello.nrfcloud.com logo" /> | ||
</a> | ||
<hr /> | ||
</nav> | ||
) |
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