Fixup coords and icon height
This commit is contained in:
Родитель
a1f692fa97
Коммит
1e9db5f779
|
@ -9,7 +9,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWeather.Maui.WinUI3",
|
||||||
EndProject
|
EndProject
|
||||||
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "BlazorWeather.Maui.WinUI3 (Package)", "BlazorWeather.Maui.WinUI3 (Package)\BlazorWeather.Maui.WinUI3 (Package).wapproj", "{A88FCF8C-EC35-4623-B126-C591EEF99C70}"
|
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "BlazorWeather.Maui.WinUI3 (Package)", "BlazorWeather.Maui.WinUI3 (Package)\BlazorWeather.Maui.WinUI3 (Package).wapproj", "{A88FCF8C-EC35-4623-B126-C591EEF99C70}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "native", "native", "{C2147996-A910-4375-9ED1-3EF5C744D6EF}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "desktop", "desktop", "{C2147996-A910-4375-9ED1-3EF5C744D6EF}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeatherClient", "WeatherClient\WeatherClient.csproj", "{4464A83F-1E70-4372-A620-0E4FA3DF5CFE}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeatherClient", "WeatherClient\WeatherClient.csproj", "{4464A83F-1E70-4372-A620-0E4FA3DF5CFE}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="flex flex-col w-16 mr-2 flex-shrink-0 items-center">
|
<div class="flex flex-col w-16 mr-2 flex-shrink-0 items-center">
|
||||||
<div class="text-sm">@forecast.DateTime.DayOfWeek.ToString().First()</div>
|
<div class="text-sm">@forecast.DateTime.DayOfWeek.ToString().First()</div>
|
||||||
<div class="text-sm">@forecast.DateTime.Day</div>
|
<div class="text-sm">@forecast.DateTime.Day</div>
|
||||||
<img class="w-4 m-2" src="@forecast.GetIconUrl()" />
|
<img class="w-4 h-4 m-2" src="@forecast.GetIconUrl()" />
|
||||||
<div class="pl-1 text-sm mt-3">@DH.DisplayTemp(max)</div>
|
<div class="pl-1 text-sm mt-3">@DH.DisplayTemp(max)</div>
|
||||||
<div class="h-28 py-2 flex">
|
<div class="h-28 py-2 flex">
|
||||||
<div style="height: @(BarHeight(forecast.Temperature))" class="w-2 temperature-gradient mt-auto"></div>
|
<div style="height: @(BarHeight(forecast.Temperature))" class="w-2 temperature-gradient mt-auto"></div>
|
||||||
|
|
|
@ -28,7 +28,8 @@ namespace BlazorWeather
|
||||||
{ "Clouds and sun", "partly-cloudy" },
|
{ "Clouds and sun", "partly-cloudy" },
|
||||||
{ "Overcast", "partly-cloudy" },
|
{ "Overcast", "partly-cloudy" },
|
||||||
{ "Rain", "showers"},
|
{ "Rain", "showers"},
|
||||||
{ "Partly sunny w/ showers", "showers" }
|
{ "Partly sunny w/ showers", "showers" },
|
||||||
|
{ "Mostly cloudy w/ showers", "showers" }
|
||||||
};
|
};
|
||||||
|
|
||||||
static Dictionary<string, string> IconDataUrls = new()
|
static Dictionary<string, string> IconDataUrls = new()
|
||||||
|
|
|
@ -12,20 +12,20 @@ namespace WeatherClient
|
||||||
{
|
{
|
||||||
static List<Location> locations = new()
|
static List<Location> locations = new()
|
||||||
{
|
{
|
||||||
new Location { Name = "Redmond", Country = "USA", Coordinate = new Coordinate(47.6740, 122.1215) },
|
new Location { Name = "Redmond", Country = "USA", Coordinate = new Coordinate(47.6740, -122.1215) },
|
||||||
new Location { Name = "St. Louis", Country = "USA", Coordinate = new Coordinate(38.6270, 90.1994) },
|
new Location { Name = "St. Louis", Country = "USA", Coordinate = new Coordinate(38.6270, -90.1994) },
|
||||||
new Location { Name = "Boston", Country = "USA", Coordinate = new Coordinate(42.3601, 71.0589) },
|
new Location { Name = "Boston", Country = "USA", Coordinate = new Coordinate(42.3601, -71.0589) },
|
||||||
new Location { Name = "NYC", Country = "USA", Coordinate = new Coordinate(40.7128, 74.0060) },
|
new Location { Name = "NYC", Country = "USA", Coordinate = new Coordinate(40.7128, -74.0060) },
|
||||||
new Location { Name = "Amsterdam", Country = "Netherlands", Coordinate = new Coordinate(52.3676, 4.9041) },
|
new Location { Name = "Amsterdam", Country = "Netherlands", Coordinate = new Coordinate(52.3676, 4.9041) },
|
||||||
new Location { Name = "Seoul", Country = "South Korea", Coordinate = new Coordinate(37.5665, 126.9780) },
|
new Location { Name = "Seoul", Country = "South Korea", Coordinate = new Coordinate(37.5665, 126.9780) },
|
||||||
new Location { Name = "Johannesburg", Country = "South Africa", Coordinate = new Coordinate(26.2041, 28.0473) },
|
new Location { Name = "Johannesburg", Country = "South Africa", Coordinate = new Coordinate(-26.2041, 28.0473) },
|
||||||
new Location { Name = "Rio de Janeiro", Country = "Brazil", Coordinate = new Coordinate(22.9068, 43.1729) },
|
new Location { Name = "Rio de Janeiro", Country = "Brazil", Coordinate = new Coordinate(-22.9068, -43.1729) },
|
||||||
new Location { Name = "Madrid", Country = "Spain", Coordinate = new Coordinate(40.4168, 3.7038) },
|
new Location { Name = "Madrid", Country = "Spain", Coordinate = new Coordinate(40.4168, -3.7038) },
|
||||||
new Location { Name = "Buenos Aires", Country = "Argentina", Coordinate = new Coordinate(34.6037, 58.3816) },
|
new Location { Name = "Buenos Aires", Country = "Argentina", Coordinate = new Coordinate(-34.6037, -58.3816) },
|
||||||
new Location { Name = "Punta Cana", Country = "Dominican Republic", Coordinate = new Coordinate(18.5601, 68.3725) },
|
new Location { Name = "Punta Cana", Country = "Dominican Republic", Coordinate = new Coordinate(18.5601, -68.3725) },
|
||||||
new Location { Name = "Hyderabad", Country = "India", Coordinate = new Coordinate(17.3850, 78.4867) },
|
new Location { Name = "Hyderabad", Country = "India", Coordinate = new Coordinate(17.3850, 78.4867) },
|
||||||
new Location { Name = "San Francisco", Country = "USA", Coordinate = new Coordinate(37.7749, 122.4194) },
|
new Location { Name = "San Francisco", Country = "USA", Coordinate = new Coordinate(37.7749, -122.4194) },
|
||||||
new Location { Name = "Nairobi", Country = "Kenya", Coordinate = new Coordinate(1.2921, 36.8219) },
|
new Location { Name = "Nairobi", Country = "Kenya", Coordinate = new Coordinate(-1.2921, 36.8219) },
|
||||||
new Location { Name = "Lagos", Country = "Nigeria", Coordinate = new Coordinate(6.5244, 3.3792) }
|
new Location { Name = "Lagos", Country = "Nigeria", Coordinate = new Coordinate(6.5244, 3.3792) }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче