first site, and add navbar

This commit is contained in:
danielvici123
2025-11-14 21:27:05 +01:00
parent 87b71d96bc
commit ab780e788c
18 changed files with 711 additions and 354 deletions

View File

View File

@@ -0,0 +1,12 @@
<nav class="h-16 bg-blue-marian">
<div class="flex justify-between items-center px-4 bg-blue-marian text-white container mx-auto h-full">
<div class="flex items-center h-full">
<span class="font-bold text-xl">Home</span>
</div>
<div class="flex flex-row space-x-4 gap-6">
<a class="hover:text-blue-200" routerLink="/coming-soon" routerLinkActive="active-link">Coming Soon</a>
<a class="hover:text-blue-200" routerLink="/changelog" routerLinkActive="active-link">Changelog</a>
<a class="hover:text-blue-200" routerLink="/about" routerLinkActive="active-link">About</a>
</div>
</div>
</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;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,17 @@
import { Component } from '@angular/core';
import {RouterLink, RouterLinkActive} from '@angular/router';
import {NgOptimizedImage} from '@angular/common';
@Component({
selector: 'app-navbar',
imports: [
RouterLinkActive,
RouterLink,
NgOptimizedImage
],
templateUrl: './navbar.html',
styleUrl: './navbar.css',
})
export class Navbar {
}