diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 6f2d0cad06..2f3de1c54b 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -1,6 +1,6 @@ - + @@ -10,7 +10,7 @@ - + diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index b5003d5996..b24797baa0 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -11,6 +11,7 @@ import { SearchService, QueryResults } from 'app/search/search.service'; }) export class AppComponent implements OnInit { readonly sideBySideWidth = 600; + readonly homeImageUrl = 'assets/images/logos/angular2/angular_solidBlack.svg'; isHamburgerVisible = true; // always ... for now isSideBySide = false; diff --git a/aio/src/app/layout/top-menu/top-menu.component.ts b/aio/src/app/layout/top-menu/top-menu.component.ts index 09fc2cf437..e9f83ad5af 100644 --- a/aio/src/app/layout/top-menu/top-menu.component.ts +++ b/aio/src/app/layout/top-menu/top-menu.component.ts @@ -3,7 +3,9 @@ import { NavigationNode } from 'app/navigation/navigation.service'; @Component({ selector: 'aio-top-menu', - template: `{{ node.title }}`, + template: ` + Home + {{ node.title }}`, styles: [` .fill-remaining-space { flex: 1 1 auto; @@ -15,6 +17,13 @@ import { NavigationNode } from 'app/navigation/navigation.service'; cursor: pointer; } + .nav-link.home img { + position: relative; + margin-top: -15px; + top: 12px; + height: 36px; + } + @media (max-width: 700px) { .nav-link { margin-right: 8px; @@ -33,4 +42,7 @@ import { NavigationNode } from 'app/navigation/navigation.service'; export class TopMenuComponent { @Input() nodes: NavigationNode[]; + + @Input() + homeImageUrl: string; } diff --git a/aio/src/content/navigation.json b/aio/src/content/navigation.json index 1e00548e7e..23d34ea550 100644 --- a/aio/src/content/navigation.json +++ b/aio/src/content/navigation.json @@ -1,9 +1,5 @@ { "TopBar": [ - { - "url": "/", - "title": "Home" - }, { "url": "api", "title": "API"