From f9ac4319aa4b1b07073b49952eacad3906a75200 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Tue, 25 Feb 2020 23:55:35 -0500 Subject: [PATCH] added update message --- src/app/app.component.html | 8 ++++- src/app/app.component.scss | 61 ++++++++++++++++++++++++++++++++++++++ src/app/app.component.ts | 2 ++ 3 files changed, 70 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 16efa9bc..2ec77419 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ -
@@ -10,6 +10,12 @@
+
+
+
A new version is available!
reload +
+
+ diff --git a/src/app/app.component.scss b/src/app/app.component.scss index 751d396b..0f48d425 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -97,4 +97,65 @@ app-streams-selection-footer { right: 0; bottom: 0; left: 50px; +} + +.auto-update { + transition: all .2s; + position: absolute; + height: 70px; + left: 0; + right: 0; + bottom: 0; + z-index: 999999999; + + + &__display { + position: relative; + // height: 30px; + width: 300px; + // margin: 0 auto 30px auto; + margin: auto; + border-radius: 2px; + color: rgba(rgb(0, 4, 24), 1); + background: rgba(rgb(0, 140, 255), 1); + + &--text { + display: inline-block; + padding: 5px 10px; + } + + &--reload { + transition: all .2s; + position: absolute; + right: 31px; + + padding: 5px 10px; + text-decoration: none; + color: rgba(rgb(0, 4, 24), 1); + background-color: red; + + &:hover { + background-color: rgb(97, 0, 0); + } + } + + &--close { + transition: all .2s; + position: absolute; + right: 0; + + display: inline-block; + padding: 5px 10px; + text-decoration: none; + border-top-right-radius: 2px; + border-bottom-right-radius: 2px; + + color: rgba(rgb(0, 4, 24), 1); + + background-color: red; + &:hover { + background-color: rgb(97, 0, 0); + } + } + } } \ No newline at end of file diff --git a/src/app/app.component.ts b/src/app/app.component.ts index d1b27196..d08db5f9 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -2,6 +2,7 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; import { Subscription, Observable, Subject } from 'rxjs'; import { debounceTime, map } from 'rxjs/operators'; import { Select } from '@ngxs/store'; +import { faTimes } from "@fortawesome/free-solid-svg-icons"; // import { ElectronService } from 'ngx-electron'; import { NavigationService, LeftPanelType, OpenLeftPanelEvent } from './services/navigation.service'; @@ -16,6 +17,7 @@ import { MediaService } from './services/media.service'; styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit, OnDestroy { + faTimes = faTimes; title = 'Sengi'; floatingColumnActive: boolean; tutorialActive: boolean;