-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainPage.xaml
252 lines (225 loc) · 15.2 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pm="clr-namespace:PersonalFinance.PageModels"
xmlns:theme="clr-namespace:ThemeGallery"
xmlns:sh="clr-namespace:Sharpnado.Shades;assembly=Sharpnado.Shadows"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
xmlns:sys="clr-namespace:System;assembly=netstandard"
ios:Page.PrefersHomeIndicatorAutoHidden="True"
Shell.BackgroundColor="{AppThemeBinding Light=White, Dark=Black}"
Shell.ForegroundColor="{AppThemeBinding Light=Black, Dark=White}"
Shell.NavBarHasShadow="False"
x:Class="PersonalFinance.Pages.MainPage">
<ContentPage.BindingContext>
<pm:MainPageModel />
</ContentPage.BindingContext>
<ContentPage.Resources>
<Color x:Key="DarkBlue">#0091FF</Color>
<Color x:Key="LightBlue">#32C5FF</Color>
<Color x:Key="VeryLightBlue">#440596FF</Color>
<Color x:Key="DarkGreen">#6DD400</Color>
<Color x:Key="LightGreen">#44D7B6</Color>
<LinearGradientBrush x:Key="BlueGradient" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="{StaticResource DarkBlue}" Offset="0.5" />
<GradientStop Color="{StaticResource LightBlue}" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="GreenGradient" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="{StaticResource DarkGreen}" Offset="0.0" />
<GradientStop Color="{StaticResource LightGreen}" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="NewBlueGradient" StartPoint="0,0"
EndPoint="1,1">
<GradientStop Color="Aqua" Offset="0.1"/>
<GradientStop Color="Blue" Offset="1.0"/>
</LinearGradientBrush>
<Style TargetType="Frame">
<Setter Property="HasShadow" Value="False" />
<Setter Property="CornerRadius" Value="20" />
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light=White, Dark=#333333}" />
</Style>
<RoundRectangleGeometry x:Key="PhotoRect" CornerRadius="8" Rect="0,0,44,44" />
</ContentPage.Resources>
<Shell.TitleView>
<Grid ColumnDefinitions="*,Auto,15,44,0">
<!-- make this a circle image -->
<Image Grid.Column="3"
VerticalOptions="Center"
Source="https://devblogs.microsoft.com/xamarin/wp-content/uploads/sites/44/2019/03/Screen-Shot-2017-01-03-at-3.35.53-PM.png">
<Image.Clip>
<EllipseGeometry RadiusX="22" RadiusY="22" Center="22,22"/>
</Image.Clip>
</Image>
<Label Grid.Column="1" VerticalOptions="Center"
Text="{x:Static theme:IconFont.Lightbulb}"
FontSize="22"
FontFamily="FontAwesome">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
</Label.GestureRecognizers>
</Label>
</Grid>
</Shell.TitleView>
<ScrollView>
<Grid Padding="15" RowDefinitions="80,44,240,120,140,300,*" IsClippedToBounds="False">
<StackLayout Orientation="Vertical">
<Label Text="¡Buenos días!" FontFamily="Product" FontSize="18" />
<Label Text="David Ortinau" FontFamily="Product" FontAttributes="Bold" FontSize="32" />
</StackLayout>
<Button Grid.Row="1" HorizontalOptions="End" VerticalOptions="Center" HeightRequest="44" WidthRequest="44"
BorderWidth="0" TextColor="White" FontSize="24"
Background="{StaticResource NewBlueGradient}"
Visual="Default"
Padding="0" CornerRadius="{OnPlatform Android=8, Default=8}" Text="{x:Static theme:IconFont.Plus}"
FontFamily="FontAwesome" />
<Label Grid.Row="1" VerticalOptions="Center" Text="Tus tarjetas" FontFamily="Product" FontAttributes="Bold" FontSize="22" />
<ScrollView Orientation="Horizontal" Grid.Row="2" Margin="-15,0,-15,0" IsClippedToBounds="False">
<FlexLayout Padding="9" Margin="10,0,0,0" IsClippedToBounds="False">
<FlexLayout.Resources>
<StyleSheet>
<![CDATA[
Frame {
height: 190;
width: 260;
margin-right:20;
}
Label {
color: white;
}
]]>
</StyleSheet>
</FlexLayout.Resources>
<sh:Shadows CornerRadius="20" HeightRequest="190" Shades="{sh:SingleShade Offset='0, 20',
BlurRadius=40,
Opacity=0.35,
Color='#000000'}">
<Frame Background="{StaticResource NewBlueGradient}">
<Grid RowDefinitions="30,*,15,20" ColumnDefinitions="*,60">
<Label Grid.Row="0" Grid.Column="0" FontFamily="Norwester" Text="Bank of America" FontSize="18" VerticalOptions="End" />
<Label Grid.Row="1" Grid.Column="0" FontFamily="Norwester" FontSize="16" VerticalOptions="Center" Text="2536 1457 1477 2364" />
<Label Grid.Row="2" Grid.Column="0" FontFamily="Norwester" FontAttributes="Bold" FontSize="10" Text="Name" TextTransform="Uppercase" />
<Label Grid.Row="3" Grid.Column="0" FontFamily="Norwester" FontSize="16" Text="David Ortinau" />
<Label Grid.Row="2" Grid.Column="1" FontFamily="Norwester" FontAttributes="Bold" FontSize="10" Text="Expiry" TextTransform="Uppercase" />
<Label Grid.Row="3" Grid.Column="1" FontFamily="Norwester" FontSize="16" Text="12/2021" />
<Label Grid.Row="0" Grid.Column="1" FontFamily="FontAwesome" FontSize="28" VerticalOptions="End" Text="{x:Static theme:IconFont.CreditCard}" />
</Grid>
</Frame>
</sh:Shadows>
<sh:Shadows CornerRadius="20" HeightRequest="190" Shades="{sh:SingleShade Offset='0, 20',
BlurRadius=40,
Opacity=0.35,
Color='#6DD400'}">
<Frame Background="{StaticResource GreenGradient}">
<Grid RowDefinitions="30,*,15,20" ColumnDefinitions="*,60">
<Label Grid.Row="0" Grid.Column="0" FontFamily="Norwester" Text="Credit Union" FontSize="18" VerticalOptions="End" />
<Label Grid.Row="1" Grid.Column="0" FontFamily="Norwester" FontSize="16" VerticalOptions="Center" Text="2536 1457 1477 2364" />
<Label Grid.Row="2" Grid.Column="0" FontFamily="Norwester" FontAttributes="Bold" FontSize="10" Text="Name" TextTransform="Uppercase" />
<Label Grid.Row="3" Grid.Column="0" FontFamily="Norwester" FontSize="16" Text="David Ortinau" />
<Label Grid.Row="2" Grid.Column="1" FontFamily="Norwester" FontAttributes="Bold" FontSize="10" Text="Expiry" TextTransform="Uppercase" />
<Label Grid.Row="3" Grid.Column="1" FontFamily="Norwester" FontSize="16" Text="12/2021" />
<Label Grid.Row="0" Grid.Column="1" FontFamily="FontAwesome" FontSize="28" VerticalOptions="End" Text="{x:Static theme:IconFont.CreditCard}" />
</Grid>
</Frame>
</sh:Shadows>
</FlexLayout>
</ScrollView>
<sh:Shadows Grid.Row="3" Margin="0,-20,0,0" Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame>
<FlexLayout Direction="Column" JustifyContent="SpaceBetween">
<Label Text="Saldo restante en la cuenta" FontFamily="Product" FontSize="18" />
<ProgressBar Visual="Material" HeightRequest="14" Progress="0.35" BackgroundColor="#F7F7F7" ProgressColor="{StaticResource DarkBlue}">
<ProgressBar.Clip>
<RoundRectangleGeometry Rect="0,0,300,14" CornerRadius="7" />
</ProgressBar.Clip>
</ProgressBar>
<Label Text="Disponible el 65% de la cuenta" FontFamily="Product" FontSize="10" TextColor="#999999" HorizontalOptions="End" HorizontalTextAlignment="End" />
</FlexLayout>
</Frame>
</sh:Shadows>
<sh:Shadows Grid.Row="4" Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame Margin="0,20,0,0" IsClippedToBounds="False">
<FlexLayout Direction="Row" Wrap="Wrap" JustifyContent="Start" AlignItems="Start" AlignContent="Start" IsClippedToBounds="False">
<FlexLayout.Resources>
<StyleSheet>
<![CDATA[
Image {
width: 44;
height: 44;
margin-right: 8;
}
]]>
</StyleSheet>
</FlexLayout.Resources>
<Label FlexLayout.Basis="100%" HeightRequest="40" Text="Enviar felicitaciones a" FontFamily="Product" FontSize="18" />
<Image
Source="https://www.xamarinassemble.com/assets/img/organizer/seba.jpg"
Clip="{StaticResource PhotoRect}" />
<Image Source="https://www.xamarinassemble.com/assets/img/organizer/nico.jpg" Clip="{StaticResource PhotoRect}" />
<Image Source="https://www.xamarinassemble.com/assets/img/organizer/german.jpg" Clip="{StaticResource PhotoRect}" />
<Image Source="https://www.xamarinassemble.com/assets/img/organizer/fede.jpg" Clip="{StaticResource PhotoRect}" />
<Image Source="https://www.xamarinassemble.com/assets/img/organizer/mica.jpeg" Clip="{StaticResource PhotoRect}" />
<Button HeightRequest="44" WidthRequest="44" VerticalOptions="Start" BorderWidth="0" CornerRadius="{OnPlatform Android=0, Default=8}" BackgroundColor="{StaticResource VeryLightBlue}" TextColor="White" FontSize="24" Padding="0" Text="{x:Static theme:IconFont.Plus}" FontFamily="FontAwesome" />
</FlexLayout>
</Frame>
</sh:Shadows>
<sh:Shadows Grid.Row="5" Margin="0,20,0,0" Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame>
<FlexLayout Direction="Row" Wrap="Wrap" JustifyContent="Start" AlignItems="Start" AlignContent="Start">
<FlexLayout.Resources>
<StyleSheet>
<![CDATA[
Frame {
margin-right: 12;
}
]]>
</StyleSheet>
</FlexLayout.Resources>
<Label FlexLayout.Basis="100%" HeightRequest="40" Text="Categorías" FontFamily="Product" FontSize="18" />
<sh:Shadows Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame WidthRequest="48" HeightRequest="48">
<Grid RowDefinitions="2*,1*">
<Label FontFamily="FontAwesome" FontSize="28" HorizontalOptions="Center" VerticalOptions="Center" Text="{x:Static theme:IconFont.ShoppingBag}" />
<Label Grid.Row="1" Text="Shopping" FontSize="10" FontFamily="Product" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Grid>
</Frame>
</sh:Shadows>
<sh:Shadows Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame WidthRequest="48" HeightRequest="48">
<Grid RowDefinitions="2*,1*">
<Label FontFamily="FontAwesome" FontSize="32" HorizontalOptions="Center" VerticalOptions="Center" Text="{x:Static theme:IconFont.Medkit}" />
<Label Grid.Row="1" Text="Medical" FontSize="10" FontFamily="Product" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Grid>
</Frame>
</sh:Shadows>
<sh:Shadows Shades="{sh:SingleShade Offset='0, 30',
BlurRadius=60,
Opacity=0.20,
Color='#8A959E'}">
<Frame WidthRequest="48" HeightRequest="48">
<Grid RowDefinitions="2*,1*">
<Label FontFamily="FontAwesome" FontSize="32" HorizontalOptions="Center" VerticalOptions="Center" Text="{x:Static theme:IconFont.School}" />
<Label Grid.Row="1" Text="Shopping" FontSize="10" FontFamily="Education" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Grid>
</Frame>
</sh:Shadows>
</FlexLayout>
</Frame>
</sh:Shadows>
</Grid>
</ScrollView>
</ContentPage>