Started making global navbar component

This commit is contained in:
Marta Borgia Leiva 2026-02-09 20:19:05 +01:00
parent bff5e1dcf7
commit 32891140e2
Signed by: a-mayb3
GPG key ID: 293AAC4FED165CE3
4 changed files with 56 additions and 0 deletions

15
src/app/navbar/navbar.css Normal file
View 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;
}

View file

@ -0,0 +1,4 @@
<nav class="navbar">
<span class="navbar-title">KanbanCloneAngular</span>
</nav>

View 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
View 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);
}