-
{{DepartureTime | date: 'HH:mm'}}
+
{{DepartureTime | date: 'HH:mm'}}
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.html b/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.html
index ddfa31d9..00fba1ae 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.html
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.html
@@ -4,6 +4,15 @@ {{ stationName }}
+
+
+
No Departures Found for {{ stationName || stationCode }}
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.ts b/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.ts
index 8cdae221..98f36b03 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.ts
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/boards/boards.component.ts
@@ -46,6 +46,7 @@ export class BoardsComponent implements OnInit, OnDestroy {
@ViewChild("Boards", { read: ViewContainerRef, static: true })
Boards: ViewContainerRef;
subscriptions: Subscription[] = [];
+ isLoading = false;
constructor(
private route: ActivatedRoute,
@@ -107,7 +108,7 @@ export class BoardsComponent implements OnInit, OnDestroy {
this.displays = Number(this.route.snapshot.paramMap.get("displays"));
} else {
this.displays = Number(
- localStorage.getItem("settings_mainboard_count") || 6
+ localStorage.getItem("settings_mainboard_count") || this.displays
);
}
@@ -142,6 +143,7 @@ export class BoardsComponent implements OnInit, OnDestroy {
});
}
ToggleConfig.LoadingBar.next(true);
+ this.isLoading = true
if (!this.isCustomData) {
this.GetDepartures();
@@ -168,9 +170,13 @@ export class BoardsComponent implements OnInit, OnDestroy {
.subscribe(
(response) => {
ToggleConfig.LoadingBar.next(false);
+ this.isLoading = false;
this.ProcessDepartures(response);
},
- () => ToggleConfig.LoadingBar.next(false)
+ () => {
+ ToggleConfig.LoadingBar.next(false);
+ this.isLoading = false;
+ }
);
}
@@ -221,6 +227,7 @@ export class BoardsComponent implements OnInit, OnDestroy {
.subscribe(
(departureData: any) => {
ToggleConfig.LoadingBar.next(false);
+ this.isLoading = false;
console.debug(departureData);
const data = departureData.jsonData;
this.noBoardsDisplay = !data;
@@ -266,6 +273,7 @@ export class BoardsComponent implements OnInit, OnDestroy {
},
(error) => {
ToggleConfig.LoadingBar.next(false);
+ this.isLoading = false;
console.log(error);
}
)
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.css b/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.css
index f9182325..ec918ca3 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.css
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.css
@@ -12,3 +12,7 @@ img {
max-width: 100%;
height: auto;
}
+
+p {
+ color: #fff;
+}
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.html b/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.html
index e243d9d0..81e761f3 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.html
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/examples/examples.component.html
@@ -1,5 +1,9 @@
Examples
+
Raspberry Pi
+
Turn your raspberry pi into a departure board by using an existing screen or by buying a custom screen for the pi
+
+
Home Display
Turn you spare screen or tv into a always live departure board. So at a quick glance you can see the next train to
where you want to go.
Or watch the trains come and go from the comfort of your own home
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.css b/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.css
index a5dbf132..9bf1de48 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.css
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.css
@@ -1,7 +1,11 @@
+.home {
+ background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("/assets/sofbox-sass-black/saas-bg.png");
+}
+
.header {
width: 100%;
- height: 320px;
- margin-bottom: 40px;
+ height: 600px;
+ margin-top: 0;
}
.header-background {
@@ -10,7 +14,7 @@
right: 0;
z-index: 1;
display: block;
- background: url(/assets/departure_background.png) no-repeat center;
+ background: url(/assets/departure_background.png);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
@@ -24,37 +28,30 @@
position: absolute;
left: 0;
right: 0;
- z-index: 9999;
+ z-index: 2;
margin-left: 20px;
margin-right: 20px;
}
-.header-title {
- font-size: 48px;
- text-align: center;
- color: white;
- margin-top: 102px;
-}
-
.header-search {
text-align: center;
- width: 300px;
+ width: 400px;
}
.search-spinner {
margin:auto;
position: absolute;
- left: 0;
- right: 0;
- margin-left: auto;
- margin-right: auto;
+ left: 0;
+ right: 0;
+ margin-left: auto;
+ margin-right: auto;
}
.search-container {
display: flex;
flex-direction: row;
- margin: auto;
- width: 356px;
+
+ width: 456px;
--tui-link: #ff9729;
}
@@ -68,23 +65,30 @@
border-bottom-right-radius: 0;
}
-section {
- margin-bottom: 80px;
+.board-example {
+ background-color: black;
+ border-radius: 20px;
+ width: 300px;
+ /* border: 2px solid #ff9729; */
+ box-shadow: 0 0 20px #ff9729;
+ box-shadow: 0 0 5px #ff9729 inset;
}
-.autofit-container {
- margin-left: auto;
- margin-right: auto;
- width: fit-content;
+.board {
+ padding: 10px;
}
-.howToUse-container > p {
- margin-bottom: 30px;
+a {
+ color: lightskyblue;
}
-.howToUse-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
+.button {
+ color: #fff;
+}
+
+#how-to-use {
+ background:linear-gradient(135deg, #ff9729 0%,#da4606 100%);
+ border-radius: 50px;
+ max-width: 1500px;
+ margin: auto;
}
diff --git a/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.html b/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.html
index 4f5766e6..c826693c 100644
--- a/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.html
+++ b/DepartureBoardWeb/ClientApp/src/app/Pages/home/home.component.html
@@ -1,171 +1,246 @@
-
-
- '),x+=e.sloth,null!=s&&null!=l&&punchgs.TweenLite.set(i.find(".slot").last(),{rotationZ:l});y+=e.slotw}break;case"vertical":case"horizontal":if("horizontal"==a){if(!o)p=0-e.slotw;for(z=0;z'),null!=s&&null!=l&&punchgs.TweenLite.set(i.find(".slot").last(),{rotationZ:l})}else{if(!o)p=0-e.sloth;for(z=0;z
'),null!=s&&null!=l&&punchgs.TweenLite.set(i.find(".slot").last(),{rotationZ:l})}}};var ut=function(t,e){return null==e||jQuery.isNumeric(t)?t:null==t?t:t.split(",")[e]},d=function(a,t,e,o,i,n,r,s){var l=e[0].opt,d=i.index(),h=o.index()