summaryrefslogtreecommitdiff
path: root/shop/cart/CartTotal.ui.qml
blob: ce8881e43ee9c52acbb64c83e005e9ae2e30b40a (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
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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15

Item {
	id: cartTotal
	DropShadow {
		color: "#4d000000"
		source: cartTotalCard
		verticalOffset: 4
		radius: 40
		samples: 81
		anchors.fill: cartTotalCard
	}
	Rectangle {
		id: cartTotalCard
		anchors.fill: parent
		ColumnLayout {
			id: cardBody
			anchors.fill: parent
			spacing: 0
			Label {
				id: title
				color: "#000000"
				text: qsTr("Cart total")
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.topMargin: 20
				Layout.margins: 8
				Layout.fillHeight: false
				Layout.alignment: Qt.AlignLeft | Qt.AlignTop
				Layout.fillWidth: true
				font.pointSize: 22
				font.styleName: "Medium"
				font.family: "Roboto"
			}

			RowLayout {
				id: price
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.bottomMargin: 0
				Layout.fillHeight: true
				Layout.alignment: Qt.AlignLeft | Qt.AlignTop
				Layout.fillWidth: true
				anchors.top: title.bottom
				anchors.topMargin: 16
				Label {
					color: "#000000"
					text: qsTr("Original price")
					Layout.fillHeight: false
					font.family: "Roboto"
					font.pointSize: 14
					Layout.fillWidth: true
				}
				Label {
					color: "#000000"
					text: qsTr("$500")
					horizontalAlignment: Text.AlignRight
					Layout.fillHeight: false
					font.weight: Font.Medium
					font.pointSize: 14
					Layout.fillWidth: true
				}
			}

			RowLayout {
				id: discount
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.alignment: Qt.AlignLeft | Qt.AlignTop
				Layout.fillWidth: true
				anchors.top: price.bottom
				anchors.topMargin: 16
				Label {
					color: "#000000"
					text: qsTr("Coupon discount")
					Layout.fillHeight: false
					Layout.fillWidth: true
					font.family: "Roboto"
					font.pointSize: 14
				}
				Label {
					color: "#000000"
					text: qsTr("-$500")
					horizontalAlignment: Text.AlignRight
					Layout.fillHeight: false
					Layout.fillWidth: true
					font.weight: Font.Medium
				}
			}

			RowLayout {
				id: total
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.alignment: Qt.AlignLeft | Qt.AlignTop
				Layout.fillWidth: true
				anchors.top: discount.bottom
				Label {
					color: "#000000"
					text: qsTr("Total")
					Layout.fillHeight: false
					font.family: "Roboto"
					font.styleName: "Medium"
					font.pointSize: 22
					Layout.fillWidth: true
				}
				Label {
					color: "#000000"
					text: qsTr("$480")
					horizontalAlignment: Text.AlignRight
					Layout.fillHeight: false
					font.styleName: "Medium"
					font.pointSize: 22
					font.family: "Roboto"
					Layout.fillWidth: true
				}
			}

			Button {
				id: proceedButton
				text: qsTr("Proceed to checkout")
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.fillHeight: false
				anchors.top: total.bottom
				anchors.topMargin: 16
				Layout.topMargin: 0
				font.weight: Font.Medium
				font.pointSize: 14
				font.family: "Roboto"
				Layout.fillWidth: true
				flat: false
				display: AbstractButton.TextOnly
			}

			Label {
				id: consent
				color: "#80000000"
				text: "By completing your purchase, you agree to these Terms of Service"
				wrapMode: Text.Wrap
				anchors.topMargin: 16
				Layout.bottomMargin: 20
				Layout.rightMargin: 20
				Layout.leftMargin: 20
				Layout.fillHeight: false
				Layout.fillWidth: true
				anchors.top: proceedButton.bottom
				font.pointSize: 12
				font.family: "Roboto"
			}
		}
	}
}