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

ColumnLayout {
	spacing: 8
	FontLoader {
		id: roboto
		source: doesntEmbed ? ""
		: "Roboto/Roboto-Medium.ttf"
	}

	Label {
		text: qsTr("Most Popular Courses")
		color: "#24292d"
		horizontalAlignment: Text.AlignHCenter
		wrapMode: Text.Wrap
		Layout.fillWidth: true
		font {
			family: doesntEmbed
			? "Roboto"
			: roboto.name
			pointSize: 44
		}
	}

	Label {
		text: qsTr("Choose from hundreds of courses from specialist organizations")
		color: "#747579"
		horizontalAlignment: Text.AlignHCenter
		wrapMode: Text.Wrap
		Layout.fillWidth: true
		font {
			family: doesntEmbed
			? "Roboto"
			: roboto.name
			pointSize: 14
		}
	}
	TabBar {
		background: Rectangle{
			color: "#1a066ac9"
			radius: 8
		}
		Layout.fillWidth: true
		implicitHeight: 58
		Layout.margins: 16
		padding: 16
		TabButton {
			text: qsTr("First")
			anchors.verticalCenter: parent.verticalCenter
			Layout.fillWidth: true
			Layout.leftMargin: 16
			background: Rectangle {
				radius: 8
			}
		}
		TabButton {
			text: qsTr("Second")
			anchors.verticalCenter: parent.verticalCenter
			Layout.fillWidth: true
			background: Rectangle {
				radius: 8
			}

		}
		TabButton {
			text: qsTr("Third")
			anchors.verticalCenter: parent.verticalCenter
			Layout.fillWidth: true
			background: Rectangle {
				radius: 8
			}
			contentItem: Text {
				color: "#000000"
				text: "Third"
				horizontalAlignment: Text.AlignHCenter
				verticalAlignment: Text.AlignVCenter
			}
		}
	}
}