Skip to content

Commit

Permalink
add WeatherDetail and inline z-index style (not needed for instructio…
Browse files Browse the repository at this point in the history
…nal commit)
  • Loading branch information
JByfordRew committed Apr 4, 2022
1 parent bfd0a36 commit ec36bb8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ else
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th>Summary</th>
<th>Detail</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
{
var detailUrl = $"weatherdetail/{forecast.Date.ToString("yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)}/{forecast.TemperatureC}/{forecast.Summary}";
<tr>
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
<td>@forecast.Summary</td>
<td><NavLink href=@detailUrl>Detail</NavLink></td>
</tr>
}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@page "/weatherdetail/{Date}/{Temp}/{Summary}"

<h3>WeatherDetail</h3>

<p>Date: @Date</p>
<p>Temp: @Temp</p>
<p>Summary: @Summary</p>

@code {
[Parameter]
public string Date { get; set; }

[Parameter]
public string Temp { get; set; }

[Parameter]
public string Summary { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<PageTitle>BlazorTransitionableRouteDemoServer</PageTitle>

<div class="page">
<div class="sidebar">
<div class="sidebar" style="z-index: 9999;">
<NavMenu />
</div>

<main>
<div class="top-row px-4 auth">
<div class="top-row px-4 auth" style="z-index: 9999;">
<LoginDisplay />
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>
Expand Down

0 comments on commit ec36bb8

Please sign in to comment.