diff --git a/shedpi_hub_dashboard/static/shedpi_hub_dashboard/css/landing.css b/shedpi_hub_dashboard/static/shedpi_hub_dashboard/css/landing.css index e69de29..d546704 100644 --- a/shedpi_hub_dashboard/static/shedpi_hub_dashboard/css/landing.css +++ b/shedpi_hub_dashboard/static/shedpi_hub_dashboard/css/landing.css @@ -0,0 +1,49 @@ +.bi { + display: inline-block; + width: 1rem; + height: 1rem; +} + +/* + * Sidebar + */ + +@media (min-width: 768px) { + .sidebar .offcanvas-lg { + position: -webkit-sticky; + position: sticky; + top: 48px; + } + + .navbar-search { + display: block; + } +} + +.sidebar .nav-link { + font-size: .875rem; + font-weight: 500; +} + +.sidebar .nav-link.active { + color: #2470dc; +} + +.sidebar-heading { + font-size: .75rem; +} + +/* + * Navbar + */ + +.navbar-brand { + padding-top: .75rem; + padding-bottom: .75rem; + background-color: rgba(0, 0, 0, .25); + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); +} + +.navbar .form-control { + padding: .75rem 1rem; +} diff --git a/shedpi_hub_dashboard/static/shedpi_hub_dashboard/js/index.js b/shedpi_hub_dashboard/static/shedpi_hub_dashboard/js/index.js index 75fd750..ea9df50 100644 --- a/shedpi_hub_dashboard/static/shedpi_hub_dashboard/js/index.js +++ b/shedpi_hub_dashboard/static/shedpi_hub_dashboard/js/index.js @@ -1,6 +1,17 @@ import {dataTable} from "./modules/table.js"; import {LineChart} from "./modules/chart.js"; +/* +Design of the widgets: + +All widgets + - Select fields to map the data to + - Type of widget + +Temperature probe: + - Average of the day + - All entries for the day +*/ const contents = document.getElementsByClassName("contents")[0]; let section = contents diff --git a/shedpi_hub_dashboard/templates/shedpi_hub_dashboard/index.html b/shedpi_hub_dashboard/templates/shedpi_hub_dashboard/index.html index c55e0a5..0fc3ed6 100644 --- a/shedpi_hub_dashboard/templates/shedpi_hub_dashboard/index.html +++ b/shedpi_hub_dashboard/templates/shedpi_hub_dashboard/index.html @@ -71,49 +71,6 @@
Company name
- - -