summaryrefslogtreecommitdiff
path: root/OrderCompleted.ui.qml
blob: ebf6bc2e7fabfdf9c846328de03c6f26c744b7eb (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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Flickable {
	property alias orderCompletedText: text
	property alias orderCompletedButton: button
	contentHeight: body.height

	FontLoader {
		id: jost
		name: "Jost"
		source: "Jost/Jost-Regular.ttf"
	}

	ColumnLayout {
		id: body
		anchors {
			top: parent.top
			left: parent.left
			right: parent.right
		}

		ColumnLayout {
			Layout.topMargin: 96
			Layout.leftMargin: 16
			Layout.rightMargin: 16
			Layout.bottomMargin: 96

			Label {
				text: qsTr("Your Order is Completed!")
				font.pixelSize: 30
				font.family: jost.name
				wrapMode: Text.Wrap
				horizontalAlignment: Text.AlignHCenter
				Layout.fillWidth: true
				Layout.bottomMargin: 20
			}

			Label {
				id: text
				text: qsTr("Your order 673290789 has been "
					+ "completed. Your order details are "
					+ "shown for your personal account.")
				font.pixelSize: 16
				font.family: jost.name
				wrapMode: Text.Wrap
				horizontalAlignment: Text.AlignHCenter
				Layout.fillWidth: true
				Layout.bottomMargin: 32
			}

			Button {
				id: button
				text: qsTr("View My Orders")
				font.pixelSize: 16
				font.family: jost.name
				Layout.alignment: Qt.AlignHCenter
			}
		}
	}
}