diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-04 15:29:04 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-04 15:29:04 +0800 |
| commit | f8dbe8e0f771949f83e91b5e37a690e571a047ee (patch) | |
| tree | 50cb474a2ebe8e0e730d38186dad87912c0d5f4d /main.qml | |
Separated client code
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 46 |
1 files changed, 46 insertions, 0 deletions
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) + } + } + } + } +} |