From f8dbe8e0f771949f83e91b5e37a690e571a047ee 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, 4 Jul 2021 15:29:04 +0800 Subject: Separated client code --- main.qml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 main.qml (limited to 'main.qml') diff --git a/main.qml b/main.qml new file mode 100644 index 0000000..3d40e75 --- /dev/null +++ b/main.qml @@ -0,0 +1,46 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import "larva/features" + +ApplicationWindow { + property string imageDir + signal signUp(string brand) + function pushCatalog() { + stack.push("Catalog.qml") + } + id: window + width: 360 + height: 640 + visible: true + StackView { + id: stack + anchors.fill: parent + initialItem : Column { + Image { + width: parent.width + fillMode: Image.PreserveAspectFit + source: "images/onboarding-illustration-1.png" + } + EmailForm { + anchors.bottom: parent.bottom + width: parent.width + backButton.visible: false + instructionLabel { + text: qsTr("Cukup masukkan nama toko Anda, et voilĂ !") + font.pointSize: 18 + } + emailTextField { + placeholderText: "Coba: Hardware, Ladders, Measuring Tools, Safety Equipment, Hand Tools, Painting Supplies, atau Tool Storage" + placeholderTextColor: "#888888" + color: "#000000" + onTextChanged: if (!emailTextField.text || !loginButton.enabled) + loginButton.enabled = !loginButton.enabled + } + loginButton { + text: qsTr("Mulai berjualan!") + onClicked: signUp(emailTextField.text) + } + } + } + } +} -- cgit v1.2.3