WeatherDashboard/WeatherDashboard.Web/Views/Home/Index.cshtml

23 lines
713 B
Plaintext
Raw Normal View History

2023-02-10 03:33:02 +00:00
@model WeatherSet
@{
2023-02-09 02:30:14 +00:00
ViewData["Title"] = "Home Page";
}
2023-02-16 15:06:43 +00:00
<div class="location">
2023-02-23 15:44:52 +00:00
<div>@Model.Location.Name, @Model.Location.Region</div>
2023-02-16 15:06:43 +00:00
<small>Last updated on @Model.Current.LastUpdated</small>
2023-02-10 03:33:02 +00:00
</div>
2023-02-16 15:06:43 +00:00
<div class="current-conditions">
<div class="current-condition-name">@Model.Current.ConditionName</div>
2023-02-23 15:44:52 +00:00
<div class="current-temperature">@Model.Current.Temperature<span class="degrees">&#176;F</span></div>
2023-02-09 02:30:14 +00:00
</div>
2023-02-23 15:44:52 +00:00
@foreach (var forecast in Model.Forecast)
{
<div class="row">
<div class="col col-6">@forecast.Summary.ConditionName</div>
<div class="col col-3">@forecast.Summary.HighTemp</div>
<div class="col col-3">@forecast.Summary.LowTemp</div>
</div>
}