-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
111 additions
and
43 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
23 changes: 17 additions & 6 deletions
23
ui/pi-web-agent-app/src/app/live-info/live-info.component.html
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,9 +1,20 @@ | ||
|
||
|
||
<mat-list *ngIf='systemInfo$ | async as systemInfo'> | ||
<mat-list-item>OS: {{systemInfo.OS_Info.Id}} {{systemInfo.OS_Info.Version_Codename}}</mat-list-item> | ||
<div class='bg'> | ||
<mat-card class='example-card' class='section'> | ||
<mat-card-header> | ||
<mat-card-title class='fade-in-image' ><b>System Info</b></mat-card-title> | ||
<mat-card-subtitle></mat-card-subtitle> | ||
</mat-card-header> | ||
<img mat-card-image src='/assets/images/info.png' alt="SYstem Infomrmation"> | ||
<mat-card-content> | ||
<mat-list *ngIf='systemInfo$ | async as systemInfo' > | ||
<mat-list-item ><b>OS:</b> {{systemInfo.OS_Info.Id}} {{systemInfo.OS_Info.Version_Codename}}</mat-list-item> | ||
<mat-divider></mat-divider> | ||
<mat-list-item>Kernel: {{systemInfo.Kernel}}</mat-list-item> | ||
<mat-list-item><b>Kernel:</b> {{systemInfo.Kernel}}</mat-list-item> | ||
<mat-divider></mat-divider> | ||
<mat-list-item>Temperature: {{systemInfo.Temperature}}</mat-list-item> | ||
<mat-list-item><b>Temperature:</b> {{systemInfo.Temperature}}</mat-list-item> | ||
</mat-list> | ||
</mat-card-content> | ||
</mat-card></div> | ||
|
||
|
||
|
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,55 @@ | ||
body { | ||
height: 90vh; | ||
background-color: black; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.example-card { | ||
max-width: 400px; | ||
} | ||
|
||
.section { | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
width: 20rem; | ||
height: 30rem; | ||
transform: translate(-50%, -50%); | ||
display: flex; | ||
flex-wrap: wrap; | ||
box-shadow: 7px 7px 15px rgba(55, 84, 170, 0.15), | ||
-2px -2px 10px rgba(255, 255, 255, 1), | ||
inset 0px 0px 4px rgba(255, 255, 255, 0.2), | ||
inset 7px 7px 15px rgba(55, 84, 170, 0), | ||
inset -7px -7px 20px rgba(255, 255, 255, 0), | ||
0px 0px 4px rgba(255, 255, 255, 0); | ||
|
||
} | ||
|
||
|
||
.bg { | ||
height: 100%; | ||
background: url(); | ||
/* Center and scale the image nicely */ | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
|
||
.fade-in-image { | ||
animation: fadeIn 5s; | ||
} | ||
|
||
@keyframes fadeIn { | ||
0% {opacity:0;} | ||
100% {opacity:1;} | ||
} | ||
|
||
@media screen and (min-width : 991px ){ | ||
.bg{ | ||
display: flex; | ||
align-items: center; | ||
} | ||
} |
69 changes: 34 additions & 35 deletions
69
ui/pi-web-agent-app/src/app/main-view/main-view.component.scss
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,37 +1,36 @@ | ||
.main-container { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
|
||
.main-is-mobile .main-toolbar { | ||
position: fixed; | ||
/* Make sure the toolbar will stay on top of the content as it scrolls past. */ | ||
z-index: 2; | ||
} | ||
|
||
.example-spacer { | ||
flex: 1 1 auto; | ||
} | ||
|
||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
|
||
h1.main-app-name { | ||
margin-left: 8px; | ||
} | ||
|
||
.main-sidenav-container { | ||
/* When the sidenav is not fixed, stretch the sidenav container to fill the available space. This | ||
causes `<mat-sidenav-content>` to act as our scrolling element for desktop layouts. */ | ||
flex: 1; | ||
} | ||
|
||
.main-is-mobile .main-sidenav-container { | ||
/* When the sidenav is fixed, don't constrain the height of the sidenav container. This allows the | ||
`<body>` to be our scrolling element for mobile layouts. */ | ||
flex: 1 0 auto; | ||
} | ||
|
||
.main-is-mobile .main-toolbar { | ||
position: fixed; | ||
/* Make sure the toolbar will stay on top of the content as it scrolls past. */ | ||
z-index: 2; | ||
} | ||
|
||
.example-spacer { | ||
flex: 1 1 auto; | ||
} | ||
|
||
|
||
h1.main-app-name { | ||
margin-left: 8px; | ||
} | ||
|
||
.main-sidenav-container { | ||
/* When the sidenav is not fixed, stretch the sidenav container to fill the available space. This | ||
causes `<mat-sidenav-content>` to act as our scrolling element for desktop layouts. */ | ||
flex: 1; | ||
} | ||
|
||
.main-is-mobile .main-sidenav-container { | ||
/* When the sidenav is fixed, don't constrain the height of the sidenav container. This allows the | ||
`<body>` to be our scrolling element for mobile layouts. */ | ||
flex: 1 0 auto; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.