-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.component.html
More file actions
52 lines (51 loc) · 1.59 KB
/
home.component.html
File metadata and controls
52 lines (51 loc) · 1.59 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
<ActionBar title="NativeScript 🍕 Delivery" iosLargeTitle="true"> </ActionBar>
<GridLayout rows="auto,*" class="p-4">
<GridLayout class="w-full h-[250]">
<Image
[src]="
orderInProgress()
? 'sys://car.side.arrowtriangle.up.fill'
: orderTime() === 0
? 'sys://car.side.rear.open'
: 'sys://face.smiling.inverse'
"
[tintColor]="
orderInProgress() ? 'green' : orderTime() === 0 ? 'gray' : 'blue'
"
[iosSymbolEffect]="orderInProgress() ? symbolEffect : 'none'"
iosSymbolScale="large"
class="text-8xl"
nsRouterLink="/detail/1"
></Image>
</GridLayout>
<GridLayout row="1" rows="auto,auto,auto,*,auto" class="mt-4">
<Button
text="Order Now"
class="rounded-full bg-green-400 p-2 text-white w-[200] text-xl"
(tap)="orderNow()"
[isEnabled]="!orderInProgress()"
></Button>
<MenuButton
row="1"
text="Change Order"
[options]="driverOptions"
(selected)="changeOrder($event)"
class="rounded-full bg-orange-400 p-2 text-white mt-4 w-[200] text-xl"
[isEnabled]="orderInProgress()"
></MenuButton>
<MenuButton
row="2"
text="Order Delivered"
(tap)="orderDelivered()"
class="rounded-full bg-blue-500 p-2 text-white mt-4 w-[200] text-xl"
[isEnabled]="orderInProgress()"
></MenuButton>
<Button
row="4"
text="Cancel Order"
class="rounded-full bg-red-500 p-2 text-white mb-4 w-[200] text-xl"
(tap)="cancelOrder()"
[isEnabled]="orderInProgress()"
></Button>
</GridLayout>
</GridLayout>