summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-11-13 20:53:48 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-11-13 20:53:48 +0800
commit8311cb27d73a3e2948b3aa65fe6718cc6e5be5df (patch)
tree6cf472f6b6705e0fa54c2bc3ee9049b2b430bdb1
parent7136f2fc340eb1ff5ab53037dadd36799c007c7e (diff)
Default Home draft
-rw-r--r--Bootstrap/LICENSE.md21
-rw-r--r--Bootstrap/icons/patch-check-fill.svg3
-rw-r--r--DefaultHomeStackView.ui.qml77
-rw-r--r--Font-Awesome/svgs/solid/tv.svg1
-rw-r--r--Font-Awesome/svgs/solid/user-graduate.svg1
-rw-r--r--Font-Awesome/svgs/solid/user-tie.svg1
6 files changed, 104 insertions, 0 deletions
diff --git a/Bootstrap/LICENSE.md b/Bootstrap/LICENSE.md
new file mode 100644
index 0000000..47f06b6
--- /dev/null
+++ b/Bootstrap/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2019-2021 The Bootstrap Authors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/Bootstrap/icons/patch-check-fill.svg b/Bootstrap/icons/patch-check-fill.svg
new file mode 100644
index 0000000..1301415
--- /dev/null
+++ b/Bootstrap/icons/patch-check-fill.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-patch-check-fill" viewBox="0 0 16 16">
+ <path d="M10.067.87a2.89 2.89 0 0 0-4.134 0l-.622.638-.89-.011a2.89 2.89 0 0 0-2.924 2.924l.01.89-.636.622a2.89 2.89 0 0 0 0 4.134l.637.622-.011.89a2.89 2.89 0 0 0 2.924 2.924l.89-.01.622.636a2.89 2.89 0 0 0 4.134 0l.622-.637.89.011a2.89 2.89 0 0 0 2.924-2.924l-.01-.89.636-.622a2.89 2.89 0 0 0 0-4.134l-.637-.622.011-.89a2.89 2.89 0 0 0-2.924-2.924l-.89.01-.622-.636zm.287 5.984-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708.708z"/>
+</svg> \ No newline at end of file
diff --git a/DefaultHomeStackView.ui.qml b/DefaultHomeStackView.ui.qml
new file mode 100644
index 0000000..0bd3d1a
--- /dev/null
+++ b/DefaultHomeStackView.ui.qml
@@ -0,0 +1,77 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+
+StackView {
+ property alias grid: grid
+
+ id: stack
+ initialItem: Item {
+
+ GridView {
+ model: ListModel {
+ ListElement {
+ count: "10K"
+ bgColor: "#26f7c32e"
+ }
+ ListElement {
+ count: "200+"
+ bgColor: "#1a1d3b53"
+ }
+ ListElement {
+ count: "60K+"
+ bgColor: "#1a6f42c1"
+ }
+ ListElement {
+ count: "6K+"
+ bgColor: "#1a17a2b8"
+ }
+ }
+
+ delegate: Rectangle {
+ color: bgColor
+ implicitWidth: label.width
+ implicitHeight: label.height
+
+ FontLoader {
+ id: heebo
+ name: "Heebo"
+ source: "Heebo/Heebo-Bold.ttf"
+ }
+
+ Label {
+ id: label
+ text: count
+ font {
+ family: heebo.name
+ pixelSize: 21
+ }
+ }
+ }
+
+ cellWidth: width < 576 ? stack.width : width < 768
+ ? stack.width / 2 : width < 992 ? stack.width / 3
+ : stack.width / 4
+ cellHeight: cellWidth * 1.3
+ anchors {
+ top: parent.top
+ left: parent.left
+ right: parent.right
+ }
+ height: 100
+ }
+
+ GridView {
+ id: grid
+ cellWidth: width < 576 ? stack.width : width < 768
+ ? stack.width / 2 : width < 992 ? stack.width / 3
+ : stack.width / 4
+ cellHeight: cellWidth * 1.3
+ anchors {
+ left: parent.left
+ right: parent.right
+ bottom: parent.bottom
+ }
+ height: parent.height - 100
+ }
+ }
+}
diff --git a/Font-Awesome/svgs/solid/tv.svg b/Font-Awesome/svgs/solid/tv.svg
new file mode 100644
index 0000000..56cb29d
--- /dev/null
+++ b/Font-Awesome/svgs/solid/tv.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M64 64V352H576V64H64zM0 64C0 28.7 28.7 0 64 0H576c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM128 448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/></svg> \ No newline at end of file
diff --git a/Font-Awesome/svgs/solid/user-graduate.svg b/Font-Awesome/svgs/solid/user-graduate.svg
new file mode 100644
index 0000000..87b7471
--- /dev/null
+++ b/Font-Awesome/svgs/solid/user-graduate.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M219.3 .5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128s-128-57.3-128-128V102.9L48 93.3v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3s-7.6 5.9-12.4 5.9H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64C0 52.6 8.1 42.7 19.3 40.5l200-40zM129.1 323.2l83.2 88.4c6.3 6.7 17 6.7 23.3 0l83.2-88.4c73.7 14.9 129.1 80 129.1 158.1c0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-78.1 55.5-143.2 129.1-158.1z"/></svg> \ No newline at end of file
diff --git a/Font-Awesome/svgs/solid/user-tie.svg b/Font-Awesome/svgs/solid/user-tie.svg
new file mode 100644
index 0000000..c3b7d1d
--- /dev/null
+++ b/Font-Awesome/svgs/solid/user-tie.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M224 0c70.7 0 128 57.3 128 128s-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0zM209.1 359.2l-18.6-31c-6.4-10.7 1.3-24.2 13.7-24.2H224h19.7c12.4 0 20.1 13.6 13.7 24.2l-18.6 31 33.4 123.9 39.5-161.2c77.2 12 136.3 78.8 136.3 159.4c0 17-13.8 30.7-30.7 30.7H265.1 182.9 30.7C13.8 512 0 498.2 0 481.3c0-80.6 59.1-147.4 136.3-159.4l39.5 161.2 33.4-123.9z"/></svg> \ No newline at end of file