summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-09 09:10:36 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-09 09:10:36 +0700
commit7ba55f912c8c2308eaa3c92e69089ad538f776fb (patch)
tree88f13107ecaead495626492392c8b857271e1c47
parent07de86882d5fc6a825c2ab45bb937bf684a52597 (diff)
add second recent course placeholder
-rw-r--r--RecentlyViewedCard.ui.qml59
1 files changed, 49 insertions, 10 deletions
diff --git a/RecentlyViewedCard.ui.qml b/RecentlyViewedCard.ui.qml
index 30e024f..3572dbf 100644
--- a/RecentlyViewedCard.ui.qml
+++ b/RecentlyViewedCard.ui.qml
@@ -11,13 +11,6 @@ Rectangle {
radius: 8
anchors.margins: 24
-/*
- DropShadow {
- source: recentlyViewedCard
- color: Qt.rgba(.0, .0, .0, .30)
- anchors.fill: recentlyViewedCard
- }
-*/
ColumnLayout {
id: recentlyCardContent
anchors {
@@ -43,9 +36,8 @@ Rectangle {
Layout.rightMargin: 24
Rectangle {
color: "#eee"
- implicitHeight: 80
- implicitWidth: 100
- Layout.fillWidth: true
+ height: 80
+ width: 100
radius: 8
}
ColumnLayout {
@@ -67,9 +59,56 @@ Rectangle {
font.pointSize: 14
font.family: "roboto"
font.styleName: "Medium"
+ color: "#0cbc87"
+ Layout.fillWidth: true
+ }
+ Label {
+ text: qsTr("4.5")
+ horizontalAlignment: Text.AlignRight
+ font.pointSize: 14
+ font.family: "roboto"
+ font.styleName: "Medium"
color: "#000000"
Layout.fillWidth: true
}
+ }
+ }
+ }
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ spacing: 16
+ Layout.leftMargin: 24
+ Layout.rightMargin: 24
+ Layout.bottomMargin: 24
+ Rectangle {
+ color: "#eee"
+ height: 80
+ width: 100
+ radius: 8
+ }
+ ColumnLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Label {
+ text: qsTr("Course title")
+ font.pointSize: 14
+ font.family: "roboto"
+ font.styleName: "Medium"
+ color: "#000000"
+ Layout.fillWidth: true
+ }
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Label {
+ text: qsTr("$")
+ font.pointSize: 14
+ font.family: "roboto"
+ font.styleName: "Medium"
+ color: "#0cbc87"
+ Layout.fillWidth: true
+ }
Label {
text: qsTr("4.5")
horizontalAlignment: Text.AlignRight