diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-22 15:03:34 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-22 15:03:34 +0800 |
| commit | 55dfd05eab43247603e7f5b32b35f94ec8916fbf (patch) | |
| tree | 1cfbaed71d39b5fd0b137c89dc9acdf873b51bce /CourseItem.ui.qml | |
| parent | 27bebae9850f56dba39a1558b11b35d91e659973 (diff) | |
Checkout is moved to Shop
Diffstat (limited to 'CourseItem.ui.qml')
| -rw-r--r-- | CourseItem.ui.qml | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/CourseItem.ui.qml b/CourseItem.ui.qml deleted file mode 100644 index 18bc5d7..0000000 --- a/CourseItem.ui.qml +++ /dev/null @@ -1,99 +0,0 @@ -import QtQuick 2.15 -import QtQuick.Controls 2.15 -import QtQuick.Layouts 1.15 -import QtGraphicalEffects 1.15 - -ColumnLayout { - property string imageSource: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg" - property string titleText: "Sketch from A to Z: for app designer" - property string priceText: "$150" - readonly property bool doesntEmbed: Qt.platform.os === "android" - || Qt.platform.os === "linux" - || Qt.platform.os === "osx" - || Qt.platform.os === "unix" - || Qt.platform.os === "windows" - - FontLoader { - id: heebo - source: "Heebo/Heebo-Bold.ttf" - } - - FontLoader { - id: regular - source: doesntEmbed ? "" : "Roboto/Roboto-Regular.ttf" - } - - Rectangle { - Layout.fillWidth: true - Layout.topMargin: 16 - Layout.bottomMargin: 16 - height: 1 - border { - width: .5 - color: "#0a000000" - } - } - - GridLayout { - Layout.topMargin: -16 - rows: width < 576 ? 2 : 1 - columns: width < 576 ? 1 : 2 - - Rectangle { - id: rectangle - Layout.topMargin: 16 - Layout.fillWidth: true - implicitHeight: courseItemImage.height - radius: 5.2 - - Image { - id: courseItemImage - anchors { - left: parent.left - right: parent.right - } - source: imageSource - fillMode: Image.PreserveAspectFit - layer.enabled: true - layer.effect: OpacityMask { - maskSource: Rectangle { - width: courseItemImage.width - height: courseItemImage.height - radius: 5.2 - } - } - } - } - - ColumnLayout { - Layout.topMargin: 16 - - Label { - Layout.fillWidth: true - text: titleText - font { - family: heebo.name - pointSize: 15 - } - } - - Item { - Layout.fillWidth: true - Layout.topMargin: 16 - Label { - anchors { - top: parent.top - left: parent.left - bottom: parent.bottom - } - text: priceText - color: "#0cbc87" - font { - family: doesntEmbed ? "Roboto" : regular.name - pointSize: 15 - } - } - } - } - } -} |