summaryrefslogtreecommitdiff
path: root/Student/Dashboard.ui.qml
blob: 6ca13f313a074c133adeae0329e9d9f8ece3c239 (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
import QtQuick 2.15
import QtQuick.Controls 2.15
import "Dashboard"
import QtQuick.Layouts 1.15

Flickable {
	property alias tableBody: tableBody
	contentWidth: table.width

	ColumnLayout{
		id: table
		width: 839.878

		RowLayout {
			Layout.fillWidth: true
			height: 50
			Label{
				text: "Course Title" 
				font.bold: true
				font.pixelSize: 30
			}
			Label{
				text: "Total Lectures"
				font.bold: true
				color: "#666666"
				font.pixelSize: 30
			}
			Label{
				text: "Completed Lectures"
				font.bold: true
				color: "#666666"
				font.pixelSize: 30
			}
			Label{
				text: "Action"
				font.bold: true
				color: "#666666"
				font.pixelSize: 30
			}
		}

		ListView {
			id: tableBody
			Layout.fillWidth: true
			height: 100 * count
			interactive: false
			model: ListModel {
				ListElement {
					title: qsTr("Building Scalable APIs with GraphQL")
					image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg"
                                        level: "Beginner"
                                        totalLectures: 16
                                        completedLectures: 14
				}
				ListElement {
					title: qsTr("Create a Design System in Figma")
					image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
                                        level: "Beginner"
                                        totalLectures: 42 
                                        completedLectures: 40
				}
				ListElement {
					title: qsTr("Graphic Design Masterclass")
					image: "https://eduport.webestica.com/assets/images/courses/4by3/02.jpg"
                                        level: "Beginner"
                                        totalLectures: 16
                                        completedLectures: 14
				}
				ListElement {
					title: qsTr("The Complete Web Development in python")
					image: "https://eduport.webestica.com/assets/images/courses/4by3/05.jpg"
                                        level: "Beginner"
                                        totalLectures: 28
                                        completedLectures: 12
				}
				ListElement {
					title: qsTr("Digital Marketing Masterclass")
					image: "https://eduport.webestica.com/assets/images/courses/4by3/01.jpg"
                                        level: "Advanced"
                                        totalLectures: 32
                                        completedLectures: 18
				}
				// Add more ListElements for other courses
			}
			delegate: CourseListItem {
				width: tableBody.width
				courseTitle.text: title
				courseThumb.source: image

				
			}
		}
	}
}