diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-25 17:58:53 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-25 17:58:53 +0800 |
commit | f70e4437a2564a8a14d0c3c6e7d859142f33c97e (patch) | |
tree | d675cbd6417b4fd800983b02d87fd40d6ba8e443 |
Draft Card Item
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | CardItem.ui.qml | 87 | ||||
m--------- | Font-Awesome | 0 | ||||
-rw-r--r-- | darapsa.svg | 7 |
5 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..262059b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Font-Awesome"] + path = Font-Awesome + url = https://github.com/FortAwesome/Font-Awesome.git diff --git a/CardItem.ui.qml b/CardItem.ui.qml new file mode 100644 index 0000000..138ed01 --- /dev/null +++ b/CardItem.ui.qml @@ -0,0 +1,87 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Rectangle { + id: rectangle + width: 300 + height: 480 + + Image { + id: image + source: "darapsa.svg" + sourceSize.width: parent.width + sourceSize.height: 224 + } + + Item { + id: body + width: parent.width + anchors.top: image.bottom + anchors.bottom: parent.bottom + + Item { + id: badgeAndFavorite + height: favorite.height + + anchors { + top: parent.top + left: parent.left + leftMargin: 16 + right: parent.right + rightMargin: 16 + } + + Label { + text: qsTr("Beginner") + anchors { + verticalCenter: parent.verticalCenter + left: parent.left + leftMargin: 8 + } + } + + Image { + id: favorite + source: "Font-Awesome/svgs/solid/heart.svg" + sourceSize.width: 16 + sourceSize.height: 16 + anchors { + right: parent.right + rightMargin: 8 + } + } + } + + Label { + id: title + text: qsTr("Sketch from A to Z: for app designer") + wrapMode: Text.Wrap + anchors { + top: badgeAndFavorite.bottom + topMargin: 16 + left: parent.left + leftMargin: 16 + right: parent.right + rightMargin: 16 + } + font.weight: Font.Bold + font.pointSize: 16 + } + + Label { + id: comment + text: qsTr("Rooms oh fully taken by worse do Points afraid but may end Rooms Points afraid but may end Rooms") + wrapMode: Text.Wrap + anchors { + top: title.bottom + topMargin: 16 + bottom: parent.bottom + bottomMargin: 16 + left: parent.left + leftMargin: 16 + right: parent.right + rightMargin: 16 + } + } + } +} diff --git a/Font-Awesome b/Font-Awesome new file mode 160000 +Subproject d3a7818c253fcbafff9ebd1d4abb2866c192e1d diff --git a/darapsa.svg b/darapsa.svg new file mode 100644 index 0000000..928642a --- /dev/null +++ b/darapsa.svg @@ -0,0 +1,7 @@ +<svg width="650" height="450" viewBox="0 0 650 450" fill="none" xmlns="http://www.w3.org/2000/svg"> +<rect width="650" height="450" fill="white"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M231.026 361.743L244.283 375L356.207 263.076C359.861 264.183 363.737 264.779 367.753 264.779C389.718 264.779 407.524 246.969 407.524 225C407.524 203.031 389.718 185.222 367.753 185.222C363.745 185.222 359.876 185.814 356.228 186.917L244.311 75L231.054 88.2573L339.65 196.853C332.441 204.053 327.982 214.006 327.982 225C327.982 235.987 332.435 245.934 339.636 253.133L231.026 361.743ZM367.753 244.889C378.735 244.889 387.638 235.985 387.638 225C387.638 214.015 378.735 205.111 367.753 205.111C356.77 205.111 347.867 214.015 347.867 225C347.867 235.985 356.77 244.889 367.753 244.889Z" fill="black"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M178 335.525L191.257 348.782L314.901 225.138L191.28 101.516L178.023 114.773L288.387 225.138L178 335.525Z" fill="black"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M314.901 335.525L301.644 348.782L178 225.138L301.621 101.516L314.878 114.773L204.514 225.138L314.901 335.525Z" fill="black"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M471.952 200.538L458.695 187.281L421.191 224.784L458.688 262.281L471.945 249.024L447.705 224.784L471.952 200.538Z" fill="black"/> +</svg> |