[A] menu toggle in navbar, favicon

This commit is contained in:
Jan 2020-10-30 19:30:04 +01:00
parent 4cc60b3755
commit 5397a34353
6 changed files with 22 additions and 10 deletions

View file

@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { ChannelService } from './channel.service';
describe('ChannelService', () => {
let service: ChannelService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ChannelService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View file

@ -1,10 +1,11 @@
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#" style="margin: 0 auto;">ASYNC HUDDLE</a>
<span *ngIf="supa.user | async" (click)="menuHidden ? menuHidden = false : menuHidden = true" title="Toggle menu." class="cursor-pointer">M</span>
<a class="navbar-brand cursor-pointer" href="#" style="margin: 0 auto;"><strong>A</strong><small>SYNC</small><strong>H</strong><small>UDDLE</small></a>
<span *ngIf="supa.user | async" (click)="logout()" class="cursor-pointer">Logout</span>
</nav>
<div class="container-fluid p-0">
<div class="myContainer d-flex">
<div *ngIf="supa.user | async" class="menu">
<div *ngIf="supa.user | async" class="menu" [ngStyle]="{display: menuHidden ? 'none' : 'block'}">
<app-sidebar></app-sidebar>
</div>
<div class="container content">

View file

@ -10,6 +10,7 @@ import { SupaService } from './api/supabase/supa.service';
})
export class AppComponent implements OnInit {
user: SupabaseAuthUser;
menuHidden: boolean = false;
constructor(
public supa: SupaService,

BIN
src/assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -2,17 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Angular</title>
<title>ASYNC HUDDLE</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!-- <link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/> -->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
</head>
<body>