Skip to content

Commit

Permalink
increased page linking
Browse files Browse the repository at this point in the history
  • Loading branch information
MrImmortal09 committed Feb 19, 2024
1 parent c19376e commit 60abd61
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
32 changes: 17 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions src/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router'; // Import essential Router module
import { RouterLink, RouterOutlet } from '@angular/router';
import { AboutUsComponent } from '../about-us/about-us.component';

@Component({
selector: 'app-footer',
standalone: true,
imports: [],
imports: [
AboutUsComponent,
RouterLink,
RouterOutlet,
],
template: `
<!-- footer.component.html -->
<!-- footer.component.html -->
<footer class="bg-blue-800 text-white py-6">
<div class="md:flex-row justify-between items-center">
<div class="flex flex-wrap items-center justify-center"> <!-- Updated -->
<div class="mx-4 ">
<a href="#" class="text-gray-300 hover:text-white">Home</a>
<a routerLink="/" class="text-gray-300 hover:text-white">Home</a>
</div>
<div class="mx-4">
<a href="#" class="text-gray-300 hover:text-white">About</a>
Expand All @@ -20,7 +27,7 @@ import { Component } from '@angular/core';
<a href="#" class="text-gray-300 hover:text-white">Services</a>
</div>
<div class="mx-4 ">
<a href="#" class="text-gray-300 hover:text-white">Contact</a>
<a routerLink="/contact_us" class="text-gray-300 hover:text-white">Contact</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/nav-bar/nav-bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { RouterLink, RouterOutlet } from '@angular/router';
</div>
</div>
<div class="navbar-center">
<a class="btn btn-ghost text-xl">Generosity</a>
<a routerLink="/" class="btn btn-ghost text-xl">Generosity</a>
</div>
<div class="navbar-end">
<button class="btn btn-ghost btn-circle">
Expand Down

0 comments on commit 60abd61

Please sign in to comment.