summaryrefslogtreecommitdiff
path: root/OrderSummary.ui.qml
blob: 9598ee8bcc31405c6ab6f4eb4cee686e7212ebe4 (plain)
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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

ColumnLayout {
	Rectangle {
		color: "#ffffff"
		Layout.fillWidth: true
		Layout.fillHeight: true
		radius: 16
		ColumnLayout {
			anchors.fill: parent
			ColumnLayout {
                Layout.alignment: Qt.AlignTop
				spacing: 24
				Layout.fillWidth: true
				Layout.margins: 24
				Label {
					id: oderSummaryTitle
					text: qsTr("Order Summary")
					font.family: "Roboto"
					font.weight: Font.Medium
					font.pointSize: 16
					Layout.fillWidth: true
				}

				RowLayout {
					Layout.fillWidth: true
					Label {
						id: transactionLabel
						color: "#6c757d"
						text: qsTr("Transaction code")
						font.family: "Roboto"
						font.weight: Font.Medium
						font.pointSize: 16
						Layout.fillWidth: true
					}
					Label {
						id: transactionCode
						text: qsTr("B0D123X")
						horizontalAlignment: Text.AlignRight
						font.family: "Roboto"
						font.weight: Font.Medium
						font.pointSize: 16
						Layout.fillWidth: true
					}
				}
				RowLayout {
					Rectangle {
						color: "transparent"
						radius: 8
						border.width: 1
						border.color: "#f5f7f9"
						Layout.fillWidth: true
						implicitHeight: 40
						RowLayout {
							anchors.fill: parent
							TextField {
								id: couponCode
								placeholderText: qsTr("Coupon code")
								
								Layout.fillWidth: true
								font.pixelSize: 16
								font.family: "roboto"
								Layout.fillWidth: true
								Layout.fillHeight: true
								background: Rectangle {
									color: "transparent"
								}
							}
							Button {
								id: couponButton
								contentItem: Text {
									color: "#ffffff"
									text: "Apply"
									horizontalAlignment: Text.AlignHCenter
									verticalAlignment: Text.AlignVCenter
									font.weight: Font.Medium
									font.family: "Roboto"
									font.pointSize: 14
								}
								Layout.fillHeight: true
								background: Rectangle {
									color: "#066ac9"
									border.width: 0
									radius: 8
								}
							}
						}
					}
				}
			}
		}
	}
}