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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
|
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
import Eduport 1.4
import ".."
import "../Label" as Lbl
import "../Button" as Btn
import "Default" as Default
Flickable {
property string bannerTitleText: qsTr("Limitless learning at your fingertips")
property string bannerContentText: qsTr("Online learning and teaching marketplace with 5K+ courses & 10M students. Taught by experts to help you acquire new skills.")
property string imageSource: "https://eduport.webestica.com/assets/images/element/07.png"
property alias counter: counter
property alias tabs: tabs
property alias tabsContent: tabsContent
property alias getStarted: getStarted
contentHeight: body.height
Rectangle {
anchors.fill: parent
color: Eduport.bsBodyBg
}
ColumnLayout {
id: body
anchors {
top: parent.top
left: parent.left
right: parent.right
}
GridLayout {
id: banner
columns: body.width < 992 ? 1 : 2
rows: body.width < 992 ? 2 : 1
Layout.leftMargin: -9
Layout.rightMargin: -9
Layout.bottomMargin: 48
ColumnLayout {
Layout.topMargin: 48
Layout.leftMargin: 15
Layout.rightMargin: 15
Layout.bottomMargin: 48
Layout.maximumWidth: body.width < 992
? body.width : body.width / 2
Lbl.Display6 {
text: bannerTitleText
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
}
Label {
text: bannerContentText
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
font.pointSize: Eduport.leadFontSize
wrapMode: Label.Wrap
}
Button {
id: getStarted
Layout.alignment: Qt.AlignHCenter
Layout.leftMargin: 24
Layout.rightMargin: 24
Layout.bottomMargin: 25.6
horizontalPadding: 24
verticalPadding: 12.8
text: qsTr("Get Started")
font: Eduport.bsBtnFont
contentItem: Text {
horizontalAlignment: Text
.AlignHCenter
verticalAlignment: Text
.AlignVCenter
text: getStarted.text
font: getStarted.font
color: getStarted.down
? "#ffffff"
: "#d6293e"
}
background: Rectangle {
radius: 8
color: getStarted.down
? "#d6293e"
: Qt.rgba(.839, .16,
.243, .1)
border {
color: getStarted.down
? "#d6293e"
: "transparent"
width: 1
}
}
}
}
Item {
Layout.topMargin: 48
Layout.leftMargin: 24
Layout.rightMargin: 24
Layout.fillWidth: true
implicitHeight: image.height
DropShadow {
source: angularRectangle
anchors.fill: angularRectangle
color: Qt.rgba(.113, .227, .325, .15)
}
Rectangle {
id: angularRectangle
radius: 8
implicitWidth: angularImage.width + 16
implicitHeight: angularImage.height + 16
anchors {
top: parent.top
right: parent.right
rightMargin: 24
}
Image {
id: angularImage
source: "https://eduport.webestica.com/assets/images/client/angular.svg"
anchors.centerIn: parent
}
}
Image {
id: image
source: imageSource
width: parent.width
fillMode: Image.PreserveAspectFit
}
}
}
GridView {
id: counter
interactive: false
cellWidth: body.width < 576 ? width
: body.width < 1200 ? width / 2
: width / 4
cellHeight: 125.6
Layout.fillWidth: true
implicitHeight: body.width < 576
? cellHeight * count
: body.width < 1200 ? cellHeight * count / 2
: cellHeight
model: ListModel {
ListElement {
icon: "../../Font-Awesome/svgs/solid/tv.svg"
count: "10K"
title: qsTr("Online Courses")
bgColor: "#26f7c32e"
}
ListElement {
icon: "../../Font-Awesome/svgs/solid/user-tie.svg"
count: "200+"
title: qsTr("Expert Tutors")
bgColor: "#1a1d3b53"
}
ListElement {
icon: "../../Font-Awesome/svgs/solid/user-graduate.svg"
count: "60K+"
title: qsTr("Online Students")
bgColor: "#1a6f42c1"
}
ListElement {
icon: "../../Bootstrap/icons/patch-check-fill.svg"
count: "6K+"
title: qsTr("Certified Courses")
bgColor: "#1a17a2b8"
}
}
delegate: Default.Counter {
implicitWidth: counter.cellWidth
implicitHeight: counter.cellHeight
}
}
ColumnLayout {
Layout.topMargin: 64
Layout.leftMargin: 15
Layout.rightMargin: 15
Layout.bottomMargin: 48
ColumnLayout {
Layout.bottomMargin: 25.6
Lbl.H1 {
text: qsTr("Most Popular Courses")
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
Layout.bottomMargin: 8
}
Label {
text: qsTr("Choose from hundreds of courses from specialist organizations")
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
wrapMode: Label.Wrap
}
}
Rectangle {
color: Qt.rgba(.0235, .416, .788, .1)
radius: 10
implicitHeight: tabs.height + 20
Layout.fillWidth: true
Layout.bottomMargin: 25.6
GridView {
id: tabs
interactive: false
anchors {
left: parent.left
leftMargin: 16
right: parent.right
rightMargin: 16
verticalCenter: parent
.verticalCenter
}
cellWidth: 142
cellHeight: 46
implicitHeight: Math.ceil(count
/ Math.floor(count
/ (cellWidth
* count
/ width)
)) * cellHeight
model: ["Web Design", "Development",
"Graphic Design", "Marketing",
"Finance"]
delegate: Btn.NavLink {}
}
}
StackLayout {
currentIndex: tabs.currentIndex
property real preservedAspectHeight: width * 1.6
Layout.leftMargin: -12.8
Layout.rightMargin: -12.8
Layout.preferredHeight: body.width < 576
? preservedAspectHeight
* tabsContent.currentCount
: body.width < 768
? preservedAspectHeight / 2
* Math.ceil(tabsContent.currentCount
/ 2)
: body.width < 992
? preservedAspectHeight / 3
* Math.ceil(tabsContent.currentCount
/ 3)
: preservedAspectHeight / 4
* Math.ceil(tabsContent.currentCount
/ 4)
Repeater {
id: tabsContent
property int currentCount: 8
model: ListModel {
ListElement {
content: [
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg"
level: "All level"
levelColor: "#ff6f42c1"
levelBackgroundColor: "#1a6f42c1"
liked: false
title: "Sketch from A to Z: for app designer"
truncated: "Proposal indulged no do sociable he throwing settling."
rate: 4.0
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/02.jpg"
level: "Beginner"
levelColor: "#ff0cbc87"
levelBackgroundColor: "#1a0cbc87"
liked: true
title: "Graphic Design Masterclass"
truncated: "Rooms oh fully taken by worse do Points afraid but may end Rooms"
rate: 4.5
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
level: "Beginner"
levelColor: "#ff0cbc87"
levelBackgroundColor: "#1a0cbc87"
liked: false
title: "Create a Design System in Figma"
truncated: "Rooms oh fully taken by worse do. Points afraid but may end afraid but may end."
rate: 4.5
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/07.jpg"
level: "Beginner"
levelColor: "#ff0cbc87"
levelBackgroundColor: "#1a0cbc87"
liked: true
title: "Deep Learning with React-Native"
truncated: "Far advanced settling say finished raillery. Offered chiefly farther"
rate: 4.0
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/11.jpg"
level: "All level"
levelColor: "#ff6f42c1"
levelBackgroundColor: "#1a6f42c1"
liked: true
title: "Build Responsive Websites with HTML"
truncated: "Far advanced settling say finished raillery. Offered chiefly farther"
rate: 4.0
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/12.jpg"
level: "Beginner"
levelColor: "#ff0cbc87"
levelBackgroundColor: "#1a0cbc87"
liked: false
title: "Build Websites with CSS"
truncated: "Far advanced settling say finished raillery. Offered chiefly farther"
rate: 4.5
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/04.jpg"
level: "All level"
levelColor: "#ff6f42c1"
levelBackgroundColor: "#1a6f42c1"
liked: true
title: "Learn Invision"
truncated: "Arrived off she elderly beloved him Course regard to up he hardly."
rate: 3.5
},
ListElement {
image: "https://eduport.webestica.com/assets/images/courses/4by3/09.jpg"
level: "All level"
levelColor: "#ff6f42c1"
levelBackgroundColor: "#1a6f42c1"
liked: false
title: "JavaScript: Full Understanding"
truncated: "Far advanced settling say finished raillery. Offered chiefly farther"
rate: 5.0
}
]
}
}
GridView {
id: tabPane
interactive: false
cellWidth: body.width < 576
? width
: body.width < 768
? width / 2
: body.width < 992
? width / 3
: width / 4
cellHeight: cellWidth
* 400 / 533 + 273.35
model: content
delegate: Default.Card {
width: tabPane
.cellWidth
height: tabPane
.cellHeight
imageSource: image
badgeText: level
badgeColor: levelColor
badgeBackgroundColor:
levelBackgroundColor
favorite.checked: liked
titleText: title
truncatedText: truncated
rating: rate
}
}
}
}
}
}
}
|