mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 18:05:38 +01:00
Started making global navbar component
This commit is contained in:
parent
bff5e1dcf7
commit
32891140e2
4 changed files with 56 additions and 0 deletions
15
src/app/navbar/navbar.css
Normal file
15
src/app/navbar/navbar.css
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
nav .navbar {
|
||||
width: 100%;
|
||||
height: max-content;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
padding: 1.5rem;
|
||||
|
||||
}
|
||||
|
||||
span .navbar-title {
|
||||
display: block;
|
||||
}
|
||||
4
src/app/navbar/navbar.html
Normal file
4
src/app/navbar/navbar.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<nav class="navbar">
|
||||
<span class="navbar-title">KanbanCloneAngular</span>
|
||||
|
||||
</nav>
|
||||
23
src/app/navbar/navbar.spec.ts
Normal file
23
src/app/navbar/navbar.spec.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { Navbar } from './navbar';
|
||||
|
||||
describe('Navbar', () => {
|
||||
let component: Navbar;
|
||||
let fixture: ComponentFixture<Navbar>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [Navbar]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(Navbar);
|
||||
component = fixture.componentInstance;
|
||||
await fixture.whenStable();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
14
src/app/navbar/navbar.ts
Normal file
14
src/app/navbar/navbar.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { Component, inject } from '@angular/core';
|
||||
import { AuthService } from '../services/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-navbar',
|
||||
imports: [],
|
||||
templateUrl: './navbar.html',
|
||||
styleUrl: './navbar.css',
|
||||
})
|
||||
export class Navbar {
|
||||
protected authService = inject(AuthService);
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue