setup header, navigation and footer of app
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<div class="app">
|
<div class="app">
|
||||||
<kontor-header />
|
<kontor-header />
|
||||||
|
<app-navigation/>
|
||||||
<main>
|
<main>
|
||||||
<router-outlet />
|
<router-outlet />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -2,10 +2,11 @@ import { Component } from '@angular/core';
|
|||||||
import { RouterOutlet } from '@angular/router';
|
import { RouterOutlet } from '@angular/router';
|
||||||
import { KontorHeaderComponent } from "./kontor/header/header.component";
|
import { KontorHeaderComponent } from "./kontor/header/header.component";
|
||||||
import { KontorFooterComponent } from './kontor/footer/footer.component';
|
import { KontorFooterComponent } from './kontor/footer/footer.component';
|
||||||
|
import { NavigationComponent } from "./kontor/navigation/navigation.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet, KontorHeaderComponent, KontorFooterComponent],
|
imports: [RouterOutlet, KontorHeaderComponent, KontorFooterComponent, NavigationComponent],
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrl: './app.component.css'
|
styleUrl: './app.component.css'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
/* Footer */
|
/* Footer */
|
||||||
a {
|
.footer {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #ddd;
|
background-color: lightblue;
|
||||||
margin-top: 20px;
|
}
|
||||||
|
|
||||||
|
.footer a {
|
||||||
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<div>
|
<footer class="footer">
|
||||||
<a href="{{ footerUrl }}">{{ footerLink }}</a>
|
<a href="{{ footerUrl }}">{{ footerLink }}</a>
|
||||||
</div>
|
</footer>
|
||||||
@@ -9,5 +9,4 @@ import { Component } from '@angular/core';
|
|||||||
export class KontorFooterComponent {
|
export class KontorFooterComponent {
|
||||||
footerUrl = "https://kontor.thpeetz.de";
|
footerUrl = "https://kontor.thpeetz.de";
|
||||||
footerLink = "kontor.thpeetz.de";
|
footerLink = "kontor.thpeetz.de";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,18 +2,4 @@
|
|||||||
<section>
|
<section>
|
||||||
<h1>{{ title() }}</h1>
|
<h1>{{ title() }}</h1>
|
||||||
</section>
|
</section>
|
||||||
<!-- <nav>
|
|
||||||
<ul>
|
|
||||||
<li><a routerLink="/">Kontor</a></li>
|
|
||||||
<li><a routerLink="/comic">Comics</a></li>
|
|
||||||
<li><a routerLink="/tysc">TradeYourSportsCards</a></li>
|
|
||||||
<li><a routerLink="/media">Media</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav> -->
|
|
||||||
</header>
|
</header>
|
||||||
<div class="topnav">
|
|
||||||
<a routerLink="/" routerLinkActive="active">Kontor</a>
|
|
||||||
<a routerLink="/comic" routerLinkActive="active">Comics</a>
|
|
||||||
<a routerLink="/tysc" routerLinkActive="active">TradeYourSportsCards</a>
|
|
||||||
<a routerLink="/media" routerLinkActive="active">Media</a>
|
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<div class="topnav">
|
||||||
|
<a routerLink="/" >Kontor</a>
|
||||||
|
<a routerLink="/comic" routerLinkActive="active">Comics</a>
|
||||||
|
<a routerLink="/tysc" routerLinkActive="active">TradeYourSportsCards</a>
|
||||||
|
<a routerLink="/media" routerLinkActive="active">Media</a>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { NavigationComponent } from './navigation.component';
|
||||||
|
|
||||||
|
describe('NavigationComponent', () => {
|
||||||
|
let component: NavigationComponent;
|
||||||
|
let fixture: ComponentFixture<NavigationComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [NavigationComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(NavigationComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { RouterLink, RouterLinkActive } from '@angular/router';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-navigation',
|
||||||
|
imports: [RouterLink, RouterLinkActive],
|
||||||
|
templateUrl: './navigation.component.html',
|
||||||
|
styleUrl: './navigation.component.css'
|
||||||
|
})
|
||||||
|
export class NavigationComponent {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user