Skip to content

Commit

Permalink
Moved nav back to app.component and switched to routerLinks for true SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Plascencia committed Mar 1, 2018
1 parent 8d4075f commit 392c494
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 38 deletions.
29 changes: 16 additions & 13 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
<!-- <nav class="navbar navbar-expand-lg" id="homenav">
<a class="navbar-brand" href="#">SRSLY</a>
<nav class="navbar navbar-expand-lg" id="homenav">
<a class="navbar-brand" href="#" id="navbrand">
<i class="far fa-newspaper fa-2x"></i>
</a>
<a href="#"><span class="align-top" style="color:ivory">SRSLY</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/sources" style="padding-right:15px;">
<i class="fab fa-osi"></i>
Browse By Source
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)"><i class="far fa-question-circle"></i> About</a>
</li>
<li class="nav-item">
<a class="nav-link" routerLink="sources" style="padding-right:15px;">
<i class="fab fa-osi"></i>
Browse By Source
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" routerLink="about"><i class="far fa-question-circle"></i> About</a>
</li>
</ul>
</div>
</nav> -->
</nav>

<router-outlet></router-outlet>

Expand Down
25 changes: 0 additions & 25 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,6 @@
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg" id="homenav">
<a class="navbar-brand" href="#" id="navbrand">
<i class="far fa-newspaper fa-2x"></i>
</a>
<a href="#"><span class="align-top" style="color:ivory">SRSLY</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="sources" style="padding-right:15px;">
<i class="fab fa-osi"></i>
Browse By Source
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about"><i class="far fa-question-circle"></i> About</a>
</li>
</ul>
</div>
</nav>

<app-root></app-root>
</body>
</html>

0 comments on commit 392c494

Please sign in to comment.