Skip to content

Commit d81b601

Browse files
committed
add back homepage
1 parent 6c4dd10 commit d81b601

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import { Component } from '@angular/core';
77
standalone: false
88
})
99
export class AppComponent {
10-
title = 'app';
10+
title = 'Text Compare';
1111
}

src/app/app.route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { HomeComponent } from './home/home.component';
55
import { CompareEditorComponent } from './compare-editor/compare-editor.component';
66

77
export const appRoutes: Routes = [
8-
{ path: '', component: CompareEditorComponent },
8+
{ path: '', component: HomeComponent },
99
{ path: 'home', component: HomeComponent },
1010
{ path: 'textcompare', component: CompareEditorComponent },
1111
// otherwise redirect to home

src/app/compare-editor/compare-editor.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="text-center">
33
<h1>Text Compare</h1>
44
<p>
5-
Built with <a href="https://angular.io/">Angular</a> and
5+
Built with <a href="https://angular.dev/">Angular</a> and
66
<a href="https://microsoft.github.io/monaco-editor"
77
>Monaco Editor</a
88
>

src/app/header/header.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<!-- Links -->
33
<ul class="navbar-nav">
44
<li [ngClass]="{ 'nav-item': true, active: router.url === '/' }">
5-
<a class="nav-link nav-home" routerLink="/">Text Compare</a>
5+
<a class="nav-link nav-home" routerLink="/">Home</a>
6+
</li>
7+
<li [ngClass]="{ 'nav-item': true, active: router.url === '/textcompare' }">
8+
<a class="nav-link nav-home" routerLink="/textcompare">Text Compare</a>
69
</li>
710
</ul>
811
<span class="badge badge-success" *ngIf="envName">

src/app/home/home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="jumbotron text-center">
22
<h1> Angular - Text Compare Tool</h1>
3-
<p>Built with <a href="https://angular.io/">Angular</a> and <a href="https://microsoft.github.io/monaco-editor">Monaco Editor</a></p>
3+
<p>Built with <a href="https://angular.dev/">Angular</a> and <a href="https://microsoft.github.io/monaco-editor">Monaco Editor</a></p>
44
</div>

0 commit comments

Comments
 (0)