diff --git a/Client/node_modules - Shortcut.lnk b/Client/node_modules - Shortcut.lnk new file mode 100644 index 0000000..75bef40 Binary files /dev/null and b/Client/node_modules - Shortcut.lnk differ diff --git a/Client/src/app/components/home/countdown.ts b/Client/src/app/components/home/countdown.ts index 4cc65c5..a33717b 100644 --- a/Client/src/app/components/home/countdown.ts +++ b/Client/src/app/components/home/countdown.ts @@ -6,9 +6,7 @@ export class Countdown { public minutes: number = 0; public seconds: number = 0; public liveDates: Date[] = [ - DateTime.fromObject({year: 2020, month: 3, day: 22, hour: 10, zone: 'America/Denver'}), - DateTime.fromObject({year: 2020, month: 3, day: 22, hour: 11, zone: 'America/Denver'}), - DateTime.fromObject({year: 2020, month: 3, day: 22, hour: 19, zone: 'America/Denver'}) + DateTime.fromObject({year: 2020, month: 3, day: 22, hour: 11, zone: 'America/Denver'}) ]; public showButton: boolean; public showCounter: boolean = true; @@ -74,7 +72,7 @@ export class Countdown { var nearestPast = this.getNearestPastDate(now); if (nearestPast) { var pastDiff = now.diff(nearestPast, ['minutes']); - if (pastDiff.minutes < 45) { + if (pastDiff.minutes < 10080) { this.showButton = true; this.dateDisplay = nearestPast.toLocaleString(DateTime.DATETIME_HUGE); this.dateDisplaySmall = nearestPast.toLocaleString(DateTime.DATETIME_MED); @@ -92,8 +90,8 @@ export class Countdown { this.dateDisplaySmall = ''; return; } - var minDiff = nearestFuture.diff(now, ['minutes']); - if (minDiff.minutes <= 10) { + var secDiff = nearestFuture.diff(now, ['seconds']); + if (secDiff.seconds <= 0) { this.showButton = true; } diff --git a/Client/src/app/components/home/home.component.css b/Client/src/app/components/home/home.component.css index ae3ffeb..fc197a6 100644 --- a/Client/src/app/components/home/home.component.css +++ b/Client/src/app/components/home/home.component.css @@ -114,6 +114,9 @@ img.full { #countdown-container { font-size: 20pt; } + #live-button { + font-size: 20pt; + } } .display-sm { @@ -132,7 +135,7 @@ img.full { #countdown-container { font-size: 13pt; margin-top: 3px; - } + } .display-none-sm { display: none; } @@ -142,6 +145,10 @@ img.full { #live-date { margin-top: 2px; } + #live-button { + font-size: 18pt; + margin-top: -5px; + } } @@ -154,6 +161,14 @@ img.full { margin-right: 10px; } +.w-200 { + width: 200px; +} + +.h-200 { + height: 200px; +} + .action{ font-weight: bold; font-size: 20px; @@ -290,7 +305,9 @@ img.full { margin: 10px; } - +img.m-100-lg { + margin-left: 100px; +} @media(max-width: 850px){ .row-content-col-left, .row-content-col-right{ @@ -302,5 +319,8 @@ img.full { img.full { width: 90%; } + img.m-100-lg { + margin-left: 0; + } } \ No newline at end of file diff --git a/Client/src/app/components/home/home.component.html b/Client/src/app/components/home/home.component.html index 041dbe8..ce496e3 100644 --- a/Client/src/app/components/home/home.component.html +++ b/Client/src/app/components/home/home.component.html @@ -4,14 +4,14 @@
+ COVID-19
++ Due to the COVID-19 outbreak our church building will be closed until April 1st. Video + and audio services will be posted online during this time. +
++ live_tv Click here to watch online +
++ headset Click here to listen online +
+
diff --git a/Client/src/app/components/home/home.component.ts b/Client/src/app/components/home/home.component.ts
index 844e779..b229abe 100644
--- a/Client/src/app/components/home/home.component.ts
+++ b/Client/src/app/components/home/home.component.ts
@@ -12,6 +12,8 @@ import { Countdown } from './countdown';
export class HomeComponent {
backgroundTop: string = "0px";
public get showSpecial() : boolean {
+ return true; //COVID-19
+
let maxDate = new Date(2018,8,6); // September 6th 2018 -- Set the month one month behind since JavaScript dates are 0 based
let now = new Date();
if (now.getFullYear() > maxDate.getFullYear()) return false;
diff --git a/Client/src/app/components/live-stream/live-stream.component.css b/Client/src/app/components/live-stream/live-stream.component.css
index 0a0f280..f3db060 100644
--- a/Client/src/app/components/live-stream/live-stream.component.css
+++ b/Client/src/app/components/live-stream/live-stream.component.css
@@ -10,4 +10,8 @@
left: 0;
width: 100%;
height: 100%;
+}
+
+.opacity-zero {
+ opacity: 0;
}
\ No newline at end of file
diff --git a/Client/src/app/components/live-stream/live-stream.component.html b/Client/src/app/components/live-stream/live-stream.component.html
index ba1c230..22c185b 100644
--- a/Client/src/app/components/live-stream/live-stream.component.html
+++ b/Client/src/app/components/live-stream/live-stream.component.html
@@ -1,7 +1,8 @@