Skip to content

Commit

Permalink
Root navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-random committed Feb 25, 2023
1 parent 420b7c0 commit 6715114
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
/* AppComponent's private CSS styles */
nav {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f4f4f4;
}

h1 {
margin-bottom: 0;
margin: 0;
}
nav a {
padding: 1rem;
text-decoration: none;
margin-top: 10px;
display: inline-block;
background-color: #e8e8e8;
color: #3d3d3d;
Expand Down
8 changes: 5 additions & 3 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<h1>{{title}}</h1>
<nav>
<a routerLink="/dashboard">Dashboard</a>
<a routerLink="/heroes">Heroes</a>
<h1>{{title}}</h1>
<div class="links">
<a routerLink="/dashboard">Dashboard</a>
<a routerLink="/heroes">Heroes</a>
</div>
</nav>
<router-outlet></router-outlet>
<app-messages></app-messages>

0 comments on commit 6715114

Please sign in to comment.