summaryrefslogtreecommitdiff
path: root/InstructiorCardItem.ui.qml
blob: 1f59ba395bf73ba55bfa58b7ff7fb83d7352e9f6 (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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.12

RowLayout {
	id: instructorCard
	spacing: 0
	height: instructorCardAvatar.height
	width: instructorCardAvatar.width + instructorCardBody.width

	RowLayout{
		id: instructorCardAvatar
		Rectangle{
			Layout.margins: 8
			id: instructorThumbnail
			radius: 8
			Layout.preferredHeight: 200
			Layout.preferredWidth: 200
			Layout.minimumHeight: 200
			Layout.minimumWidth: 200
		}
		Image{
			id: instructorThumb
			source: "https://eduport.webestica.com/assets/images/instructor/02.jpg"
			sourceSize: Qt.size(instructorThumbnail.width, instructorThumbnail.height)
			visible: false
		}
		OpacityMask{
			anchors.fill: instructorThumbnail
			source: instructorThumb
			maskSource: instructorThumbnail
		}
	}
	ColumnLayout {
		id: instructorCardBody
		Layout.preferredWidth: 360
		Layout.minimumWidth: 360
		Layout.alignment: Qt.AlignLeft | Qt.AlignTop
		spacing: 0
		Label{
			id: courseTitle
			color: "#000000"
			text: "Instructor name"
			font.pointSize: 21
			font.family: "roboto"
			font.styleName: "Medium"
			Layout.fillWidth: true
			Layout.rightMargin: 8
			Layout.leftMargin: 8
			Layout.topMargin: 8
		}
		Label{
			id: instructorTitle
			color: "#4d000000"
			text: "Instructor title"
			font.pointSize: 12
			font.family: "roboto"
			font.styleName: "Regular"
			Layout.fillWidth: true
			Layout.margins:8
		}
		Label{
			id: insturctorCardContent
			color: "#4d000000"
			text: "Passage its ten led hearted removal cordial. Preference any astonished unreserved Mrs."
			wrapMode: Text.WordWrap
			font.pointSize: 12
			font.family: "roboto"
			font.styleName: "Regular"
			Layout.fillWidth: true
			Layout.margins:8
		}

		Label{
			id: instructorCategory
			color: "#fd7e14"
			text: "Instructor title"
			font.pointSize: 16
			font.family: "roboto"
			font.styleName: "Medium"
			Layout.fillWidth: true
			Layout.margins:8
		}
	}
}