summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-09 08:57:38 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-09 08:57:38 +0700
commit07de86882d5fc6a825c2ab45bb937bf684a52597 (patch)
tree8170b82a25470de0138de912a3b3d7bbc45a04ad
parentc2864c997bd81ce1ba0758e032b0502fadc38d87 (diff)
remove drop shadow for now. add placeholder rectangle and texts.
-rw-r--r--RecentlyViewedCard.ui.qml65
1 files changed, 59 insertions, 6 deletions
diff --git a/RecentlyViewedCard.ui.qml b/RecentlyViewedCard.ui.qml
index c24eee3..30e024f 100644
--- a/RecentlyViewedCard.ui.qml
+++ b/RecentlyViewedCard.ui.qml
@@ -10,24 +10,77 @@ Rectangle {
color: "#ffffff"
radius: 8
anchors.margins: 24
-
+
+/*
+ DropShadow {
+ source: recentlyViewedCard
+ color: Qt.rgba(.0, .0, .0, .30)
+ anchors.fill: recentlyViewedCard
+ }
+*/
ColumnLayout {
id: recentlyCardContent
anchors {
left: parent.left
right: parent.right
}
+ spacing: 16
Label {
text: qsTr("Recently viewed")
font.pointSize: 22
font.family: "roboto"
color: "#000000"
Layout.fillWidth: true
+ Layout.leftMargin: 24
+ Layout.topMargin: 24
+ Layout.rightMargin: 24
+ }
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ spacing: 16
+ Layout.leftMargin: 24
+ Layout.rightMargin: 24
+ Rectangle {
+ color: "#eee"
+ implicitHeight: 80
+ implicitWidth: 100
+ Layout.fillWidth: true
+ 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: "#000000"
+ 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
+ }
+ }
+ }
}
- }
- DropShadow {
- source: recentlyViewedCard
- color: Qt.rgba(.0, .0, .0, .30)
- anchors.fill: recentlyViewedCard
}
}