Skip to content

Commit

Permalink
🚀 [Code] Updated the functionalities to .NET 8 c2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmonettelli committed Mar 6, 2024
1 parent 5caa22a commit 196a33d
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 30 deletions.
Binary file removed Assets/SentryMAUI_Part1.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part2.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part3.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part4.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part5.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part6.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part7.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part8.png
Binary file not shown.
Binary file removed Assets/SentryMAUI_Part9.png
Binary file not shown.
2 changes: 2 additions & 0 deletions Mitawi/Mitawi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<None Remove="Resources\Images\svg_circle_arrow_backward_outline.svg" />
<None Remove="Resources\Images\svg_humidity_solid.svg" />
<None Remove="Resources\Images\svg_main_list_outline.svg" />
<None Remove="Resources\Images\weather.png" />
</ItemGroup>

<ItemGroup>
Expand All @@ -76,6 +77,7 @@
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="OnScreenSizeMarkup.Maui" Version="3.0.18" />
</ItemGroup>

<ItemGroup>
Expand Down
Binary file added Mitawi/Resources/Images/weather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion Mitawi/Views/Orientations/HomePageOrientation.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
x:Class="Mitawi.Views.HomePageOrientation"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:markups="clr-namespace:OnScreenSizeMarkup.Maui;assembly=OnScreenSizeMarkup.Maui"
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit">

<Style
Expand Down Expand Up @@ -374,7 +375,17 @@

<VisualState x:Name="Landscape">
<VisualState.Setters>
<Setter Property="MaxColumns" Value="2" />
<Setter Property="MaxColumns">
<Setter.Value>
<markups:OnScreenSize
Default="3"
ExtraLarge="5"
ExtraSmall="1"
Large="3"
Medium="2"
Small="1" />
</Setter.Value>
</Setter>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
Expand Down
63 changes: 56 additions & 7 deletions Mitawi/Views/WelcomePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,62 @@
xmlns:viewModel="clr-namespace:Mitawi.ViewModels"
x:DataType="viewModel:WelcomeViewModel"
Shell.NavBarIsVisible="False">
<VerticalStackLayout
HorizontalOptions="Center"
VerticalOptions="Center">

<Grid RowDefinitions="50, Auto, Auto, *, Auto, Auto, 34, Auto, 50">
<Grid.Background>
<LinearGradientBrush EndPoint="0,1">
<GradientStop Offset="0" Color="{StaticResource col_prim}" />
<GradientStop Offset="0.5" Color="{StaticResource col_sec}" />
</LinearGradientBrush>
</Grid.Background>

<Label
Grid.Row="1"
FontFamily="Roboto#500"
FontSize="28"
HorizontalTextAlignment="Center"
Text="Discover The"
TextColor="White" />

<Label
Grid.Row="2"
FontFamily="Roboto#500"
FontSize="28"
HorizontalTextAlignment="Center"
Text="Weather In Your City"
TextColor="White" />

<Image
Grid.Row="3"
Margin="20,0"
Source="weather.png" />

<Label
Grid.Row="4"
FontFamily="Roboto#400"
FontSize="16"
HorizontalTextAlignment="Center"
Text="Get to know your weather maps and"
TextColor="White" />

<Label
Grid.Row="5"
FontFamily="Roboto#400"
FontSize="16"
HorizontalTextAlignment="Center"
Text="radar precipitation forcast"
TextColor="White" />

<Button
Grid.Row="7"
BackgroundColor="White"
Command="{Binding NextPageCommand}"
HorizontalOptions="Center"
Text="Next page"
VerticalOptions="Center" />
</VerticalStackLayout>
CornerRadius="16"
FontFamily="Roboto#700"
FontSize="18"
HeightRequest="50"
Text="GET STARTED"
TextColor="{StaticResource col_sec}"
WidthRequest="255" />
</Grid>
</ContentPage>
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,6 @@ Add your **API key**, and voila, you can run the app.

[![OpenWeather Part5](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/OpenWeather_Part5.jpg)](#OpenWeather-Part5)

## Steps to generate the Sentry.Maui DSN

Guide through the documentation https://docs.sentry.io/platforms/dotnet/guides/maui/.

[![SentryMAUI Part1](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part1.png)](#SentryMAUI-Part1)

[![SentryMAUI Part2](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part2.png)](#SentryMAUI-Part2)

[![SentryMAUI Part3](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part3.png)](#SentryMAUI-Part3)

[![SentryMAUI Part4](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part4.png)](#SentryMAUI-Part4)

[![SentryMAUI Part5](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part5.png)](#SentryMAUI-Part5)

[![SentryMAUI Part6](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part6.png)](#SentryMAUI-Part6)

[![SentryMAUI Part7](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part7.png)](#SentryMAUI-Part7)

[![SentryMAUI Part9](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part9.png)](#SentryMAUI-Part9)

[![SentryMAUI Part8](https://raw.githubusercontent.com/danielmonettelli/netmaui-mitawi-app-challenge/main/Assets/SentryMAUI_Part8.png)](#SentryMAUI-Part8)

## Open Source ❤

- All my contributions are open source, with the purpose of providing a grain of knowledge to the Xamarin Community and .NET MAUI Community.
Expand Down

0 comments on commit 196a33d

Please sign in to comment.