This commit is contained in:
scarlett kadan 2024-05-09 23:40:22 -04:00
commit bc4d6a6ced
2 changed files with 50 additions and 14 deletions

View File

@ -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;

View File

@ -8,22 +8,19 @@ export default class SummaryComponent extends Component {
<div className="summary">
<img className="summary-image" src={BeldenLogo} alt="Belden" />
<div className="summary-fieldContainer">
<h1 className="summary-title">Grid of Individual Graphs</h1>
<div className="summary-grid">
{/* <div className="summary-iframe"> */}
<iframe
className="summary-iframe"
src="=http://192.168.1.12:3000/d/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&viewPanel=9"
// width="400"
// height="300"
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=7"
// width="400"
// height="300"
frameborder="0"
></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"
@ -31,12 +28,26 @@ export default class SummaryComponent extends Component {
></iframe>
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=7"
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>
<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>
);