From 132afabf7355a84f89a8f58fe3f3b421ada343d8 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 9 May 2024 22:40:09 -0500 Subject: [PATCH] Grid and Full Dashboard is working --- src/assets/stylesheets/summary.scss | 35 ++++++++++++++++++++++++----- src/components/SummaryComponent.js | 29 ++++++++++++++++-------- 2 files changed, 50 insertions(+), 14 deletions(-) diff --git a/src/assets/stylesheets/summary.scss b/src/assets/stylesheets/summary.scss index 809c08e..2113e15 100644 --- a/src/assets/stylesheets/summary.scss +++ b/src/assets/stylesheets/summary.scss @@ -44,13 +44,17 @@ $hover-blue: #25b3ff; // flex-wrap: wrap; // below is taken from browse.scss - width: 100%; + width: 90%; min-height: calc(100% - 200px); height: auto; - display: flex; - align-items: center; - justify-content: flex-start; - flex-direction: column; + // display: flex; + // align-self: center; + // align-items: center; + // justify-content: center; + // align-items: center; + // justify-content: flex-start; + // justify-self: center; + // flex-direction: column; overflow: hidden; background-color: transparent; margin-bottom: 50px; @@ -59,6 +63,8 @@ $hover-blue: #25b3ff; .summary-grid { width: 100%; + height: 100%; /* Adjust the height of iframes */ + display: grid; grid-template-columns: repeat(2, 1fr); /* 2 columns */ grid-gap: 10px; /* Adjust the gap between iframes */ @@ -100,6 +106,25 @@ $hover-blue: #25b3ff; width: 25%; } + +.summary-dashboard { + width: 100%; + height: 900px; + border-radius: 20px; + text-align: center; + padding: 10px; +} + +.summary-title { + width: 100%; + height: 100%; + + font-size: 1.5em; + font-weight: bold; + color: $dark-blue; + margin: 10px; +} + // .summary-fieldContainer-dashboard { // width: 100%; // height: 300px; diff --git a/src/components/SummaryComponent.js b/src/components/SummaryComponent.js index 7320e3e..16ed1f5 100644 --- a/src/components/SummaryComponent.js +++ b/src/components/SummaryComponent.js @@ -8,22 +8,19 @@ export default class SummaryComponent extends Component {
Belden
+

Grid of Individual Graphs

+
{/*
*/} + src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=8" + frameborder="0"> + {/*
*/} {/* */}
+ + +

Embed Dashboard in Kiosk Mode

+ +
);