From 8311cb27d73a3e2948b3aa65fe6718cc6e5be5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 13 Nov 2022 20:53:48 +0800 Subject: Default Home draft --- Bootstrap/LICENSE.md | 21 +++++++++ Bootstrap/icons/patch-check-fill.svg | 3 ++ DefaultHomeStackView.ui.qml | 77 +++++++++++++++++++++++++++++++ Font-Awesome/svgs/solid/tv.svg | 1 + Font-Awesome/svgs/solid/user-graduate.svg | 1 + Font-Awesome/svgs/solid/user-tie.svg | 1 + 6 files changed, 104 insertions(+) create mode 100644 Bootstrap/LICENSE.md create mode 100644 Bootstrap/icons/patch-check-fill.svg create mode 100644 DefaultHomeStackView.ui.qml create mode 100644 Font-Awesome/svgs/solid/tv.svg create mode 100644 Font-Awesome/svgs/solid/user-graduate.svg create mode 100644 Font-Awesome/svgs/solid/user-tie.svg 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 @@ + + + \ 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 @@ + \ 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 @@ + \ 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 @@ + \ No newline at end of file -- cgit v1.2.3