Replace "About" with "Counter". Move navigation links into NavMenu. Doesn't highlight active page yet though.

This commit is contained in:
Steve Sanderson 2018-02-20 14:51:22 +00:00
parent 7370d748c6
commit fd5875c5e7
4 changed files with 20 additions and 8 deletions

View File

@ -1,5 +0,0 @@
<h1>About</h1>
Some content goes here.
<a href="/">Home</a>

View File

@ -0,0 +1,14 @@
<h1>Counter</h1>
<p>Current count: @currentCount</p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
currentCount++;
}
}

View File

@ -1,5 +1,3 @@
<h1>Hello, world!</h1>
Welcome to your new app.
<a href="/about">About</a>

View File

@ -13,10 +13,15 @@
<div class='navbar-collapse collapse'>
<ul class='nav navbar-nav'>
<li>
<a class='active' href='#'>
<a href='/'>
<span class='glyphicon glyphicon-home'></span> Home
</a>
</li>
<li>
<a href='/counter'>
<span class='glyphicon glyphicon-education'></span> Counter
</a>
</li>
</ul>
</div>
</div>