Move online status tracker to sidebar.

This commit is contained in:
Spencer Ofwiti 2021-05-26 13:06:18 +03:00
parent 228bca564e
commit cfe558cccf
6 changed files with 18 additions and 15 deletions

View File

@ -1,2 +1 @@
<app-network-status></app-network-status>
<router-outlet (activate)="onResize(mediaQuery)"></router-outlet> <router-outlet (activate)="onResize(mediaQuery)"></router-outlet>

View File

@ -1,8 +1,9 @@
<app-network-status></app-network-status>
<div class="container"> <div class="container">
<div class="row justify-content-center mt-5 mb-5"> <div class="row justify-content-center mt-5 mb-5">
<div class="col-lg-6 col-md-8 col-sm-10"> <div class="col-lg-6 col-md-8 col-sm-10">
<div class="card"> <div class="card">
<mat-card-title class="card-header pt-4 pb-4 text-center bg-dark"> <mat-card-title class="card-header pt-4 pb-4 text-center background-dark">
<a routerLink="/"> <a routerLink="/">
<h1 class="text-white">CICADA</h1> <h1 class="text-white">CICADA</h1>
</a> </a>

View File

@ -10,18 +10,20 @@ import { MatSelectModule } from '@angular/material/select';
import { MatInputModule } from '@angular/material/input'; import { MatInputModule } from '@angular/material/input';
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button';
import { MatRippleModule } from '@angular/material/core'; import { MatRippleModule } from '@angular/material/core';
import {SharedModule} from '@app/shared/shared.module';
@NgModule({ @NgModule({
declarations: [AuthComponent, PasswordToggleDirective], declarations: [AuthComponent, PasswordToggleDirective],
imports: [ imports: [
CommonModule, CommonModule,
AuthRoutingModule, AuthRoutingModule,
ReactiveFormsModule, ReactiveFormsModule,
MatCardModule, MatCardModule,
MatSelectModule, MatSelectModule,
MatInputModule, MatInputModule,
MatButtonModule, MatButtonModule,
MatRippleModule, MatRippleModule,
], SharedModule,
],
}) })
export class AuthModule {} export class AuthModule {}

View File

@ -1,4 +1,4 @@
<nav class="navbar navbar-dark bg-dark"> <nav class="navbar navbar-dark background-dark">
<h1 class="navbar-brand"> <h1 class="navbar-brand">
<div *ngIf="noInternetConnection; then offlineBlock else onlineBlock"></div> <div *ngIf="noInternetConnection; then offlineBlock else onlineBlock"></div>
<ng-template #offlineBlock> <ng-template #offlineBlock>

View File

@ -1,5 +1,6 @@
<!-- ========== Left Sidebar Start ========== --> <!-- ========== Left Sidebar Start ========== -->
<div id="sidebar"> <div id="sidebar">
<app-network-status></app-network-status>
<nav> <nav>
<div class="sidebar-header"> <div class="sidebar-header">

View File

@ -18,8 +18,8 @@ body {
background: #fafafa; background: #fafafa;
} }
.bg-dark { .background-dark {
background: #313a46; background: #313a46 !important;
} }
p { p {