summary start
This commit is contained in:
parent
bc4d6a6ced
commit
fa8f1441c8
@ -2,6 +2,10 @@ $dark-blue: #002554;
|
|||||||
$medium-blue: #004990;
|
$medium-blue: #004990;
|
||||||
$light-blue: #007cbe;
|
$light-blue: #007cbe;
|
||||||
$hover-blue: #25b3ff;
|
$hover-blue: #25b3ff;
|
||||||
|
$black: #000;
|
||||||
|
$gray: #bdbdbd;
|
||||||
|
$white: #fff;
|
||||||
|
|
||||||
.summary {
|
.summary {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
@ -34,57 +38,77 @@ $hover-blue: #25b3ff;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.summary-fieldContainer {
|
.summary-fieldContainer {
|
||||||
// width: 100%;
|
width: 100%;
|
||||||
// min-height: calc(100% - 250px);
|
|
||||||
// height: auto;
|
|
||||||
// background-color: transparent;
|
|
||||||
// display: flex;
|
|
||||||
// align-items: flex-start;
|
|
||||||
// justify-content: center;
|
|
||||||
// flex-wrap: wrap;
|
|
||||||
|
|
||||||
// below is taken from browse.scss
|
|
||||||
width: 90%;
|
|
||||||
min-height: calc(100% - 200px);
|
min-height: calc(100% - 200px);
|
||||||
height: auto;
|
height: auto;
|
||||||
// display: flex;
|
display: flex;
|
||||||
// align-self: center;
|
align-items: center;
|
||||||
// align-items: center;
|
justify-content: flex-start;
|
||||||
// justify-content: center;
|
flex-direction: column;
|
||||||
// align-items: center;
|
|
||||||
// justify-content: flex-start;
|
|
||||||
// justify-self: center;
|
|
||||||
// flex-direction: column;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
width: 80%;
|
||||||
|
height: auto;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: $white;
|
||||||
|
font-family: "Gotham Medium";
|
||||||
|
margin: 10px;
|
||||||
|
background-color: transparent;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.summary-grid {
|
.summary-grid {
|
||||||
width: 100%;
|
width: 80%;
|
||||||
height: 100%; /* Adjust the height of iframes */
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
display: grid;
|
flex-wrap: wrap;
|
||||||
grid-template-columns: repeat(2, 1fr); /* 2 columns */
|
justify-content: flex-start;
|
||||||
grid-gap: 10px; /* Adjust the gap between iframes */
|
align-items: flex-start;
|
||||||
grid-row-gap: 5px; /* Adjust the gap between rows */
|
background-color: transparent;
|
||||||
|
overflow: visible;
|
||||||
|
|
||||||
// Debug Borders
|
|
||||||
border-width: 5px;
|
|
||||||
border-style: solid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.summary-iframe {
|
.summary-grid-container {
|
||||||
width: 100%; /* Ensure iframes take up full width of their grid cell */
|
width: 32%;
|
||||||
height: 300px; /* Adjust the height of iframes */
|
height: 300px;
|
||||||
|
background: linear-gradient(
|
||||||
// Debug Borders
|
-30deg,
|
||||||
border-width: 5px;
|
rgb(187, 208, 236) 0%,
|
||||||
border-style: solid;
|
rgba(255, 255, 255, 1) 100%
|
||||||
|
);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: row;
|
||||||
|
border-radius: 20px;
|
||||||
|
border: 1px solid $gray;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
text-decoration: none;
|
||||||
|
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
|
||||||
|
cursor: pointer;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.summary-grid-container:hover {
|
||||||
|
transform: translate3d(-5px, -5px, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// .summary-iframe {
|
||||||
|
// width: 100%; /* Ensure iframes take up full width of their grid cell */
|
||||||
|
// height: 300px; /* Adjust the height of iframes */
|
||||||
|
|
||||||
|
// // Debug Borders
|
||||||
|
// border-width: 5px;
|
||||||
|
// border-style: solid;
|
||||||
|
// }
|
||||||
|
|
||||||
// .summary-iframe {
|
// .summary-iframe {
|
||||||
// width: 400px;
|
// width: 400px;
|
||||||
// height: 400px;
|
// height: 400px;
|
||||||
@ -102,28 +126,18 @@ $hover-blue: #25b3ff;
|
|||||||
// padding: 10px;
|
// padding: 10px;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
.summary-fieldContainer-graph {
|
// .summary-fieldContainer-graph {
|
||||||
width: 25%;
|
// width: 25%;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
.summary-dashboard {
|
// .summary-dashboard {
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
height: 900px;
|
// height: 900px;
|
||||||
border-radius: 20px;
|
// border-radius: 20px;
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
padding: 10px;
|
// padding: 10px;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.summary-title {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
font-size: 1.5em;
|
|
||||||
font-weight: bold;
|
|
||||||
color: $dark-blue;
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// .summary-fieldContainer-dashboard {
|
// .summary-fieldContainer-dashboard {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
|
@ -118,13 +118,9 @@ export default class CableDetailComponent extends Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (modal === "modalOpen_dispense") {
|
if (modal === "modalOpen_dispense") {
|
||||||
this.props.socket.send(
|
this.props.socket.send(`{"type": "cable_get","call": "send","data": {"position": ${this.state.cableDetails.position}}}`);
|
||||||
`{"type": "cable_get","call": "send","data": {"position": ${this.state.cableDetails.position}}}`
|
|
||||||
);
|
|
||||||
} else if (modal === "modalOpen_show") {
|
} else if (modal === "modalOpen_show") {
|
||||||
this.props.socket.send(
|
this.props.socket.send(`{"type": "cable_get","call": "request","data": {"position": ${this.state.cableDetails.position}}}`);
|
||||||
`{"type": "cable_get","call": "request","data": {"position": ${this.state.cableDetails.position}}}`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,48 +6,14 @@ export default class SummaryComponent extends Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="summary">
|
<div className="summary">
|
||||||
<img className="summary-image" src={BeldenLogo} alt="Belden" />
|
<div className="summary-image">
|
||||||
|
<img src={BeldenLogo} alt="Belden" />
|
||||||
|
</div>
|
||||||
<div className="summary-fieldContainer">
|
<div className="summary-fieldContainer">
|
||||||
<h1 className="summary-title">Grid of Individual Graphs</h1>
|
<h1 className="summary-title">Summary</h1>
|
||||||
|
|
||||||
<div className="summary-grid">
|
<div className="summary-grid">
|
||||||
{/* <div className="summary-iframe"> */}
|
<div className="summary-grid-container"></div>
|
||||||
<iframe
|
|
||||||
className="summary-iframe"
|
|
||||||
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=9"
|
|
||||||
frameborder="0"
|
|
||||||
></iframe>
|
|
||||||
<iframe
|
|
||||||
className="summary-iframe"
|
|
||||||
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=8"
|
|
||||||
frameborder="0"></iframe>
|
|
||||||
<iframe
|
|
||||||
className="summary-iframe"
|
|
||||||
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=7"
|
|
||||||
frameborder="0"
|
|
||||||
></iframe>
|
|
||||||
<iframe
|
|
||||||
className="summary-iframe"
|
|
||||||
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=6"
|
|
||||||
frameborder="0"
|
|
||||||
></iframe>
|
|
||||||
<iframe
|
|
||||||
className="summary-iframe"
|
|
||||||
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=5"
|
|
||||||
frameborder="0"
|
|
||||||
></iframe>
|
|
||||||
{/* </div> */}
|
|
||||||
{/* <iframe src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=7" width="450" height="200" frameborder="0"></iframe> */}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h1 className="summary-title">Embed Dashboard in Kiosk Mode</h1>
|
|
||||||
<iframe
|
|
||||||
className="summary-dashboard"
|
|
||||||
src="http://192.168.1.12:3000/d/cdiqwmlr8c9ogf/sensors?orgId=1&theme=light&refresh=1s&kiosk"
|
|
||||||
frameborder="0"
|
|
||||||
></iframe>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user