-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-redesign #212 header redesign
- Loading branch information
Showing
19 changed files
with
211 additions
and
70 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
6 changes: 0 additions & 6 deletions
6
angular-client/src/components/connection-display/connection-display.component.css
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
angular-client/src/components/connection-display/connection-display.component.html
This file was deleted.
Oops, something went wrong.
Empty file.
7 changes: 0 additions & 7 deletions
7
angular-client/src/components/viewer-display/viewer-display.component.html
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...ent/src/pages/landing-page/components/connection-display/connection-display.component.css
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,21 @@ | ||
.connection-display { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
} | ||
|
||
.connection-display-data { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.connection-dot { | ||
display: flex; | ||
justify-content: center; | ||
width: 20px; | ||
height: 20px; | ||
border-radius: 50%; | ||
margin-right: 5px; | ||
} |
16 changes: 16 additions & 0 deletions
16
...nt/src/pages/landing-page/components/connection-display/connection-display.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<info-background> | ||
<div class="connection-display"> | ||
<div class="connection-display-title"> | ||
<typography variant="header" content="Connection" additionalStyles="margin: 0px;"></typography> | ||
</div> | ||
|
||
<div class="connection-display-data"> | ||
<div | ||
class="connection-dot" | ||
[style.background-color]="getConnectedColor(connected)" | ||
additionalStyles="height: 15px;" | ||
></div> | ||
<typography variant="info-subtitle" [content]="getConnectedStatus(connected)" /> | ||
</div> | ||
</div> | ||
</info-background> |
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
7 changes: 7 additions & 0 deletions
7
...t/src/pages/landing-page/components/current-run-display/current-run-display.component.css
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,7 @@ | ||
.current-run-display { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
} |
6 changes: 6 additions & 0 deletions
6
.../src/pages/landing-page/components/current-run-display/current-run-display.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<info-background> | ||
<div class="current-run-display"> | ||
<typography variant="header" content="Current Run" additionalStyles="margin: 0px" /> | ||
<typography variant="info-subtitle" content="#{{ currentRun }}" additionalStyles="margin: 0px" /> | ||
</div> | ||
</info-background> |
20 changes: 20 additions & 0 deletions
20
...nt/src/pages/landing-page/components/current-run-display/current-run-display.component.ts
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,20 @@ | ||
import { Component } from '@angular/core'; | ||
import Storage from 'src/services/storage.service'; | ||
|
||
@Component({ | ||
selector: 'current-run-display', | ||
templateUrl: './current-run-display.component.html', | ||
styleUrl: './current-run-display.component.css' | ||
}) | ||
export class CurrentRunDisplay { | ||
currentRun: number = 0; | ||
constructor(private storage: Storage) {} | ||
|
||
ngOnInit() { | ||
this.storage.getCurrentRunId().subscribe((runId) => { | ||
if (runId) { | ||
this.currentRun = runId; | ||
} | ||
}); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...lient/src/pages/landing-page/components/date-location-display/date-location.component.css
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,7 @@ | ||
.date-location-display { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
} |
6 changes: 6 additions & 0 deletions
6
...ient/src/pages/landing-page/components/date-location-display/date-location.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<info-background> | ||
<div class="date-location-display"> | ||
<typography variant="header" content="{{ time | date: 'MM/dd/yyyy' }}" additionalStyles="margin: 0px" /> | ||
<typography variant="info-subtitle" content="{{ location }}" /> | ||
</div> | ||
</info-background> |
35 changes: 35 additions & 0 deletions
35
...client/src/pages/landing-page/components/date-location-display/date-location.component.ts
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,35 @@ | ||
import { Component, HostListener } from '@angular/core'; | ||
import { MessageService } from 'primeng/api'; | ||
import { startNewRun } from 'src/api/run.api'; | ||
import APIService from 'src/services/api.service'; | ||
import Storage from 'src/services/storage.service'; | ||
import { IdentifierDataType } from 'src/utils/enumerations/identifier-data-type'; | ||
|
||
@Component({ | ||
selector: 'date-location', | ||
templateUrl: './date-location.component.html', | ||
styleUrl: './date-location.component.css' | ||
}) | ||
export class DateLocation { | ||
time = new Date(); | ||
location: string = 'Boston, MA'; | ||
mobileThreshold = 1070; | ||
isMobile = window.innerWidth < this.mobileThreshold; | ||
|
||
constructor(private storage: Storage) {} | ||
|
||
ngOnInit() { | ||
setInterval(() => { | ||
this.time = new Date(); | ||
}, 1000); | ||
|
||
this.storage.get(IdentifierDataType.LOCATION).subscribe((value) => { | ||
[this.location] = value.values || ['No Location Set']; | ||
}); | ||
} | ||
|
||
@HostListener('window:resize', ['$event']) | ||
onResize() { | ||
this.isMobile = window.innerWidth <= this.mobileThreshold; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
angular-client/src/pages/landing-page/components/viewer-display/viewer-display.component.css
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,7 @@ | ||
.viewer-display { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
} |
6 changes: 6 additions & 0 deletions
6
...lar-client/src/pages/landing-page/components/viewer-display/viewer-display.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<info-background> | ||
<div class="viewer-display"> | ||
<typography variant="header" content="Viewers" additionalStyles="margin: 0px" /> | ||
<typography variant="info-subtitle" [content]="numViewers.toString()" /> | ||
</div> | ||
</info-background> |
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
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
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