-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
214 lines (206 loc) · 8.23 KB
/
MainPage.xaml
File metadata and controls
214 lines (206 loc) · 8.23 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="BurguerDemo.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:rating="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
BackgroundColor="{StaticResource Gray900}">
<Grid RowDefinitions=".1*,.1*,.55*,.15*,.15*">
<Grid Margin="20" ColumnDefinitions="*,*,*">
<Image HorizontalOptions="Start" VerticalOptions="Center">
<Image.Source>
<FontImageSource
FontFamily="Icons"
Glyph=""
Size="20"
Color="{StaticResource Gray200}" />
</Image.Source>
</Image>
<Label
Grid.Column="1"
FontFamily="RobotoR"
FontSize="18"
HorizontalTextAlignment="Center"
Text="Food Detail"
TextColor="{StaticResource Gray200}"
VerticalOptions="Center" />
<Image
Grid.Column="2"
HorizontalOptions="End"
VerticalOptions="Center">
<Image.Source>
<FontImageSource
FontFamily="Icons"
Glyph=""
Size="20"
Color="{StaticResource Gray200}" />
</Image.Source>
</Image>
</Grid>
<Label
Grid.Row="1"
Margin="20,10,0,0"
FontFamily="SpaceB"
FontSize="25"
Text="Double Smokey Burguer"
TextColor="{StaticResource Gray100}" />
<Grid
Grid.Row="2"
Margin="0,0,-50,0"
ColumnDefinitions=".3*,.7*">
<Grid RowDefinitions="*,*,*,*,*">
<RoundRectangle
Grid.RowSpan="5"
CornerRadius="0,40,0,40"
Fill="{StaticResource Gray700}" />
<Grid Margin="10,10,0,0" RowDefinitions="*,*,*">
<Label
FontFamily="SpaceR"
FontSize="12"
Text="Rate"
TextColor="{StaticResource Gray200}" />
<Label
Grid.Row="1"
FontFamily="SpaceB"
FontSize="14"
Text="4.8/5 (12,343)"
TextColor="{StaticResource Gray100}" />
<rating:SfRating
Grid.Row="2"
BackgroundColor="Transparent"
HorizontalOptions="Start"
ItemSize="15"
Precision="Exact"
Value="4.6">
<rating:SfRating.RatingSettings>
<rating:RatingSettings
RatedFill="#FFC71F"
RatedStroke="#FFC71F"
UnratedFill="gray"
UnratedStroke="gray" />
</rating:SfRating.RatingSettings>
</rating:SfRating>
</Grid>
<Grid
Grid.Row="1"
Margin="10,10,0,0"
RowDefinitions="*,*"
RowSpacing="5">
<Label
FontFamily="SpaceR"
FontSize="12"
Text="Delivery Time"
TextColor="{StaticResource Gray200}"
VerticalOptions="End" />
<HorizontalStackLayout Grid.Row="1" Spacing="5">
<Image HorizontalOptions="End" VerticalOptions="Start">
<Image.Source>
<FontImageSource
FontFamily="Icons"
Glyph=""
Size="20"
Color="{StaticResource Gray200}" />
</Image.Source>
</Image>
<Label
FontFamily="SpaceB"
FontSize="15"
Text="20 mins"
TextColor="{StaticResource Gray100}"
VerticalOptions="Start" />
</HorizontalStackLayout>
</Grid>
<Grid
Grid.Row="2"
Margin="10,10,0,0"
RowDefinitions="*,*"
RowSpacing="5">
<Label
FontFamily="SpaceR"
FontSize="12"
Text="Calories"
TextColor="{StaticResource Gray200}"
VerticalOptions="End" />
<Label
Grid.Row="1"
FontFamily="SpaceSB"
FontSize="15"
Text="1,200 Cal"
TextColor="{StaticResource Gray100}"
VerticalOptions="Start" />
</Grid>
<Grid
Grid.Row="3"
Margin="10,10,0,0"
RowDefinitions="*,*"
RowSpacing="5">
<Label
FontFamily="SpaceR"
FontSize="12"
Text="Branch"
TextColor="{StaticResource Gray200}"
VerticalOptions="End" />
<Label
Grid.Row="1"
FontFamily="SpaceSB"
FontSize="15"
Text="Creek Road"
TextColor="{StaticResource Gray100}"
VerticalOptions="Start" />
</Grid>
<Grid
Grid.Row="4"
Margin="10,10,0,0"
RowDefinitions="*,*"
RowSpacing="5">
<Label
FontFamily="SpaceR"
FontSize="12"
Text="Price"
TextColor="{StaticResource Gray200}"
VerticalOptions="End" />
<Label
Grid.Row="1"
FontFamily="SpaceSB"
FontSize="15"
Text="$ 10.99"
TextColor="{StaticResource Gray100}"
VerticalOptions="Start" />
</Grid>
</Grid>
<Image
Grid.Column="1"
Aspect="Fill"
Source="burguer.png" />
</Grid>
<Grid
Grid.Row="3"
Margin="20,10,0,0"
RowDefinitions=".3*,.7*">
<Label
FontFamily="SpaceM"
FontSize="18"
Text="Ingredients"
TextColor="{StaticResource Gray100}"
VerticalTextAlignment="Center" />
<Label
Grid.Row="1"
FontFamily="RobotoL"
LineHeight="1.3"
Text="Two flame-grilled beef patties with crispy bacon, melted American cheese, ketchup, and creamy mayonnaise on a toasted sesame seed bun."
TextColor="{StaticResource Gray200}"
VerticalTextAlignment="Center" />
</Grid>
<Button
Grid.Row="4"
Margin="15,0"
BackgroundColor="#FFC71F"
CornerRadius="30"
FontAttributes="Bold"
FontFamily="RobotoR"
FontSize="18"
HeightRequest="50"
Text="Add to Cart"
TextColor="Black" />
</Grid>
</ContentPage>